Preview WhatsApp Light Model
crm_preview_whatsapp_light_templateRenders an existing ACTIVE local model with supplied variables using the same tenant backend renderer as delivery. Returns content/template/hasAttachment; does not send messages, return media bytes/URLs or expose WAHA. Requires chat-channel.read. Draft/archived models, missing variables and wrong channel assets are rejected.
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": {
"channelId": "<channelId>",
"name": "<name>"
},
"name": "crm_preview_whatsapp_light_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| version | No | ||
| language | No | pt_BR | |
| channelId | Yes | ||
| processed_params | No | Positional values, flat for body or grouped as body/header. No media URL; the model owns its uploaded asset. |