whatsapp_send_template
Send a pre-approved WhatsApp message template to a recipient, enabling compliant outreach outside the 24-hour customer-service window.
Instructions
Send a pre-approved WhatsApp message template. This is the only message kind allowed outside the 24h customer-service window.
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": "whatsapp_send_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number in E.164 (+55...) or wa_id | |
| components | No | Template components array (header/body/buttons parameters). | |
| access_token | No | Optional override for the access token (falls back to WHATSAPP_ACCESS_TOKEN env) | |
| language_code | No | BCP-47 style code (pt_BR, en_US) | pt_BR |
| template_name | Yes | ||
| phone_number_id | No | WhatsApp Business Phone Number ID (falls back to WHATSAPP_PHONE_NUMBER_ID env) |