All examples below must be sent within the body field of a message as shown below
Copy {
"receiver" : {
"contacts" : [
{
"identifierValue" : "+31612345678"
}
]
} ,
"body" : {...}
}
Single cards
A carousel can contain between 1-10 cards. Each card must contain:
One of description, mediaUrl, actions
mediaURL must be a supported image type
A card supports up between 1-3 actions and can be a mix of reply, postback and url buttons
Single card with title and description
Body
Copy {
"type" : "carousel" ,
"carousel" : {
"items" : [
{
"title" : "Card 1" ,
"description" : "First card"
}
]
}
}
Google RCS
Facebook
Instagram
Single card with title, description and actions
Body
Copy {
"type" : "carousel" ,
"carousel" : {
"items" : [
{
"title" : "Card 1" ,
"description" : "First card" ,
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
}
]
}
}
Google RCS
Facebook
Instagram
Line
Single card with image, title, description and actions
Body
Copy {
"type" : "carousel" ,
"carousel" : {
"items" : [
{
"title" : "Card 1" ,
"description" : "First card" ,
"mediaUrl": "https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FRPPgQAGyZE7rvIh3WM2Z%2Fimage2.avif?alt=media",
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
}
]
}
}
Google RCS
Facebook
Instagram
Line
Multiple cards
A carousel can contain up to 10 cards.
The format of each card can either be the same or mixed e.g. one card with title and description and one card with title, description and actions. Generally for display purposes it is recommend to keep the format of cards similar.
Multiple cards with title and description
Body
Copy {
"type" : "carousel" ,
"carousel" : {
"items" : [
{
"title" : "Card 1" ,
"description" : "First card"
} ,
{
"title" : "Card 2" ,
"description" : "Second card"
} ,
{
"title" : "Card 3" ,
"description" : "Third card"
}
]
}
}
Google RCS
Facebook
Instagram
Multiple cards with title, description and actions
Body
Copy {
"type" : "carousel" ,
"carousel" : {
"items" : [
{
"title" : "Card 1" ,
"description" : "First card" ,
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
} ,
{
"title" : "Card 2" ,
"description" : "Second card" ,
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
} ,
{
"title" : "Card 3" ,
"description" : "Third card" ,
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
}
]
}
}
Google RCS
Facebook
Instagram
Line
Multiple cards with image title, description and actions
Body
Copy {
"type" : "carousel" ,
"carousel" : {
"items" : [
{
"title" : "Card 1" ,
"description" : "First card" ,
"mediaUrl": "https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FrEM9zztd8SEiJS6RQuR3%2Fimage.png?alt=media",
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
} ,
{
"title" : "Card 2" ,
"description" : "Second card" ,
"mediaUrl": "https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FRPPgQAGyZE7rvIh3WM2Z%2Fimage2.avif?alt=media",
"actions" : [
{
"type" : "reply" ,
"reply" : {
"text" : "reply"
}
} ,
{
"type" : "postback" ,
"postback" : {
"text" : "postback" ,
"payload" : "postback"
}
} ,
{
"type" : "link" ,
"link" : {
"url" : "https://www.messagebird.com" ,
"text" : "Visit MessageBird"
}
}
]
}
]
}
}
Google RCS
Facebook
Instagram
Line
Last updated 3 months ago