Skip to content

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.

OrderPortal menuWhat you do
1Settings → Form encryptionButton Set up / Set up all on the WABA number
2Settings → Flow DictionariesCreate 3 dictionaries: klinik_kota, klinik_cabang, klinik_layanan
3Automations → Browse TemplatesInstall Clinic appointment — city / branch / service
4Flows → Create Flow4 Dynamic screens, dropdown From handler
5Settings → Form handlersConnect handler, then Test Dispatch
6Inbox + → WhatsApp FlowSend 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.


  1. Open Settings → Form encryption. On the number that will send the Flow, click Set up (or Set up all). Mahadata 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
    Form encryption: Set up all numbers per WABA, Mahadata logo
  2. 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
    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)

    KeyTitle
    jktJakarta
    bdgBandung
    sbySurabaya

    Dictionary 2 — klinik_cabang (keys start with the city code + _ so the handler can search for the prefix jkt_)

    KeyTitleData (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_layanan

    KeyTitleData
    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.

  3. 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
    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 inThen moves to the screen
    Just opened the form (INIT)list of cities from klinik_kotaKOTA
    Selects a city in KOTAbranches starting with jkt_ / bdg_CABANG
    Selects a branch in CABANGbranch details + list of clinicsLAYANAN
    Fills in clinic + date + namesummaryKONFIRMASI

    Save / 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.

  4. 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
    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
    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, Variable city_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, add city so 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.

  5. 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
    Form handlers: Connect for unconnected forms, Details for Flows already Connected

    Click Details (or Test Dispatch) on the clinic Flow. Four tests, in order:

    1. Action INIT → Send Dispatch → screen KOTA + city_options.
    2. Action data_exchange, Screen KOTA, data {"city":"jkt"} → screen CABANG + Jakarta branch.
    3. Screen CABANG, data {"city":"jkt","branch":"jkt_menteng"} → screen LAYANAN.
    4. Screen LAYANAN, data {"city":"jkt","branch":"jkt_menteng","service":"gigi","tanggal":"2026-09-25","nama":"Budi Santoso"} → screen KONFIRMASI.

    All must return HTTP 200 before you send it to the customer.

    • 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.