I love travelling and I wanted to learn about Amazon Alexa skills, so I decided to build something related to travelling.
Alexa Country Capital is a simple skill build using REST countries API. Simply ask Alexa what is the capital of a country and Alexa will tell you.
REST countries APIs provide a lot of useful information about different countries and I would extend the skill in future to get more information about different countries/regions.
To build this skill, I first created a new custom interaction modal type skill in Amazon development portal. Then I configured the intent schema to define the functions my skill can perform. I also provided custom slot types, which in this case is a list of countries and finally I defined sample utterances i.e. the phases that can be used to invoke the skill's intent.
I used AWS Lambda to implement the backend for this skill. Lambda function handles all incoming request and make a call to the REST API.
Comments