send_template_message
Send personalized WhatsApp Business messages using approved templates with dynamic content to recipients, enabling automated communication through the WhatsApp Business API.
Instructions
Send a template message with dynamic parameters via WhatsApp Business API
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 with country code | |
| template_name | Yes | Name of the approved template | |
| parameters | No | List of template parameters | |
| language | No | Template language code | en |
| phone_number_id | No | WhatsApp Business phone number ID (optional, uses env var if not provided) |