After making two previous skills using a custom HTTP server with node.js, I decided to try out AWS lambda for making a skill. By whipping up this quick and easy skill and following the tutorial at https://developer.amazon.com/blogs/post/Tx3DVGG0K0TPUGQ/New-Alexa-Skills-Kit-Template:-Step-by-Step-Guide-to-Build-a-Fact-Skill , I was able to learn how to use lambda to make skills as well as how simple it was to submit skills to the UK market.
Getting StartedHead to https://developer.amazon.com assuming you have an Amazon Developer Account, and create a new Alexa Skill.
The website will walk you through all the information you need, but to publish to the UK skill market make sure you select English (UK) as the language. We also need to specify an intent schema, which defines all the functions our app will have. Here's what mine looks like:
{ "intents": [
{ "intent": "GetNewFactIntent" },
{ "intent": "AMAZON.HelpIntent" },
{ "intent": "AMAZON.StopIntent" },
{ "intent": "AMAZON.CancelIntent" }
]
}
Fill out the rest of the information such as the utterances and proceed until it asks you for an ARN.
Using AWS LambdaHead here and create or sign into your Amazon Developer Account. Follow the guide linked above, set up node.js and download the alexa-sdk package. Again, go through the instructions step by step, creating a new function and uploading the zip file with all the code. Once you have the code uploaded, you can edit it inline and go through it, changing facts and experimenting with the code. Finally, the ARN is located at the top right of the page. All you have to do is copy the ARN into the skills setup page and voila! Your skill is set up.
Ending CommentsUsing AWS Lambda to create an Alexa Skill was a really cool experience as Lambda handles all the authentication, all you need to worry about is the function of your code. Also, as Amazon adds new markets for Alexa skills, it is really simple to publish it in the US and UK!
Here is the link to the published skill:
https://www.amazon.co.uk/Raj-Bhanushali-Gorilla-Facts/dp/B0721C738F
Comments