Tutorial: Dynamic Flow with Flow Dictionaries
This tutorial is for operators assembling a Dynamic WhatsApp Flow for the first time. You do not write Meta JSON, do not set up a REST API, and do not copy a Flow ID. Six menu clicks, then test in the portal before sending to WhatsApp.
Case study: clinic appointment form KOTA → CABANG → LAYANAN → KONFIRMASI.
Click map (memorize this)
Section titled “Click map (memorize this)”| Order | Portal menu | What you do |
|---|---|---|
| 1 | Settings → Form encryption | Button Set up / Set up all on the WABA number |
| 2 | Settings → Flow Dictionaries | Create 3 dictionaries: klinik_kota, klinik_cabang, klinik_layanan |
| 3 | Automations → Browse Templates | Install Clinic appointment — city / branch / service |
| 4 | Flows → Create Flow | 4 Dynamic screens, dropdown From handler |
| 5 | Settings → Form handlers | Connect handler, then Test Dispatch |
| 6 | Inbox + → WhatsApp Flow | Send to a 24-hour conversation (or a template outside 24 hours) |
If a step fails on the phone with “Something went wrong”, open Meta Constraints on Dynamic Flow — don’t guess the JSON.
-
One-time setup: enable Form encryption
Section titled “One-time setup: enable Form encryption”Open Settings → Form encryption. On the number that will send the Flow, click Set up (or Set up all). DEP uploads the tenant’s RSA key to Meta. One key per account, not per Flow.
Without this step, the form in WhatsApp cannot be opened.

Form encryption: Set up all numbers per WABA, Mahadata logo -
Fill in the three Flow Dictionaries
Section titled “Fill in the three Flow Dictionaries”Open Settings → Flow Dictionaries (
/settings/flow-dictionaries). The left panel = list of dictionaries. The right panel = entries (Key, Title, Data JSON).
Flow Dictionaries: selected klinik_kota contains Jakarta, Bandung, Surabaya, Denpasar, Yogyakarta For each dictionary: click New Dictionary → fill in Name (lowercase +
_only) → Create → Add Entry (or Bulk Import).Dictionary 1 —
klinik_kota(fills the first screen dropdown)Key Title jktJakarta bdgBandung sbySurabaya Dictionary 2 —
klinik_cabang(keys start with the city code +_so the handler can search for the prefixjkt_)Key Title Data (example) jkt_mentengMenteng Branch {"address":"Jl. Teuku Umar No. 12","hours":"08:00-20:00"}jkt_kemangKemang Branch {"address":"Jl. Kemang Raya No. 45","hours":"08:00-20:00"}bdg_dagoDago Branch {"address":"Jl. Ir. H. Juanda No. 88","hours":"08:00-20:00"}Dictionary 3 —
klinik_layananKey Title Data umumGeneral Practitioner Clinic {"biaya":150000}gigiDental & Oral Clinic {"biaya":250000}anakPediatric Specialist {"biaya":350000}The dictionary name must be exact
klinik_kota/klinik_cabang/klinik_layanan— the template in the next step looks up that name. UI details: Flow Dictionaries. -
Set up the handler automation (see canvas)
Section titled “Set up the handler automation (see canvas)”This is the page that is often missed: not the bot keyword list. Open Automations, then go into the automation editor of type WhatsApp Flow handler. The canvas looks like this — the Dictionary Lookup and Respond to Flow nodes, not the automation list cards.

Clinic appointment handler canvas (dictionaries): Condition per screen, Dictionary Lookup, Respond to Flow Beginner way (recommended): Automations → New Automation → Browse Templates → select Clinic appointment — city / branch / service → Install. This template already connects the three dictionaries above. Open the install result until you see a canvas like the screenshot.
What happens on the canvas, in plain language:
When the user… The handler fills in Then moves to the screen Just opened the form ( INIT)list of cities from klinik_kotaKOTASelects a city in KOTAbranches starting with jkt_/bdg_CABANGSelects a branch in CABANGbranch details + list of clinics LAYANANFills in clinic + date + name summary KONFIRMASISave / Publish the automation. Do not send extra fields (for example
city_title) to a screen that does not use them — that is the cause of the “Something went wrong” error on the phone. -
Four screens in the visual Flow builder
Section titled “Four screens in the visual Flow builder”Open Flows → Create Flow. Any name works (for example
Reservasi Janji Klinik). Mode: Dynamic (Platform-hosted).
WhatsApp Flows list: Create Flow, PUBLISHED status, Handler Connected column The visual editor (not JSON) looks like this after the clinic flow is opened. Change the Screen ID in the middle panel — not the file name.

Clinic appointment visual editor: Screen ID KOTA, Content Source Static text / From handler, Preview Select a city Create 4 screens. Every non-final screen only points to one Next Screen (a straight chain, no fan-out).
Screen
KOTA- Static heading:
Pilih Kota Layanan - Dropdown: Field ID
city, Options Source From handler, Variablecity_options - Button: Next Screen =
CABANG
Screen
CABANG- Static heading:
Pilih Cabang Klinik(do not${data.city}in the large heading) - Dropdown: Field ID
branch, From handler →branch_options - Button: Next Screen =
LAYANAN. In Also send, addcityso the selected city is carried over.
Screen
LAYANAN- Text From handler:
cabang_title,cabang_address(one token per block) - Polyclinic dropdown: Field ID
service, From handler →service_options - Date picker Field ID
tanggal(WhatsApp calendar, do not use text input) - Short answer Field ID
nama - Also send:
city,branch. Next Screen =KONFIRMASI
Screen
KONFIRMASI- Summary from handler. Button: Complete Flow.
At the footer of the editor, the mode must be Dynamic (Platform-hosted) and the handler selected. Click Save and Publish / Update and Republish.
- Static heading:
-
Connect, then test without WhatsApp
Section titled “Connect, then test without WhatsApp”Open Settings → Form handlers. Select the same WABA as the Flow. Unconnected Flow rows have a Connect button — choose the automation from step 3.

Form handlers: Connect for unconnected forms, Details for Flows already Connected Click Details (or Test Dispatch) on the clinic Flow. Four tests, in order:
- Action
INIT→ Send Dispatch → screenKOTA+city_options. - Action
data_exchange, ScreenKOTA, data{"city":"jkt"}→ screenCABANG+ Jakarta branch. - Screen
CABANG, data{"city":"jkt","branch":"jkt_menteng"}→ screenLAYANAN. - Screen
LAYANAN, data{"city":"jkt","branch":"jkt_menteng","service":"gigi","tanggal":"2026-09-25","nama":"Budi Santoso"}→ screenKONFIRMASI.
All must return HTTP 200 before you send it to the customer.
- Action
-
Send to user
Section titled “Send to user”- Within 24 hours: Inbox active conversation →
+→ WhatsApp Flow → select a PUBLISHED Flow. Send from the same WABA number as the conversation. - Outside 24 hours: Message Template, button Complete Flow to screen
KOTA, then campaign. - After Update and Republish, the old WhatsApp bubble still uses the old schema. Send a new Flow message to see the changes.
- Within 24 hours: Inbox active conversation →