send_carousel
Send interactive product card carousels with images, URLs, or quick-reply buttons to a chat when a 24-hour customer service window is open.
Instructions
You can send product cards via Carousel in two ways:
Template messages: do not require a 24-hour customer service window between you and the recipient. Use sendTemplate.
Free-form messages: can be sent only when a customer service window is open between you and the recipient. Use sendCarousel.
The message structure in /sendCarousel is largely similar to sending a template. However, in this case you must explicitly specify all elements that are created in advance when working with templates. This is because the message is sent without using a template.
In /sendCarousel, for a Catalog Carousel there can be either 1 URL button or one or more quick reply buttons.
Prefer the simple cards array (2–10 cards). Each card needs a header media/product
plus a CTA URL or quick-reply buttons. Example:
{
"phone": "79001234567",
"body": "Pick a product",
"cards": [
{
"header": { "type": "image", "image": { "link": "https://example.com/1.jpg" } },
"body": { "text": "Card one" },
"type": "cta_url",
"action": { "name": "cta_url", "parameters": { "url": "https://example.com/p1", "display_text": "Open" } }
},
{
"header": { "type": "image", "image": { "link": "https://example.com/2.jpg" } },
"body": { "text": "Card two" },
"type": "cta_url",
"action": { "name": "cta_url", "parameters": { "url": "https://example.com/p2", "display_text": "Open" } }
}
]
}params with a CAROUSEL component is the template-like alternative.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "send_carousel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| cards | No | ||
| phone | No | ||
| chatId | No | ||
| params | No | ||
| quotedMsgId | No |