Skip to main content
Version: 4.0.0

🔄 Send a Flow Message

Send a flow message to the specified phone number.

await whatsapp.sendFlowMessage(
phoneNumber: 'RECIPIENT_NUMBER',
flowToken: 'your_flow_token',
flowId: 'your_flow_id',
flowCta: 'Start Flow',
flowActionPayload: '{"screen": "SCREEN_NAME"}',
headerText: 'Welcome!',
bodyText: 'Complete this flow to get started.',
footerText: 'Bye',
);

paramtyperequireddescription
phoneNumberStringyesPhone number with country code.
flowTokenStringnoA valid flow token from WhatsApp Cloud API.
flowIdStringyesFlow ID that identifies which flow to trigger.
flowCtaStringyesCall-to-action text for the flow button.
flowActionPayloadStringyesJSON string payload to define initial screen or custom flow parameters.
headerTextStringnoHeader text shown at the top of the flow card.
bodyTextStringnoBody description shown inside the flow card.
footerTextStringnoFooter text at the bottom of the flow card

Flow Action Payload

The flowActionPayload allows you to specify the starting point of the flow or pass additional context. It must be a valid JSON string.