manage_whatsapp_flow
WhatsApp forms (Flows) destructive
Description
WhatsApp Flows: forms people fill in without leaving the chat (sign-up, booking, lead capture, survey). action "list" or "get" (with a preview link). "create" makes a DRAFT from name, categories (SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER) and flowJson (Meta's Flow JSON, ≤10 MB), or cloneFlowId. "update" changes a DRAFT (name, categories, flowJson, endpointUri). Meta's validation errors come back verbatim. "publish" is FINAL (a published form cannot be changed or deleted, only deprecated), "deprecate" stops it being sent, "delete" removes a draft: these three need confirm:true after a first call without it. "versions" (flowId): Hermoso's record of a form's copies and changes (Meta keeps no history). "encryption_key" / "set_encryption_key" (phoneNumberId, publicKey: your 2048-bit RSA PUBLIC key in PEM, confirm:true): what a form that calls your own server (data_exchange) needs before it can be published. Send a form with send_whatsapp_message interactive { type: "flow", flowId, flowCta } (mode "draft" to test); answers arrive in read_whatsapp_inbox. 0 credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | "list" | "get" | "create" | "update" | "publish" | "deprecate" | "delete" | "versions" | "encryption_key" | "set_encryption_key" | list (default) |
phoneNumberId | string | encryption_key / set_encryption_key: the number |
publicKey | string | set_encryption_key: PEM public key, never the private key |
wabaId | string | optional when exactly one account is shared with this profile |
flowId | string | |
name | string | |
categories | string[] | |
flowJson | object | string | the Flow JSON object ({ version, screens: [...] }) or that JSON as a string |
cloneFlowId | string | create: start as a copy of this form |
endpointUri | string | only for a form that calls your own server (data_exchange) |
confirm | boolean | true to publish, deprecate or delete, after the user said yes |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/manage_whatsapp_flow.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_whatsapp_flow","arguments":{}}}
CLI
hermoso call manage_whatsapp_flow --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
send_whatsapp_messageSend a WhatsApp messageread_whatsapp_inboxRead and answer WhatsApp messagesmanage_whatsapp_numberWhatsApp number settings, blocklist and groupsmanage_whatsapp_callingWhatsApp callssend_whatsapp_broadcastBroadcast a WhatsApp template to many peoplemanage_whatsapp_accountWhatsApp account: notices, costs, catalog, ad conversionsdelete_whatsapp_templateDelete a WhatsApp message templatecreate_whatsapp_templateCreate a WhatsApp message templatelist_whatsapp_templatesWhatsApp message templateslist_whatsapp_accountsWhatsApp Business accounts and numbers