From 1d5226b168bf6e84bed50ab14bd957b1b930e974 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 14 Dec 2016 14:34:54 +0100 Subject: [PATCH] update instructions --- aws-node-alexa-skill/README.md | 29 ++++++++++++++++++++++++++--- aws-node-alexa-skill/handler.js | 2 +- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/aws-node-alexa-skill/README.md b/aws-node-alexa-skill/README.md index 25676a7bf..cc77417b1 100644 --- a/aws-node-alexa-skill/README.md +++ b/aws-node-alexa-skill/README.md @@ -12,8 +12,6 @@ In the Alexa Developer Portal you can add you own skill. To do so you need to de ## Setup -TODO go through the steps - In order to deploy the you endpoint simply run ```bash @@ -44,4 +42,29 @@ functions: ``` -## Usage +Next we need to setup a Alexa skill. Therefor signup for the Amazon Developer Platform and visit `https://developer.amazon.com/edw/home.html`. There you should see the following screen: + +![Welcome](https://cloud.githubusercontent.com/assets/223045/21183285/8403b37c-c207-11e6-89c0-d36582010af8.png) + +Next click on `Add a new Skill`: + +![Add Skill](https://cloud.githubusercontent.com/assets/223045/21183286/84051262-c207-11e6-8422-945b6b45e83b.png) + +Go through the steps and fill in all the required fields e.g. Intent Schema and Sample Utterances: + +![Skill Information](https://cloud.githubusercontent.com/assets/223045/21183279/83eec480-c207-11e6-841b-d8925f0804a5.png) +![Interaction Model](https://cloud.githubusercontent.com/assets/223045/21183280/83ef3d84-c207-11e6-87a5-bb8dcbb903f8.png) + +Fill in the Lambda ARN which was printed or run `serverless info` to retrieve the ARN again. + +![Configuration](https://cloud.githubusercontent.com/assets/223045/21183281/83f17086-c207-11e6-89b7-2f6d96ac559c.png) + +Next up visit the test page, fill in the utterance and click on `Ask LuckyNumbers`. + +![Test](https://cloud.githubusercontent.com/assets/223045/21183283/83f1f632-c207-11e6-858d-41b1a3154e91.png) +![Test](https://cloud.githubusercontent.com/assets/223045/21183282/83f1f628-c207-11e6-974e-b7c051ffb6eb.png) +![Test](https://cloud.githubusercontent.com/assets/223045/21183284/83f708ac-c207-11e6-8199-9489e8f3e494.png) + +You should have received a response containing the text `Your lucky number is` followed by your lucky number :) + +Check out this [Amazon guide](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/overviews/steps-to-build-a-custom-skill#your-skill-is-published-now-what) to learn more about how to submit your skill for publication. diff --git a/aws-node-alexa-skill/handler.js b/aws-node-alexa-skill/handler.js index 6bca2c280..9afae684f 100644 --- a/aws-node-alexa-skill/handler.js +++ b/aws-node-alexa-skill/handler.js @@ -11,7 +11,7 @@ module.exports.luckyNumber = (event, context, callback) => { response: { outputSpeech: { type: 'PlainText', - text: `You lucky number is ${number}`, + text: `Your lucky number is ${number}`, }, }, };