send_template
Sends a WhatsApp template message outside the 24-hour session window, using Cloud API component objects so you can reach contacts when standard replies are closed.
Instructions
Send a WhatsApp template message (works outside the 24-hour session window).
Use this tool — not send_message — when the 24h session is closed.
params MUST be Cloud API component objects, never a flat list of strings
and never the old On-Prem hsm / localizable_params format.
Example body variable {{1}}:
{
"type": "body",
"parameters": [{ "type": "text", "text": "Ivan" }]
}Do not send "type": "hsm" and do not send params: ["Ivan", "123"].
Supported params button sub_type values include: url, quick_reply,
copy_code / coupon_code, catalog, flow, limited_time_offer, and
order_details (WhatsApp Payments India only — requires an approved
Utility template with an ORDER_DETAILS button).
Convenience wrapper with structured fields: POST /sendOrderDetails.
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_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| chatId | No | ||
| params | No | ||
| language | No | ||
| template | No | ||
| namespace | No | ||
| useMMlite | No | ||
| quotedMsgId | No | ||
| messageSendTtlSeconds | No | ||
| messageActivitySharing | No |