Builds a flow component for an Interactive message
The Flow parameters
Optional
flow_action?: "navigate" | "data_exchange"The Flow type. If set to "navigate", flow_action_payload must be provided.
Defaults to API decision if not provided ("navigate")
Optional
flow_action_payload?: { data?: unknown; screen: string }Required if flow_action is "navigate", must be omitted otherwise
Optional
data?: unknownOptional input data for the first Screen of the Flow. If provided, this must be a non-empty object.
The ID of the first Screen
Text on the CTA button, character limit - 20 characters (no emoji)
Optional
flow_id?: stringUnique ID of the Flow provided by WhatsApp
Optional
flow_message_version?: "3"The Flow version, must be 3
Optional
flow_name?: stringFlow name provided by the business as an alternative to flow_id
Optional
flow_token?: stringFlow token that is generated by the business to serve as an identifier
Defaults to API decision if not provided
Optional
mode?: "published" | "draft"The Flow can be in either draft or published mode
Defaults to API decision if not provided ("published")
Readonly
nameThe name of the component
Readonly
parametersThe Flow parameters
Optional
flow_action?: "navigate" | "data_exchange"The Flow type. If set to "navigate", flow_action_payload must be provided.
Defaults to API decision if not provided ("navigate")
Optional
flow_action_payload?: { data?: unknown; screen: string }Required if flow_action is "navigate", must be omitted otherwise
Optional
data?: unknownOptional input data for the first Screen of the Flow. If provided, this must be a non-empty object.
The ID of the first Screen
Text on the CTA button, character limit - 20 characters (no emoji)
Optional
flow_id?: stringUnique ID of the Flow provided by WhatsApp
Optional
flow_message_version?: "3"The Flow version, must be 3
Optional
flow_name?: stringFlow name provided by the business as an alternative to flow_id
Optional
flow_token?: stringFlow token that is generated by the business to serve as an identifier
Defaults to API decision if not provided
Optional
mode?: "published" | "draft"The Flow can be in either draft or published mode
Defaults to API decision if not provided ("published")
Action API object