Field in custom payload
|
Description
|
Example
|
---|---|---|
title
|
The select structured message body
|
{
"quickReplies": {
"title": "this is the body of the quick replies",
"quickReplies": [
"option1",
"option2",
"option3",
"option4",
"option5"
]
}
}
|
quickReplies | Payload of the structured message |
Field in custom payload
|
Description
|
Example
|
title
|
Title of the template
|
{
"card": {
"imageUri": "https://www.planetware.com/wpimages/2020/01/india-in-pictures-beautiful-places-to-photograph-taj-mahal.jpg",
"buttons": [
{
"text": "button1"
},
{
"text": "button2"
},
{
"postback": "http://ringcentral.com/",
"text": "button3"
},
{
"text": "button4"
}
],
"title": "Title of the template",
"subtitle": "Subtitle of the template"
}
}
|
subtitle
|
Subtitle of the template
|
|
imageUri
|
The URL to the attachment used to decorate the template with an image
|
|
buttons.text
|
The title of the item (button)
|
|
buttons.postback
|
URL if you want to open website when clicking on the button
|
Field
|
Description
|
Example
|
---|---|---|
target
|
Possible options: webview, current, open
|
{"card":
{
"imageUri": "https://www.planetware.com/wpimages/2020/01/india-in-pictures-beautiful-places-to-photograph-taj-mahal.jpg",
"buttons": [
{
"postback": "https://context.reverso.net/translation/",
"text": "button1",
"target": "webview",
"webview_height": "full"
},
{
"text": "button2"
},
{
"postback": "http://ringcentral.com/",
"text": "button3"
}],
"title": "Title of the template",
"subtitle": "Subtitle of the template",
"target": "webview"
}
}
|
webview_height | Possible options: full, tall, compact |