Video Transcript

Hey, this is Steve with Dabble Lab.  So in this video, I’m going to show you how to set up a skill for Amazon Alexa from start to finish.  And this is actually a remake of a video that I originally published in March of 2017.  But lots changed since then, so I’m going to just walk through it in sort of updated version.

So we’re going to go pretty quick.  I’m going to try to finish it as fast as I can, but you will need two things to follow on.  You’ll need an account at developer.amazon.com and you’ll also need a Amazon Web Services account with you can get at aws.amazon.com.  So if you don’t have accounts at both of these places, go sign up.  And then once you’ve signed up, you just want to go ahead and log in.  And after you’ve logged into the Developer Console, you would go to Alexa over here, and then to the Alexa Skills Kit here.

And then in the Alexa Skills Kit, you choose to Add a New Skill and we’re going to call this one space facts and we’ll make the invocation name space facts too.  And this skill is going to be a skill that’s based on an example that Amazon provides.  So once you have that here until this point, then you can go over to Amazon Web Services and you can sign in to the console there.  After you’ve singed up of course, the AWS account, there is a free tier, so nothing that we’re doing here will cost you anything but it will prompt you for a credit card when you sign up.

Once you’re logged in, you’re going to go to the Lambda Console.  So you go under Services, Compute, and then you go to Lambda.  And like I said, we’re going to create this from a Blueprint that Amazon provide, so when you go — I went through that quickly.  I’ll go back.  So here you go create function.  And if you don’t have any functions the screen will look a little bit different but there will be a big orange Create function button that you want to press or click.  And then you want to select Blueprints here.

And then if you just filter this with Alexa, it will filter and you want to select this template here, the Alexa Skills Kit SDK fact skill.  This is the one that we’re going to use.  And we’re just going to call this space-facts, like that.  And if this is the first time that you’re creating a lambda function, you want to select a Create a custom role and it will step you through creating a role which provides the permissions for the functions to run.

If you’ve already created a function at some point as you can choose this existing role here and then you would select the role that you want to use.  Additional it creates a default one called lambda_basic execution, so that’s what I’m going to use for this example.  And then you can see here there are some boilerplate code for the Blueprint for this skill that’s going to provide space facts and I just go create function.

And then this has changed quite a bit from the last time around but basically doing the same thing.  You want to setup so that the function can run when a request comes from the Alexa Skills Kit which is over the Amazon Developer Console.  You set up what’s referred to as a trigger and if you go over here on the Add Trigger, on the left-hand side, you want to select this Alexa Skills Kit trigger right there.  And then just down here, you would choose Add and Save.

And now the functions all set up and so we can go back over the Developer Console but before doing that we want to copy this ARN here.  So we’re going to need this, so you just want to select that and copy it and then go back over to the developer.amazon.com console to your Alexa space facts skill and we’re going to go over here to — I’m skipping real quick.  We’re going to go to configuration and then select AWS Lambda ARN and we’re going to paste that ARN in that we just copied from the AWS Lambda Console and save that.

And now this, how I did this in the last video, this has changed too, because they’ve updated the example.  So we’re going to use this time around the skill builder to create the interaction model.  So you go to Launch Skill Builder here and you can — I could go through and set up the required information for this, but I’m going to cheat and show you how to cheat also.

If you go to the code editor here and then go to GitHub and then go to github.com/alexa, you can grab the interaction model from the — I think, it’s this one.  Yes, it is.  Okay.  So then from here, we go to interactionmodel.json here and just select all this.  I’m going to just grab the raw.  You want to copy that just like that and then go back over to the skill builder and then paste that in.  Hold on.

This lethal language model in there, that and then apply changes.  Okay.  And then we can save it and then build it.  It will take a minute to build, so I’m going to just pause the recording and then come back when it’s done.

Okay.  So now the interaction model is done building, so I can go over here and test it to see if everything is working.  At this point, we should be done and it should work hopefully.  We’ll try it out.  Enable the testing.  And then from here, you can use the Service Simulator down here to test it.  So you open space facts, right.  And so we got our fact back here, we can listen to that.

Alexa:  Here’s your fact.  A total solar eclipse can happen once every one to two years.  This makes them a rare event.

Okay.  So the skill is all up and working.  It’s really that simple.  You can, at this point, if you’ve set up your developer account using the same account that you used to set up your Echo, if you have an Echo, then you will also be able to test this with your live Echo.  So I’ll do that with my Echo here.

Steve:  Alexa, open space facts.

Alexa:  Here’s your fact.  The Milky Way Galaxy will collide with the Andromeda Galaxy in about 5 billion years.

Okay.  So that’s it.  That is creating a very simple Amazon Alexa Skill using one of the Amazon Blueprint, skill blueprints, the fact blueprint.  So hopefully, that was helpful.  If you have any questions, you can leave those and I will reply as quickly as I can.  If you found this video valuable, please subscribe to the Dabble Lab channel and like the video.  Thanks so much.