Quickly get started developing Amazon Alexa skills for you Amazon Echo. After a few short setup steps you will be able to create a functioning skill and deploy it to Amazon Lambda. The boilerplate app includes two of the best npm modules for creating Alexa skills: alexa-app for providing structure to you application, and grunt-aws-lambda for uploading your code to Amazon Lambda from the command line by simply typing grunt deploy
.
Configuring the sample app is as easy as pasting the ARN of your Lambda function into config/default.json
and running npm install
. That's it! If you don't know how to get your ARN then read "Creating you Lambda function" below.
{
"Amazon" : {
"lambda-arn" : "YOUR ARN HERE",
}
}
grunt
makes it easy to deploy code. Just run:
grunt deploy
Check out index.js
for the boilerplate Alexa app. Examples of how to define an intent handler, build sample utterences and schema, and response asynchronously are all included.
Each Alexa skill requires a Lambda function.
- Log into the AWS Lambda Console and making sure your region is set to
us-east-1
- Click "Create Lambda Function"
- Choose to skip the "Select blueprint" phase
- Give your function a name and description. For the inital code, just type
{}
which is valid Javascript that does nothing. We will be uploading our code viagrunt
later. - Set the role and create your function.
- Copy the ARN from the top right corner of the function page.