Skip to content

Instantly share code, notes, and snippets.

@ankkal
Created June 26, 2018 10:56
Show Gist options
  • Save ankkal/aba78ea94025f1c1b2f277c3002b15f6 to your computer and use it in GitHub Desktop.
Save ankkal/aba78ea94025f1c1b2f277c3002b15f6 to your computer and use it in GitHub Desktop.
BodyTemplate1.json
{
"body": {
"version": "1.0",
"response": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>hello and welcome to game skill ! Say help to hear some options.</speak>"
},
"card": {
"type": "Standard",
"title": "Welcome!",
"text": "Hello!\nThis is a card for your skill, Game Skill",
"image": {
"smallImageUrl": "https://s3.amazonaws.com/alexatest99/testS3Image.png",
"largeImageUrl": "https://s3.amazonaws.com/alexatest99/testS3Image.png"
}
},
"directives": [
{
"type": "Display.RenderTemplate",
"template": {
"type": "BodyTemplate1",
"token": "string",
"backgroundImage": {
"sources": [
{
"url": "https://s3.amazonaws.com/alexatest99/testS3Image.png",
"widthPixels": 0,
"heightPixels": 0
}
]
},
"title": "Game Skill",
"textContent": {
"primaryText": {
"type": "RichText",
"text": "Welcome to the skill!"
}
},
"backButton": "HIDDEN"
}
}
],
"reprompt": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>try again, hello and welcome to game skill ! Say help to hear some options.</speak>"
}
},
"shouldEndSession": false
},
"sessionAttributes": {
"launchCount": 0,
"history": [
{
"IntentRequest": "LaunchRequest"
}
],
"lastUseTimestamp": 0
},
"userAgent": "ask-node/2.0.0 Node/v8.10.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment