send_template_message
Sends a WhatsApp template message to a contact via a bot and template ID, accepting optional phone number, contact ID, template parameters, and language code.
Instructions
Send a template message to a WhatsApp contact
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": {
"bot_id": "<bot_id>",
"template_id": "<template_id>"
},
"name": "send_template_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Recipient phone number | |
| bot_id | Yes | The ID of the bot | |
| contact_id | No | Recipient contact ID (alternative to phone) | |
| parameters | No | Template parameters | |
| template_id | Yes | ID of the message template | |
| language_code | No | Language code for the template | en |