Created
June 20, 2018 10:10
-
-
Save AlexHilson/0170574e51c3f334436154f1d7c0be40 to your computer and use it in GitHub Desktop.
Example Alexa response with directives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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