Save a WhatsApp form draft
save_whatsapp_formCreate a native WhatsApp form or save a new editable version. When editing, read the latest model first and preserve unrelated fields. Saving a draft sends nothing.
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": {
"site_id": "<site_id>",
"model": "<model>"
},
"name": "save_whatsapp_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Version 1 native WhatsApp Form. For lead_capture use schemaVersion:1, kind, title, description, submitLabel, fields:[{id,type:text|email|phone|single_select,label,required,contactField:first_name|last_name|email|phone|custom,options:[{id,title}]}]. For booking provide serviceId and guestCount and optional staffId and locationId. | |
| form_id | No | ||
| site_id | Yes | ||
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| expected_version_id | No | Required for editing; latest.id from read_whatsapp_forms. |