Change a WhatsApp template
flow_update_whatsapp_templateChanges a WhatsApp template that is a draft Meta has not seen (ids from flow_list_templates): its text header, body, footer, buttons or fallbacks. Fields left out stay as they are; null removes the header or footer; buttons and fallbacks replace the whole list. Any other template changes in the portal. Variables are written {{name}} in lowercase letters and underscores. {{first_name}} (fallback up to 20 characters), {{city}} (30) and {{phone_number}} come from the contact; every variable but {{phone_number}} needs a fallback, sent when there is no value. For a name of your own, and a link's trailing variable, the fallback is what a campaign sends and the example Meta's reviewer reads; an API send can give its own value. Meta's rules apply: no variable at the start or end of the text or next to another, a text header with at most one variable, a footer without one, at most 10 buttons (2 URL, 1 PHONE_NUMBER, 1 COPY_CODE, which is MARKETING only) with quick replies together. Saved as a draft: Meta sees it only once it is submitted in the portal. The answer gives its link and preview: the message as a recipient sees it, each variable filled with its fallback.
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": {
"id": "<id>"
},
"name": "flow_update_whatsapp_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | No | ||
| footer | No | ||
| header | No | ||
| brandId | No | The id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active. | |
| buttons | No | ||
| fallbacks | No | Variable name → its fallback; every variable but {{phone_number}} needs one |