Submit a WhatsApp template for approval
submit_whatsapp_templateSubmit the exact approved message template to the site's connected WhatsApp Business provider and save the returned pending/approved row locally. This reaches Meta or another provider and may create a permanent template there; call it only after the owner has explicitly approved the exact name, category, language, body, variables and buttons. Use list_whatsapp_templates first to avoid a duplicate name.
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": {
"site_id": "<site_id>",
"name": "<name>",
"category": "<category>",
"language": "<language>",
"body": "<body>"
},
"name": "submit_whatsapp_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| name | Yes | Lowercase template name with letters, digits and underscores only | |
| buttons | No | ||
| site_id | Yes | The site, from list_sites | |
| category | Yes | ||
| language | Yes | Locale such as en_US, hi, es or pt_BR | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| footer_text | No | ||
| header_text | No | ||
| header_type | No | ||
| variable_examples | No |