Build, Publish, and Send a Flow
A 4-step recipe with WhatsApp. We can help you get access.
Recipe · 4 steps
Build, Publish, and Send a Flow
with WhatsApp
Create, upload, publish, and deliver a WhatsApp Flow to a recipient.
- Create a new draft flow on the WhatsApp Business Account.
- Upload the flow JSON definition file to the draft flow; the API validates the file and returns any validation errors.
- Publish the validated draft flow, making it available for use in messages.
- Send an interactive flow message to the recipient that launches the newly published flow.
What you'll need to have ready
- accessToken: Access token with whatsapp_business_management and whatsapp_business_messaging permissions.
- wabaId: The WhatsApp Business Account ID that owns the flow.
- phoneNumberId: The WhatsApp phone number ID that sends the flow message.
- to: Recipient phone number in E.164 format without the leading plus.
- flowName: Display name for the new flow.
- flowCategory: Flow category such as SIGN_UP, LEAD_GENERATION, or SURVEY.
- flowFile: The binary flow.json file content (max 10 MB).
- bodyText: The interactive message body text.
- flowCta: The call-to-action label on the flow launch button.
For your developer
Arazzo workflow whatsapp:publish-flow-and-send, 4 operations: postByWabaIdFlows → uploadFlowJson → publishFlow → postByPhoneNumberIdMessages. Specs on APIs.io.