Send WhatsApp template message
send_template_messageStart or re-open a WhatsApp conversation by sending a pre-approved message template with body, header, and button parameters to a recipient phone number.
Instructions
Send a pre-approved WhatsApp message template. Templates are REQUIRED to start a conversation (or to re-engage a user after the 24-hour customer-service window has closed). Use body_parameters for simple {{1}},{{2}} placeholders, or components for advanced header/button parameters. Discover templates with list_message_templates.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "<to>",
"template_name": "<template_name>"
},
"name": "send_template_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number, ideally E.164 (e.g. +971501234567) | |
| components | No | Full components array (header/body/button parameters) for advanced templates | |
| language_code | No | Template language code, e.g. en_US or ar | en_US |
| template_name | Yes | Approved template name, e.g. hello_world | |
| body_parameters | No | Shortcut: values for {{1}}, {{2}}… in the template body |