Change a template
flow_update_templateChanges an SMS or Viber template that is a draft or was declined (ids from flow_list_templates); a template in review or live changes in the portal only. Fields left out stay as they are; null removes an image, a button or the cards. variables and linksLeftLong replace the whole list. A contact field goes in the text as #{first_name}, #{city}, with the text a contact without the value gets after a bar, e.g. #{first_name|there}; an SMS template's own variable as #{name}, defined in variables (at most 20; default is what an API send without a value fills in). A variable never holds a whole link: a value carrying one is refused at send. Write the link in the text up to its host and let a Reference or One-time code variable finish it, e.g. https://pay.example.com/#{payment_ref}. A Viber template may add an https image and one button (label up to 10 characters), or 2–5 cards (title 2–35 characters) instead. Saved as a draft: it is sent only once it is made live 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": {
"channel": "<channel>",
"id": "<id>"
},
"name": "flow_update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| text | No | ||
| cards | No | ||
| button | 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. | |
| channel | Yes | ||
| imageUrl | No | ||
| variables | No | ||
| messageType | No | ||
| linksLeftLong | No | Links in the text to send as written; every other link is shortened, where the brand shortens links |