WhatsApp Flows basics: JSON, send payload, response

Flows basics from the Meta docs: Flow JSON, the send payload, flow_token and nfm_reply. The CRPRO Hub cannot send Flows today.

WhatsApp Flows are structured, multi-screen forms that run inside the chat: pick a date, fill a short form, answer a survey. For a developer they have three parts: a Flow definition written in Flow JSON, a message that opens it and a response that returns the answers. This article explains those basics from Meta's documentation, and states plainly that the CRPRO Hub's send endpoint cannot send the Flow message today, so the payloads shown are Meta's, for reference.

Can the CRPRO Hub send a Flow?

Short answer: no. The Hub's interactive schema accepts only reply buttons and lists, and its template schema lists quick_reply, url, catalog and mpm as button sub types. A Flow message or a Flow template button does not match, so the request is refused with 400 INVALID_MESSAGE.

That is a limitation of the send contract, not a configuration problem on your account. If a Flow is central to your product, factor that in before you design around it. The Hub does document an endpoint for sending messages on a channel, and a webhook that delivers the raw Meta body in meta_raw mode; those are described in the webhooks reference. Whether and how a Flow completion is surfaced in the normalized event is not documented, so this article does not claim anything about it.

What is a Flow, technically?

Short answer: a set of screens defined in Flow JSON, built in Flow Builder or through Meta's Flows API, that WhatsApp renders inside the chat.

Meta describes Flow JSON as a custom JSON format that defines the experience: a required version, such as 3.1, and a required screens array. Screens work like pages on a website. Optional keys cover routing and a data endpoint for flows that need server logic. The Flow Builder in WhatsApp Manager lets you design the same thing visually, under Account tools, Flows. A terminal screen, the last one, must include a Footer component with a completing action.

Minimal Flow JSON as an illustration of the structure described in Meta's Flow JSON guide. Not sent through the Hub.
{ "version": "3.1", "screens": [ { "id": "WELCOME", "terminal": true, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "TextHeading", "text": "Hello" }, { "type": "Footer", "label": "Done", "on-click-action": { "name": "complete", "payload": {} } } ] } } ] }

What does the message that opens a Flow look like?

Short answer: an interactive message of type flow, with an action named flow whose parameters identify the Flow, the button label and the first screen. This is Meta's Cloud API format.

Meta Cloud API payload, not accepted by the Hub's send endpoint.
{ "recipient_type": "individual", "messaging_product": "whatsapp", "to": "<WHATSAPP_ID>", "type": "interactive", "interactive": { "type": "flow", "header": { "type": "text", "text": "<HEADER_TEXT>" }, "body": { "text": "<BODY_TEXT>" }, "footer": { "text": "<FOOTER_TEXT>" }, "action": { "name": "flow", "parameters": { "flow_message_version": "3", "flow_token": "<FLOW_TOKEN>", "flow_id": "<FLOW_ID>", "flow_cta": "<CTA_TEXT>", "flow_action": "navigate", "flow_action_payload": { "screen": "<SCREEN_NAME>" } } } } }

What do the Flow parameters mean?

Short answer: flow_id (or flow_name, only one) picks the Flow, flow_cta is the button text, flow_token is your own identifier and flow_action decides how the first screen is reached.

ParameterMeaning (from Meta's sending guide)
flow_message_versionMust be the string 3
flow_tokenIdentifier generated by the business; default is unused
flow_id / flow_nameUse one of the two
flow_ctaButton text; advised 30 characters or fewer, no emoji
flow_actionnavigate or data_exchange; default navigate
flow_action_payload.screenId of the first screen, which must be an entry screen
modedraft or published; published is the default

Two practical consequences follow. First, mode draft lets you send the work-in-progress version to a test number, which is how Flows are normally tried before publishing. Second, flow_token is the only thing that ties a response back to the person and the context that opened it, because Meta states that the response does not include the Flow id. Generate a unique token per message and store it with the conversation.

How do the customer's answers come back?

Short answer: as an inbound interactive message of type nfm_reply, with a response_json string that contains your flow_token and the fields the Flow collected.

{ "messages": [{ "interactive": { "type": "nfm_reply", "nfm_reply": { "name": "flow", "body": "Sent", "response_json": "{\"flow_token\": \"<FLOW_TOKEN>\", \"optional_param1\": \"<value1>\"}" } } }] }

The detail that surprises developers is that response_json is a string containing JSON, so it must be parsed a second time. Its structure is defined by your Flow JSON or by your endpoint's final response. Always validate it: the data came from a form filled in by a person. For Hub users, a channel set to meta_raw mode receives Meta's body unchanged; see the webhooks reference for how modes work, and test with a real capture before writing parsing code.

function parseFlowResponse(message) { const r = message?.interactive?.nfm_reply if (!r) return null const data = JSON.parse(r.response_json) // second parse return { token: data.flow_token, fields: data } }

What can collect structured input through the Hub instead?

Short answer: a sequence of reply buttons and lists for closed choices, plain text for open answers and a link to a web form for anything longer.

None of these is as compact as a Flow, but they are available now. A booking, for instance, can be a list of dates, then a list of times, then a reply-button confirmation, each step identified by stable ids and tracked by conversation state on your side. For longer forms, a text message with a link to a page of your own keeps the data collection in an environment you control, with proper validation. The tutorials on reply buttons and interactive lists in this series give the payloads and limits for the first approach.

What is needed before using Flows?

Short answer: a configured WhatsApp Business Platform account with the Cloud API, and for sending Flows to customers, a verified business with a high message quality rating.

Meta's getting started page lists those prerequisites. It also points to guides for several use cases and to separate pages for Flow JSON, the Flows API and Flow webhooks. This article does not confirm whether a Flow can be sent outside the 24-hour service window, because the page consulted does not say; check the current Meta documentation before planning a proactive Flow. For what the Hub can do today, start with the quickstart.

What should be decided before building a Flow?

Short answer: what data is needed, whether it needs a server endpoint, how responses are matched to the person and how the Flow is tested.

Even where a Flow cannot be sent through your current provider, it helps to know what the design involves. A Flow that only collects fields and returns them can be self-contained in Flow JSON. One that must validate against live data, for example available time slots, needs a data endpoint, and with it a server to host, secure and monitor. Meta also provides a draft mode, so the work-in-progress version can be tried before publishing. Decide early how flow_token will be generated and stored, because it is the link between the answers and the conversation.

  • List the fields and decide which are required.
  • Decide whether a data endpoint is needed or static content is enough.
  • Plan how the flow_token maps to a person and a purpose.
  • Test with draft mode before publishing.
  • Validate every value in the response, because it came from a form.

Frequently asked questions

Can a WhatsApp Flow be sent through the CRPRO Hub?

No. The send endpoint accepts reply buttons and lists as interactive messages, and no Flow type. A Flow message or a template with a Flow button is refused with 400 INVALID_MESSAGE.

What is Flow JSON?

A JSON format defined by Meta that describes the screens and components of a Flow. It has a required version and a required screens array, and can be built in Flow Builder in WhatsApp Manager.

What is flow_token for?

It is an identifier you generate for each Flow message. Because the response does not include the Flow id, the token is how you tie the answers back to the person and the context that opened the Flow.

Why is response_json a string?

Meta delivers the Flow's answers as a JSON string inside nfm_reply. Parse it a second time and validate every field.

Fontes

Documentação oficial da Meta, conferida em 31 de outubro de 2026.