Preview a WhatsApp Flow
preview_whatsapp_flowGet a previewUrl that opens the WhatsApp Flow in a browser exactly as a customer would see it, to check it with the user before publishing. It needs the flow's JSON uploaded first with upload_whatsapp_flow_json; without it the call fails with that hint. The link comes from Meta and is temporary, so get a new one when needed. Next step once the user approves: publish_whatsapp_flow (a published flow can no longer be edited).
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": {
"accountId": "<accountId>",
"flowId": "<flowId>"
},
"name": "preview_whatsapp_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The WhatsApp flow, from list_whatsapp_flows. | |
| accountId | Yes | WhatsApp Business account id, from list_accounts (other networks are rejected). |