Skip to content

Instantly share code, notes, and snippets.

@AlexHilson
Created June 20, 2018 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexHilson/0170574e51c3f334436154f1d7c0be40 to your computer and use it in GitHub Desktop.
Save AlexHilson/0170574e51c3f334436154f1d7c0be40 to your computer and use it in GitHub Desktop.
Example Alexa response with directives
{
"version": "1.0",
"response": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak> <say-as interpret-as=\"interjection\">dun dun dun.</say-as> Check out the big brains over here. Are you ready to begin? </speak>"
},
"directives": [
{
"type": "Display.RenderTemplate",
"template": {
"type": "BodyTemplate7",
"title": "Time to play Berry Buzz!",
"image": {
"sources": [
{
"url": "https://s3.eu-west-2.amazonaws.com/jgsound/berryImages/background-berries-berry-blackberries-87818%2B(1).jpeg"
}
]
},
"backgroundImage": {
"sources": [
{
"url": "https://s3.eu-west-2.amazonaws.com/jgsound/berryImages/main_blur2.png"
}
]
}
}
},
{
"type": "Hint",
"hint": {
"type": "PlainText",
"text": null
}
}
],
"reprompt": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak> Are you ready to begin? </speak>"
}
},
"shouldEndSession": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment