wa_create_template
Creates a new WhatsApp message template for a business account, initiating Meta review before it can be sent. Supports utility, marketing, and authentication types.
Instructions
Create a new message template in a WABA. Templates go through Meta review before they can be sent.
When to use: setting up a new outbound notification, marketing or authentication message type.
Inputs:
name: lowercase letters, digits, underscores only.language: locale code matching Meta's list (en, pt_PT, es_ES, ...).category: UTILITY | MARKETING | AUTHENTICATION. Affects pricing and review rules.components_json: JSON array following Meta's component schema. Common types: [{"type":"HEADER","format":"TEXT","text":"Hello"}, {"type":"BODY","text":"Hi {{1}}, your code is {{2}}.","example":{"body_text":[["Alice","123"]]}}, {"type":"FOOTER","text":"Reply STOP to opt out"}]
Returns: the new template's ID. Status starts as PENDING; poll wa_get_templates for review result.
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": {
"waba_id": "<waba_id>",
"name": "<name>",
"language": "<language>",
"category": "<category>",
"components_json": "<components_json>"
},
"name": "wa_create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name: lowercase letters, digits, underscores only | |
| waba_id | Yes | WhatsApp Business Account ID (numeric) | |
| category | Yes | Template category | |
| language | Yes | Language/locale code, e.g. en, pt_PT, es_ES | |
| components_json | Yes | JSON array of components (HEADER, BODY, FOOTER, BUTTONS) following Meta API schema |