Interactive Object
The object describing an interactive message. Each interactive object type has different object requirements.
List
The object describing a list message interactive object.
Example
{
"type": "list",
"header": {
"type": "text",
"text": "HEADER_TEXT"
},
"body": {
"text": "BODY_TEXT"
},
"footer": {
"text": "FOOTER_TEXT"
},
"action": {
"button": "BUTTON_TEXT",
"sections": [
{
"title": "SECTION_1_TITLE",
"rows": [
{
"id": "SECTION_1_ROW_1_ID",
"title": "SECTION_1_ROW_1_TITLE",
"description": "SECTION_1_ROW_1_DESCRIPTION"
},
{
"id": "SECTION_1_ROW_2_ID",
"title": "SECTION_1_ROW_2_TITLE",
"description": "SECTION_1_ROW_2_DESCRIPTION"
}
]
},
{
"title": "SECTION_2_TITLE",
"rows": [
{
"id": "SECTION_2_ROW_1_ID",
"title": "SECTION_2_ROW_1_TITLE",
"description": "SECTION_2_ROW_1_DESCRIPTION"
},
{
"id": "SECTION_2_ROW_2_ID",
"title": "SECTION_2_ROW_2_TITLE",
"description": "SECTION_2_ROW_2_DESCRIPTION"
}
]
}
]
}
}
Properties
type
: "list" — interactive object type of list.body
: SimpleTextObject — content of the message. Emojis and markdown are supported. Maximum length: 1024 characters.footer
: SimpleTextObject (optional) — footer content. Emojis, markdown, and links are supported. Maximum length: 60 characters.header
: HeaderObject (optional) — header content displayed on top of a message.action
: ActionObject — action you want the user to perform after reading the message.
Multi-product
The object describing a multi-product interactive object.
Example
{
"type": "product_list",
"header":{
"type": "text",
"text": "header-content"
},
"body": {
"text": "body-content"
},
"footer": {
"text": "footer-content"
},
"action": {
"catalog_id": "CATALOG_ID",
"sections": [
{
"title": "section-title",
"product_items": [
{ "product_retailer_id": "product-SKU-in-catalog" },
{ "product_retailer_id": "product-SKU-in-catalog" }
]
},
{
"title": "section-title",
"product_items": [
{ "product_retailer_id": "product-SKU-in-catalog" },
{ "product_retailer_id": "product-SKU-in-catalog" }
]
}
]
}
}
Properties
type
: "product_list" — interactive object type of product_list.body
: SimpleTextObject — content of the message. Emojis and markdown are supported. Maximum length: 1024 characters.footer
: SimpleTextObject (optional) — footer content. Emojis, markdown, and links are supported. Maximum length: 60 characters.header
: HeaderObject — header content displayed on top of a message.action
: ActionObject — action you want the user to perform after reading the message.
Single product
The object describing a single product interactive object.
Example
{
"type": "product",
"body": {
"text": "optional body text"
},
"footer": {
"text": "optional footer text"
},
"action": {
"catalog_id": "CATALOG_ID",
"product_retailer_id": "ID_TEST_ITEM_1"
}
}
Properties
type
: "product" — interactive object type of product.body
: SimpleTextObject (optional) — content of the message. Emojis and markdown are supported. Maximum length: 1024 characters.footer
: SimpleTextObject (optional) — footer content. Emojis, markdown, and links are supported. Maximum length: 60 characters.header
: HeaderObject (optional) — header content displayed on top of a message.action
: ActionObject — action you want the user to perform after reading the message.
Reply button
The object describing a reply button interactive object.
Example
{
"type": "button",
"body": {
"text": "BUTTON_TEXT"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "UNIQUE_BUTTON_ID_1",
"title": "BUTTON_TITLE_1"
}
},
{
"type": "reply",
"reply": {
"id": "UNIQUE_BUTTON_ID_2",
"title": "BUTTON_TITLE_2"
}
}
]
}
}
Properties
type
: "button" — interactive object type of button.body
: SimpleTextObject — content of the message. Emojis and markdown are supported. Maximum length: 1024 characters.footer
: SimpleTextObject (optional) — footer content. Emojis, markdown, and links are supported. Maximum length: 60 characters.header
: HeaderObject (optional) — header content displayed on top of a message.action
: ActionObject — action you want the user to perform after reading the message.