WhatsApp Flows
WhatsApp Flow JSON Structure
Updated 14 November 2026
Every WhatsApp Flow is defined by a JSON document — the Flow JSON — that describes screens, components, and navigation logic. Understanding the structure lets you build any form inside WhatsApp.
Flow JSON is created and managed in Meta’s Flow Builder or through Meta’s Flows API. You do not write it inside Baat. Baat syncs your published Flows from Meta and refers to each one by its ID. In Baat, Settings → Flows → New flow in Meta opens the Flow Builder.
This guide covers the parts most forms need. Meta’s Flow JSON reference has the full list.
Top-level structure
{
"version": "7.3",
"screens": [ ... ]
}
-
version — the Flow JSON version. Meta adds new versions often and freezes old ones; versions 2.1 to 4.0 were frozen in April 2025. The examples here use 7.3, the version Meta recommended when this guide was written. Check Meta’s changelog for the current one.
-
screens — an array of screen objects. A Flow needs at least one terminal screen, and every route through it must end at one.
Screen anatomy
{
"id": "SCREEN_ID",
"title": "Screen Title",
"terminal": false,
"layout": {
"type": "SingleColumnLayout",
"children": [ ...components... ]
}
}
-
id — Unique identifier for this screen. Referenced in navigation actions.
-
title — Displayed at the top of the screen inside WhatsApp.
-
terminal — set to
trueon a final screen, the one with the Submit button. A terminal screen must have a Footer. A Flow can have more than one. -
layout — Wraps all visual components. Currently only
SingleColumnLayoutis supported.
Component types
TextInput
{
"type": "TextInput",
"name": "full_name",
"label": "Full name",
"input-type": "text",
"required": true
}
Collects a single line of text. input-type can be text, number, email, phone, password or passcode.
TextArea
{
"type": "TextArea",
"name": "issue_description",
"label": "Describe your issue",
"required": false,
"helper-text": "Include your order number if relevant"
}
Multi-line text input. Use for longer free-text responses.
Dropdown
{
"type": "Dropdown",
"name": "service_type",
"label": "Select a service",
"required": true,
"data-source": [
{ "id": "haircut", "title": "Haircut" },
{ "id": "coloring", "title": "Hair Coloring" },
{ "id": "spa", "title": "Spa Treatment" }
]
}
RadioButtonsGroup
{
"type": "RadioButtonsGroup",
"name": "contact_preference",
"label": "How should we contact you?",
"required": true,
"data-source": [
{ "id": "whatsapp", "title": "WhatsApp" },
{ "id": "call", "title": "Phone call" }
]
}
CheckboxGroup
{
"type": "CheckboxGroup",
"name": "interests",
"label": "What are you interested in?",
"required": false,
"data-source": [
{ "id": "skincare", "title": "Skincare" },
{ "id": "haircare", "title": "Haircare" },
{ "id": "wellness", "title": "Wellness" }
]
}
DatePicker
{
"type": "DatePicker",
"name": "appointment_date",
"label": "Choose a date",
"required": true,
"min-date": "2026-01-01",
"max-date": "2026-12-31"
}
Since version 5.0, dates are written as YYYY-MM-DD. Older versions used timestamps in milliseconds.
Meta also offers other components, such as headings and body text, OptIn, CalendarPicker, and PhotoPicker and DocumentPicker for uploads. See Meta’s components reference.
Navigation and actions
A Footer component (the button at the bottom of each screen) triggers an action when tapped.
Navigate to another screen
{
"type": "Footer",
"label": "Next",
"on-click-action": {
"name": "navigate",
"next": { "type": "screen", "name": "SCREEN_2" },
"payload": {}
}
}
Submit the Flow (terminal screen)
{
"type": "Footer",
"label": "Submit",
"on-click-action": {
"name": "complete",
"payload": {
"appointment_date": "${form.appointment_date}"
}
}
}
The complete payload is what you receive. Only the fields you list in it come back to Baat, together with the flow_token. An empty payload {} returns none of the customer’s answers.
Exchange data with your server (dynamic Flows)
{
"type": "Footer",
"label": "Check availability",
"on-click-action": {
"name": "data_exchange",
"payload": {
"appointment_date": "${form.appointment_date}"
}
}
}
data_exchange sends the screen’s data to your own endpoint and uses the reply to fill the next screen, for example with free time slots. It works only when the Flow is connected to an endpoint that you host and register with Meta, and the Flow JSON then also needs data_api_version and routing_model. Baat does not host this endpoint. Static Flows, which most forms are, do not need one.
Full example: two-screen lead form
Screen 1 passes the customer’s answers to screen 2 in the navigate payload. Screen 2 declares them in its data, each with an __example__ value. The complete payload then sends every answer back.
{
"version": "7.3",
"screens": [
{
"id": "SCREEN_1",
"title": "Tell us about you",
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "TextInput",
"name": "full_name",
"label": "Your name",
"input-type": "text",
"required": true
},
{
"type": "Dropdown",
"name": "company_size",
"label": "Company size",
"required": true,
"data-source": [
{ "id": "1_10", "title": "1–10 employees" },
{ "id": "11_50", "title": "11–50 employees" },
{ "id": "51_200", "title": "51–200 employees" },
{ "id": "200_plus", "title": "200+ employees" }
]
},
{
"type": "Footer",
"label": "Next",
"on-click-action": {
"name": "navigate",
"next": { "type": "screen", "name": "SCREEN_2" },
"payload": {
"full_name": "${form.full_name}",
"company_size": "${form.company_size}"
}
}
}
]
}
},
{
"id": "SCREEN_2",
"title": "Your requirement",
"terminal": true,
"data": {
"full_name": { "type": "string", "__example__": "Priya Sharma" },
"company_size": { "type": "string", "__example__": "11_50" }
},
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "RadioButtonsGroup",
"name": "monthly_budget",
"label": "Monthly budget for WhatsApp automation",
"required": true,
"data-source": [
{ "id": "under_5k", "title": "Under ₹5,000" },
{ "id": "5k_20k", "title": "₹5,000 – ₹20,000" },
{ "id": "20k_plus", "title": "₹20,000+" }
]
},
{
"type": "TextArea",
"name": "use_case",
"label": "What do you want to automate?",
"required": false
},
{
"type": "Footer",
"label": "Submit",
"on-click-action": {
"name": "complete",
"payload": {
"full_name": "${data.full_name}",
"company_size": "${data.company_size}",
"monthly_budget": "${form.monthly_budget}",
"use_case": "${form.use_case}"
}
}
}
]
}
}
]
}
When the customer submits, Baat receives full_name, company_size, monthly_budget and use_case. They appear in the conversation, under View responses in Settings → Flows, and in the Flow form submitted webhook.