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/ask > Click "Create Skill" button
- Enter a skill name > Select "Custom" model type > Select "Provision your own" backend option > Click "Create Skill" button again
- Select "Fact Skill" template > Click "Choose" button
- Click "Endpoint" in the left-hand navigation > Replace the ARN in "Default Region" with your own lambda function ARN > Click "Save Endpoints"