Hey, this is Steve with Dabble Lab. In this video, I’m going to show you how to create the simplest possible skill for Amazon Alexa and I’m going to see how fast I can do that.
So if you’re going to follow along, you’ll need two things – you’ll need an AWS account, Amazon Web Services account. You can get that at aws.amazon.com. You’ll also need an Amazon Developer Account. You can get that at developer.amazon.com.
Once you have both of those, go ahead and log into your developer account and go to your developer console. And from there go to Alexa and then the Alexa Skills Kit and then Add a New Skill, and give your skill a name. I’m going to call this one super simple skill and I’ll use that for the invocation name also and then save that.
The next thing that you want to do is go to Interaction Model and then launch the skill builder. And I’m going to intent called HelloIntent, like that. And I’m going to add hello here for the utterance and then I’m going to save that and build that model, which is going to take a minute.
While that’s building, I’m going to over here to AWS and if you are logged in, once you’ve logged in, go to your Management Console, and then go to Lambda service and we’re going to create a function here and we’re going to just author one from scratch. We’re going to call this super-simple-skill, like that.
The role here if you’re just setting up your AWS account for the first time, you want to choose to Create a Custom Role and it will step you through that. I’ve already done that and so I’m just going to go select the lambda_basic_execution role, which is the default name that it uses when it creates a role for the first time and then I’ll go create function.
And then in here, I’m going to cheat and just copy and paste to save us time but there is an output format that Alexa is expecting. And in this case here, it’s just a JSON format with the response node here and some info. I’m going to respond with a response that tells Alexa to speak back “Hello, I’m a super simple skill.” And let’s see, I’ll get rid of this. We don’t need that. And that is the simplest possible skill handler on the backend, so we’re going to — I’m going to save that.
The other thing that we need to do here is you need to set up a trigger and the trigger is going to allow the skill to be called from the Alexa Skills Kit, so we want to choose Alexa Skills Kit here and say Submit. And then we want to copy the ARN, the Amazon Resource Name from up here and we’re going to need that to link the skill in the Developer Console to the Lambda Function.
So this is done Building. I can go to Configuration. And then in my configuration, I’m going to select the AWS Lambda ARN and paste that in here, so that is going to be my endpoint. I’m going to save that. And now I should be able to test this. You want to go to Test and then turn this on and I can say hello here to see if it’s working. And I got a response back, so now I can test it with my Echo, so turn that on.
Steve: Alexa, open super simple skill.
Alexa: Hello, I’m a super simple skill.
That’s it. That is the simplest skill that you can create for Amazon Alexa. Hopefully, this was valuable. If you want to get more detailed, you can go to learn.dabblelab.com and I’ve got a free course that you can dive deeper into this if you want to do that.
If you have any comments or questions, you can leave those and I’ll respond just as soon as I can. If you found this video valuable, please like it and subscribe to the Dabble Lab channel. Thanks so much.