This is a stripped down version of this repository https://github.com/alexa/skill-sample-nodejs-fact. With simple deployment scripts included.
npm install
- Go to the AWS Console - Lambda: https://console.aws.amazon.com/lambda/
- Create function
- Give function name and choose
Create a new role with basic Lambda permissions
- Create function
- Under the
Designer
subheading, click "Add Trigger" - Choose
Alexa Skills Kit
- Select "Disable" for Skill ID verification (generally, you'd set this to your skill ID, but for the purposes of this exercise, this will do)
First go to package.json
and update the update-lambda-function
script to use your lambda function (replacing the arn with the one from the lambda console).
Then:
npm run deploy
- Go to the Alexa Console: https://developer.amazon.com/alexa/console
- Create New Skill
- Pick a Name: Choose "Custom" Skill type
- Pick Fact Skill
- Click Endpoint on the left-hand navigation and set the ARN to your own Lambda function ARN