Skip to main content

Send a Flow

On this page, we will explore the different ways of sending a Flow to users.

Prerequisites

You will need to verify your business and maintain a high message quality.

Postman Collection

All the API requests mentioned below are documented in the Flows API postman collection which you can use to make API requests and generate code in different languages.

Business Initiated Messages

To send a business initiated message with a Flow, you can create and send a message template with a WhatsApp Flow attached to it. We introduced a new button type called FLOW. Use this type to specify the Flow to be sent with the message template. To send a Flow message template you need to:
  1. Create a message template with a Flow
  2. Send a message template with a Flow

Create a message template with a Flow

You can quickly build a Flow in the playground and pass the Flow JSON in the message template creation request. Or you can specify the ID or name of an already published Flow. Below is an example request to create a message template with a Flow, see this page for full reference:

Sample request

Message templates can be created and sent in these languages.

Sample Response

Send template with Flow

Ensure that your template passes all required reviews so that status is APPROVED instead of PENDING. Now you can send a message template with a Flow using the request below

Sample request

Sample Response

User-Initiated Conversations

You are able to send your WhatsApp Flow once you have created it. You can send a Message with a Flow in a user-initiated conversation using a Message with a Call To Action (CTA). You send this message either through the On-Prem client or Cloud API with information specific to the Flow. The Flow is triggered when the user taps the CTA button. Go here to read more about message types, limits, and timing. As mentioned earlier, a message with a Flow is not much different from other types of messages. It uses the existing APIs, which are described on the following pages: To send a message with a Flow, we have introduced a new type of the Interactive Object named flow with the following properties.

Interactive message parameters for Cloud API

(See On-Premises Interactive Object documentation for On-Premise client parameters.) *In case you edited published flow and now it is in the draft state, use “mode=draft” to send the current draft flow version, or “mode=published” (default value) to send the last published flow version. **See Flow JSON reference for entry screen details. Cloud API Sample Request (with minimum parameters)
Cloud API Sample Request (with all parameters)
Sample Response
←\ \ Previous\ \ Creating a Flow →\ \ Next\ \ Receiving Flow Response On This Page Send a Flow Business Initiated Messages Create a message template with a Flow Send template with Flow User-Initiated Conversations Interactive message parameters for Cloud API