Skip to content

Commit

Permalink
initial code for hands-on labs
Browse files Browse the repository at this point in the history
  • Loading branch information
keshawilliams committed Nov 13, 2019
1 parent 3e3ebfc commit 2e92a9f
Show file tree
Hide file tree
Showing 95 changed files with 12,616 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added Connecting_Lambda_To_DynamoDB/.DS_Store
Binary file not shown.
Binary file added Connecting_Lambda_To_DynamoDB/code/.DS_Store
Binary file not shown.
55 changes: 55 additions & 0 deletions Connecting_Lambda_To_DynamoDB/code/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "adventure guru",
"intents": [
{
"name": "AMAZON.FallbackIntent",
"samples": []
},
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": [
"I'm lost in this adventure",
"I'm lost"
]
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "StartAdventureIntent",
"slots": [
{
"name": "country",
"type": "AMAZON.Country"
}
],
"samples": [
"{country}",
"I'd like to explore {country}",
"I'd like to visit {country}"
]
},
{
"name": "AMAZON.NoIntent",
"samples": []
},
{
"name": "AMAZON.YesIntent",
"samples": []
}
],
"types": []
}
}
}
606 changes: 606 additions & 0 deletions Connecting_Lambda_To_DynamoDB/code/lambda_function.py

Large diffs are not rendered by default.

Binary file not shown.
Binary file added Dialog_Management/.DS_Store
Binary file not shown.
87 changes: 87 additions & 0 deletions Dialog_Management/code/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "adventure guru",
"intents": [
{
"name": "AMAZON.FallbackIntent",
"samples": []
},
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": [
"I'm lost in this adventure",
"I'm lost"
]
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "StartAdventureIntent",
"slots": [
{
"name": "country",
"type": "AMAZON.Country"
}
],
"samples": [
"{country}",
"I'd like to explore {country}",
"I'd like to visit {country}"
]
},
{
"name": "AMAZON.NoIntent",
"samples": []
},
{
"name": "AMAZON.YesIntent",
"samples": []
}
],
"types": []
},
"dialog": {
"intents": [
{
"name": "StartAdventureIntent",
"confirmationRequired": false,
"prompts": {},
"slots": [
{
"name": "country",
"type": "AMAZON.Country",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.286996694500.861813784993"
}
}
]
}
],
"delegationStrategy": "ALWAYS"
},
"prompts": [
{
"id": "Elicit.Slot.286996694500.861813784993",
"variations": [
{
"type": "PlainText",
"value": "Which country"
}
]
}
]
}
}
Binary file added FlashBriefing/.DS_Store
Binary file not shown.
16 changes: 16 additions & 0 deletions FlashBriefing/feed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"uid": "urn:uuid:1335c695-cfb8-4ebb-abbd-80da344efa6b_5",
"updateDate": "2019-10-28T00:00:00.0Z",
"titleText": "Alexa Skills in Review, week of November 1st",
"mainText": "The popular Word Jumble Alexa skill now has an integrated leaderboard using Amazon Game On. Add yourself to the leaderboard to see where you rank against other players.",
"redirectionUrl": "http://www.alexawordjumble.com"
},
{
"uid": "urn:uuid:1335c695-cfb8-4ebb-abbd-80da344efa6b_6",
"updateDate": "2019-10-27T00:00:00.0Z",
"titleText": "Alexa Skills in Review, week of November 1st",
"mainText": "The Food Network Kitchen is now on the Amazon Echo Show. You can access recipes, cooking demonstrations, and popular TV show episodes.",
"redirectionUrl": "https://www.foodnetwork.com/site/apps/alexa"
}
]
Binary file added FlashBriefing/flash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lambda_Setup_And_Configuration/.DS_Store
Binary file not shown.
83 changes: 83 additions & 0 deletions Lambda_Setup_And_Configuration/alexaTestEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.123456789012",
"application": {
"applicationId": "amzn1.ask.skill.987654321"
},
"user": {
"userId": "amzn1.ask.account.testUser",
"permissions": {
"consentToken": "iDB4KHA",
"scopes": {
"alexa::devices:all:geolocation:read": {
"status": "GRANTED"
}
}
}
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.987654321"
},
"user": {
"userId": "amzn1.ask.account.testUser",
"permissions": {
"consentToken": "iDB4KHA",
"scopes": {
"alexa::devices:all:geolocation:read": {
"status": "GRANTED"
}
}
}
},
"device": {
"deviceId": "amzn1.ask.device.2A5BV5ALP5XULN",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.1"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "DniwsueXX"
},
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
}
},
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.1234",
"timestamp": "2019-10-09T23:49:25Z",
"locale": "en-US",
"shouldLinkResultBeReturned": false
}
}
Binary file added Lambda_Setup_And_Configuration/code/.DS_Store
Binary file not shown.
Loading

0 comments on commit 2e92a9f

Please sign in to comment.