Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Dec 14, 2016
1 parent d455a6b commit 1d5226b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
29 changes: 26 additions & 3 deletions aws-node-alexa-skill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion aws-node-alexa-skill/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
},
},
};
Expand Down

0 comments on commit 1d5226b

Please sign in to comment.