Messages
Send WhatsApp Flow
Send a WhatsApp message with a button that opens a WhatsApp Flow. The Flow must already exist in Jelou for the target bot (referenced by its slug in parameters.flow_name). Only available for bots on WhatsApp Cloud API, Gupshup CAPI or Aldeamo providers.
post/v1/bots/{botId}/users/{userId}/flow_message
Request
- Base URLhttps://api.jelou.ai
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
botIdstring required
Identifier of the bot whose WhatsApp channel sends the message.
userIdstring required
Recipient's phone number, without the + sign.
Query parameters
typestring
Type of WhatsApp Flow to send. Defaults to the standard flow type.
Request body
Example request
{
"title": "Hello",
"text": "Complete this flow to get started",
"caption": "Jelou",
"parameters": {
"flow_name": "welcome_flow",
"flow_cta": "Open form",
"flow_action_payload": {
"screen": "RECOMMEND"
}
}
}Response
Flow message sent
object required
Changes
No recorded changes to this operation across all 1 revision of this API.