Builds a data exchange flow component for an Interactive message
Flow token that is generated by the business to serve as an identifier
ID of the Flow provided by WhatsApp
Text on the CTA button, character limit - 20 characters (no emoji)
Must be "published" or "draft"
Must be "3"
ReadonlynameThe name of the component
ReadonlyparametersThe Flow parameters
Optionalflow_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")
Optionalflow_action_payload?: { data?: unknown; screen: string }Required if flow_action is "navigate", must be omitted otherwise
Optionaldata?: 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)
Optionalflow_id?: stringUnique ID of the Flow provided by WhatsApp
Optionalflow_message_version?: "3"The Flow version, must be 3
Optionalflow_name?: stringFlow name provided by the business as an alternative to flow_id
Optionalflow_token?: stringFlow token that is generated by the business to serve as an identifier
Defaults to API decision if not provided
Optionalmode?: "published" | "draft"The Flow can be in either draft or published mode
Defaults to API decision if not provided ("published")
Action API object
Deprecated
Use ActionFlow instead