Alexa Skills¶
Event-driven, synchronous invocation
Request¶
Generating sameple events¶
sam local generate-event alexa-skills-kit end-session
sam local generate-event alexa-skills-kit intent-answer
sam local generate-event alexa-skills-kit intent-getnewfact
sam local generate-event alexa-skills-kit intent-mycoloris
sam local generate-event alexa-skills-kit intent-recipe
sam local generate-event alexa-skills-kit start-session
Event Example¶
Amazon Alexa Intent Recipe Event
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.123456789012",
"application": {
"applicationId": "amzn1.ask.skill.987654321"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.testUser"
}
},
"context": {
"AudioPlayer": {
"playerActivity": "IDLE"
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.987654321"
},
"user": {
"userId": "amzn1.ask.account.userId"
},
"device": {
"supportedInterfaces": {
"AudioPlayer": {}
}
}
}
},
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.1234",
"timestamp": "2016-10-27T21:06:28Z",
"locale": "en-US",
"intent": {
"name": "RecipeIntent",
"slots": {
"Item": {
"name": "Item",
"value": "snowball"
}
}
}
}
}
Response¶
Resources¶
Language SDK
Sample projects