music_player_skill
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
music_player_skill [2017/01/02 00:32] – santiagoricoy | music_player_skill [2017/01/02 00:38] (current) – santiagoricoy | ||
---|---|---|---|
Line 243: | Line 243: | ||
What we do define is what the end user will say to invoke our skill, or navigate options within the skill. | What we do define is what the end user will say to invoke our skill, or navigate options within the skill. | ||
- | {{: | + | {{: |
The intent schema and sample utterances combined represent things the user might say, and what to do in response. | The intent schema and sample utterances combined represent things the user might say, and what to do in response. | ||
Line 253: | Line 253: | ||
For more on defining an Alexa skill' | For more on defining an Alexa skill' | ||
- | {{:: | + | {{: |
We must send our request somewhere, and the global fields section of our skill allows us to specify whether we are sending requests to our own URL or to an AWS Lambda function. It is easier to use the Amazon Resource Number (ARN) of a Lambda function, because we do not have to deal with any specifics concerning how our requests are sent to the Lambda function, we only need to write the code that our function will use to handle requests. | We must send our request somewhere, and the global fields section of our skill allows us to specify whether we are sending requests to our own URL or to an AWS Lambda function. It is easier to use the Amazon Resource Number (ARN) of a Lambda function, because we do not have to deal with any specifics concerning how our requests are sent to the Lambda function, we only need to write the code that our function will use to handle requests. | ||
- | | + | 2. **The Lambda Function** |
The Lambda function is where our code is hosted and responds when triggered by the Alexa skill. Otherwise, the function will sit idle and do nothing, making it very efficient for our purposes. With that said, let's take a brief look at our code below. | The Lambda function is where our code is hosted and responds when triggered by the Alexa skill. Otherwise, the function will sit idle and do nothing, making it very efficient for our purposes. With that said, let's take a brief look at our code below. | ||
<code javascript> | <code javascript> | ||
+ | |||
'use strict'; | 'use strict'; | ||
Line 293: | Line 295: | ||
For more on handling requests, please visit this link: [[https:// | For more on handling requests, please visit this link: [[https:// | ||
- | 3. IAM and the DynamoDB Table | + | 3. **IAM and the DynamoDB Table** |
- | {{:: | + | {{: |
In our example, we don't explicitly setup an Amazon DynamoDB table, but rather it is set up by our Lambda function. However, when we created a role with the Identity and Access Management service (IAM) and set it as our Lambda function' | In our example, we don't explicitly setup an Amazon DynamoDB table, but rather it is set up by our Lambda function. However, when we created a role with the Identity and Access Management service (IAM) and set it as our Lambda function' |
music_player_skill.1483345958.txt.gz · Last modified: by santiagoricoy