Create Whatsapp Trigger
create_whatsapp_triggerSave a WhatsApp trigger for record-created events. It is saved switched off and messages no one. Switching it on is done by the owner on the app's Automations screen in Fine Structure.
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": {
"app_id": "<app_id>",
"page_name": "<page_name>",
"entity_name": "<entity_name>",
"phone_field": "<phone_field>",
"message_template": "<message_template>"
},
"name": "create_whatsapp_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| app_id | Yes | The app the trigger belongs to. | |
| flow_id | No | Optional WhatsApp flow the conversation continues in. | |
| page_name | Yes | The page whose form creates the record. | |
| name_field | No | ||
| entity_name | Yes | The entity whose new records fire it. | |
| phone_field | Yes | The record field holding the customer's WhatsApp number. | |
| whatsapp_bot_id | No | The WhatsApp number that sends, from get_whatsapp_trigger_options. | |
| message_template | Yes | The message; {{ field_name }} inserts a record field. |