Message type | Template | Values |
---|
Standard |
{
"type": "standard",
"content": {
"text": "hello"
}
}
CODE
| |
Action |
{
"type": "action",
"content": {
"text": "",
"responses": [
{
"type": "",
"label": "",
"action": ""
}
]
}
}
CODE
| text: text string, up to 255 characters. responses: array, minimum 1, maximum 10. responses (buttons): any button.
|
Carousel |
{
"type": "carousel",
"content": {
"items": [
{
"title": "",
"subtitle": "",
"image": 'http://placehold.it/400x200',
"image_description": "",
"url": "",
"responses": [
{
"type": "",
"label": "",
"action": ""
}
]
}
],
}
}
CODE
| items: array, minimum 2, maximum 10. title: text string, up to 255 characters. subtitle: text string, up to 255 characters. url: text string of a valid URL, up to 255 characters. image: text string of a valid URL, up to 255 characters. image_description: text string, up to 255 characters. responses: array, minimum 1, maximum 10. responses (buttons): any button.
|
Content |
{
"type": "content",
"content": {
"text": "",
"title": "",
"markdown": ""
}
}
CODE
| text: text string, up to 255 characters. title: text string, up to 255 characters. markdown: text string, up to 255 characters.
|
Embed |
{
"type": "content",
"content": {
"text": "",
"title": "",
"url": ""
}
}
CODE
| text: text string, up to 255 characters. title: text string, up to 255 characters. content_description: text string, up to 255 characters. URL: text string of a valid URL, up to 255 characters.
|
Event |
{
"type": "content",
"content": {
"text": "",
}
}
CODE
| |
General |
{
"type": "general",
"content": {
"title": "",
"subtitle": "",
"full_size": false,
"image": "http://placehold.it/400x200",
"image_description": "",
"url": "",
"responses": [
{"type": "postback", "label": "", "action": ""}
]
}
}
CODE
| title: text string, up to 255 characters. subtitle: text string, up to 255 characters. url: text string of a valid URL, up to 255 characters. image: text string of a valid URL up to 255 characters. image_description: text string, up to 255 characters. responses: array, minimum 1, maximum 10. responses (buttons): any button.
|
Image |
{
"type": "image",
"content": {
"url": "",
"image_description": "",
"text": ""
}
}
NONE
| url: text string of a valid URL, up to 255 characters. text: text string, up to 255 characters. image_description: text string, up to 255 characters. full_size: true or false
|
Payment |
{
"type": "payment",
"content": {
"processor": "",
"content_description": "",
}
}
CODE
| |
Progress |
{
"type": "progress",
"content": {
"text": ""
}
}
CODE
| |
Quick replies |
{
"type": "quick-reply",
"content": {
"text": "",
"responses": [
{
"type": "",
"label": "",
"action": ""
}
]
}
}
CODE
| text: text string, up to 255 characters. responses: array, minimum 1, maximum 10. label: text string, up to 255 characters. postback: text string, up to 255 characters
|
Video |
{
"type": "video",
"content": {
"url": "",
"text": "",
"provider": "youtube",
"content_description": ""
}
}
CODE
| text: text string, up to 255 characters. content_description: text string, up to 255 characters. provider: youtube or vimeo. url: text string of a valid URL, up to 255 characters.
|