Skip to content

Commit c98c5e0

Browse files
author
Paul Cutsinger
committed
Adding list sample to cookbook
1 parent fb1d83e commit c98c5e0

File tree

10 files changed

+689
-0
lines changed

10 files changed

+689
-0
lines changed

context/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
Build deeper and more engaging experiences by understanding and making use of context about the user
3+
4+
Connecting to a specific user
5+
* [UserId](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference#system-object)
6+
* Account Linking [tech docs](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/linking-an-alexa-user-with-a-user-in-your-system)
7+
and [guide](https://developer.amazon.com/blogs/alexa/post/Tx3CX1ETRZZ2NPC/alexa-account-linking-5-steps-to-seamlessly-link-your-alexa-skill-with-login-with-amazon)
8+
9+
Permissions to get information about the user
10+
* Device address information [tech docs](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/device-address-api) and [sample](https://github.com/alexa/skill-sample-node-device-address-api)
11+
* Shopping and To-do lists [Tech docs](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/access-the-alexa-shopping-and-to-do-lists) and [sample](https://github.com/AlexaStaging/alexa-cookbook/tree/master/context/lists)
12+
13+
Saving context for future interactions
14+
* [Session persistence](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs#persisting-skill-attributes-through-dynamodb)
15+
* [Saving user specific information to a database](https://github.com/alexa/alexa-cookbook/tree/master/aws/Amazon-DynamoDB)

context/device-address/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The Device Address API enables skills to request and access the configured address in the customer’s device settings. This means you can build skills with the context to understand the customers who use the skill, then use the data to customize the voice experience. Your skill, for example, can deliver food and groceries to a customer’s home or provide directions to a nearby gym. You can also see where your most active users are. Check out our documentation to learn more.
2+
3+
When a user enables a skill with the Alexa app that wants to use location data, the user will be prompted to provide consent for location data to be made available. There are two levels of location data you can request:
4+
5+
Full address, which includes street address, city, state, zip, and country Country and postal code only When a user enables a skill that wants to use this location data, the user will be prompted in the Alexa app to consent to the location data being shared with the skill. It is important to note that when a user enables a skill via voice, the user will not be prompted for this information and the default choice will be "none." In this case, you can use cards to prompt the user to provide consent using the Alexa app.
6+
7+
[Device Address sample](https://github.com/alexa/skill-sample-node-device-address-api)

context/lists/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Integrate Skills with Alexa Lists Sample Project
2+
<img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/quiz-game/header._TTH_.png" />
3+
4+
[![Voice User Interface](https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/1-off._TTH_.png)](https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/1-voice-user-interface.md)[![Lambda Function](https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/2-off._TTH_.png)](https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/2-lambda-function.md)[![Connect VUI to Code](https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/3-off._TTH_.png)](https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/3-connect-vui-to-code.md)[![Testing](https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/4-off._TTH_.png)](https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/4-testing.md)
5+
6+
<!--<a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/1-voice-user-interface.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/1-off._TTH_.png" /></a><a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/2-lambda-function.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/2-off._TTH_.png" /></a><a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/3-connect-vui-to-code.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/3-off._TTH_.png" /></a><a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/4-testing.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/4-off._TTH_.png" /></a><a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/5-customization.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/5-off._TTH_.png" /></a><a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/6-publication.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/navigation/6-off._TTH_.png" /></a>-->
7+
8+
## What You Will Learn
9+
* [AWS Lambda](http://aws.amazon.com/lambda)
10+
* [Alexa Skills Kit (ASK)](https://developer.amazon.com/alexa-skills-kit)
11+
* Lists for Alexa Skills
12+
13+
## What You Will Need
14+
* [Amazon Developer Portal Account](http://developer.amazon.com)
15+
* [Amazon Web Services Account](http://aws.amazon.com/)
16+
* The sample code on [GitHub](https://github.com/alexastaging/alexa-cookbook/context/lists).
17+
18+
## What Your Skill Will Do
19+
Customers can review and modify their Alexa lists using voice through a device with Alexa or via the Alexa app. For example, a customer can tell Alexa to add items to the Alexa Shopping List at home, and then while at the store, view the items via the Alexa app, and check them off. Third-party developers can make their skills have the ability to read and modify these two Alexa lists. Skills can request permissions to read and write the customer Alexa lists.
20+
21+
When a user enables a skill within the Alexa app, the user will be prompted to provide consent for the read and write permissions. The customer can then ask for the top item on the to-do list or request to delete the top to-do item. It is important to note that when a user enables a skill via voice, the user will not be prompted for this information and the default choice will be "none." In this case, you can use cards to prompt the user to provide consent using the Alexa app.
22+
23+
24+
<a href="https://github.com/AlexaStaging/alexa-cookbook/blob/master/context/lists/step-by-step/1-voice-user-interface.md"><img src="https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/general/buttons/button_get_started._TTH_.png" /></a>
25+
26+
<img height="1" width="1" src="https://www.facebook.com/tr?id=1847448698846169&ev=PageView&noscript=1"/>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"intents": [
3+
{
4+
"intent": "TopToDoIntent"
5+
},
6+
{
7+
"intent": "ClearTopToDoIntent"
8+
},
9+
{
10+
"intent": "AMAZON.CancelIntent"
11+
},
12+
{
13+
"intent": "AMAZON.HelpIntent"
14+
},
15+
{
16+
"intent": "AMAZON.StopIntent"
17+
}
18+
]
19+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
TopToDoIntent what is my top todo
2+
TopToDoIntent what is my top to do
3+
TopToDoIntent top todo
4+
TopToDoIntent top to do
5+
TopToDoIntent my top todo
6+
TopToDoIntent my top to do
7+
TopToDoIntent stop todo
8+
TopToDoIntent stop to do
9+
10+
ClearTopToDoIntent clear top todo
11+
ClearTopToDoIntent clear top to do
12+
ClearTopToDoIntent delete top todo
13+
ClearTopToDoIntent delete top to do
14+
ClearTopToDoIntent delete todo
15+
ClearTopToDoIntent delete to do
16+
ClearTopToDoIntent delete my todo
17+
ClearTopToDoIntent delete my to do

0 commit comments

Comments
 (0)