Manage WhatsApp Flows
manage_whatsapp_flowsCreate, list, update, publish, deprecate, or delete WhatsApp Business chat forms for sign-ups, bookings, and surveys, including Flow JSON upload and validation previews.
Instructions
WhatsApp Flows (forms inside the chat: sign-ups, bookings, surveys) of the profile's WhatsApp Business account; send one with send_dm (platform 'whatsapp', flow { flow_id, cta }). list; create (name, categories from SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER; optional flow_json (object or string, up to 10 MB) and publish: true to publish at once, clone_flow_id, endpoint_uri); get (details, health, preview link); update (name, categories, endpoint_uri); get_json (assets with download_url); upload_json (flow_json; answers Meta's validation_errors); publish (every validation error fixed first); deprecate (a published Flow cannot be edited or deleted, only deprecated; confirm: true); delete (drafts only; confirm: true). WhatsApp is available to every account: the profile needs its WhatsApp Business number connected (get_connect_link with platforms ['whatsapp']), otherwise the API answers 400 with how to connect it; 401 whatsapp_reauth_required means reconnect it. Approval: only publish, deprecate and delete, not the other actions. Each of those needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user what will change, and repeat the call with confirmed: true only after they approve. Every other action runs at once and returns no preview, so check with the user before calling one that changes what they or others see.
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": {
"action": "<action>",
"user": "<user>"
},
"name": "manage_whatsapp_flows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | create / update. | |
| user | Yes | Upload-Post profile name with WhatsApp connected. | |
| action | Yes | ||
| params | No | Other API fields for this action, with the REST API's own names (snake_case) and shapes. clone_flow_id, endpoint_uri. Leave out what you do not want to change. | |
| confirm | No | deprecate and delete: must be true, after the user approved it. | |
| flow_id | No | Every action but list and create. | |
| publish | No | create: publish it at once (needs flow_json). | |
| confirmed | No | Set to true only after the user has seen the preview this tool returns for an action that needs approval, and approved it. The other actions run without it. | |
| flow_json | No | create / upload_json: the Flow JSON. | |
| categories | No | create / update. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |