DEV Community

Cover image for How To Build Alexa skill on Alexa Developer Console
Sahastra Kishore
Sahastra Kishore

Posted on • Edited on • Originally published at Medium

How To Build Alexa skill on Alexa Developer Console

Hello readers it’s my first blog on DEV so recently I published a skill on Amazon alexa and faced lots of difficulties while making the skill as I was a beginner I didn’t have any resource to make that so, I think that writing a blog on this will definitely help to others developer who are interested to build alexa skill on Amazon Alexa. As to create a skill you have to move on to https://developer.amazon.com/alexa/console/ask after Login you will see “Create Skill” Button like this.

Ya, click on the button and you will be next to this image.

Now write your skill name in skill name section and prefer the language in which your skill will invoke, choose “custom” then choose “provision your own” for hosting your skill’s backend resources now click onto “Create Skill” button to create the skill. After doing so, you will head over to Alexa developer console.

As you can see that in left bar menu there are some functions in interaction model section what does it means? So Intent function is used for function call means whenever you invoke your skill this function will calls in JS file so I added intent name as a GetNewFactIntent. Moving further you can see Interface it means that how your skills interface look like and Endpoint plays a role of communication with AWS. As I am using AWS for backend purpose. So this was the basic ideas about them. Now click on “Intent” and add Intent name there.

so, probably you have added that, now come onto next that is setting up of AWS backend.

yow will see this above image after login or signup of your account. What you have to do now is that just search Lambda in Find services box. Now you may have doubt of what this lambda is? So, AWS Lambda is Amazon’s serverless compute service. You can run your code on it without having to manage servers or even containers. After searching you will head over to this image.

As I made some of my skills from the lambda function so, Click on the “Create Function” button to create lambda function for your skill.

Now on next step you have to choose serverless app repository, as earlier fact skills were present in blueprint of lambda function so after choosing it you will see alexa-skill-kit-nodejs-factskill repository select it. And after that you will next to this image.

Now click on the “Deploy” button.

click on first link in Resources i.e alexaskillskitnodejsfactskill

Now you done with setup of lambda function. So, now click on to the Alexa Skill Kit above add trigger you will see that your skill is not verified with this trigger so delete this and Add trigger by enabling skill id in trigger configuration, Now you are thinking that where i will get my skill id so don't worry, Come onto alexa developer console again and move into Endpoint section you will see like this.

Now, copy skill id and paste it in Trigger configuration and on lambda dashboard you will see ARN id at top of the page copy that and paste it here in Default region box this make that your endpoint is linked with AWS lambda which we are using for backend resource after doing this click “Save Endpoint” button to save your endpoint.

Now click on lambda icon you will see Function code. which look like this


Now, edit this code with your skills requirement. And save this JS file after then come on alexa developer console and move on to test section, Now we done everything it's time to test your skill is it working or not.

If you are seeing this image then your skill passed test version Hurrey!!! Now it's time to publish it on production. As after this step its confidential So, that’s all. Hope you like this blog and may be helpful for your development of alexa skill, With this note THANK YOU.
If you have any query regarding this then comment below I’ll be happy to give you answers..

Top comments (0)