Skip to content

Flow Dictionaries

Flow Dictionaries is a tenant-owned catalog and lookup-table feature for WhatsApp Flow data exchange. With Flow Dictionaries, your handler automation can retrieve lists of cities, clinic branches, product categories, or rate details instantly without a separate REST API.

Flow Dictionaries: dictionary list, entry lookup, and bulk import
Flow Dictionaries: dictionary list, entry lookup, and bulk import

Open Settings → Flow Dictionaries (/settings/flow-dictionaries) in the portal side navigation.

  • Navigation Label & Display: In the Indonesian-language sidebar menu, this menu is labeled Kamus Alur. At the top of the page, the title is still displayed as Flow Dictionaries with the description “Fast, tenant-owned lookup tables and catalogs for WhatsApp Flow automations.”
  • Access Rights (Permissions):
    • The automation:read permission is required to view the list of flow dictionaries along with their data entries.
    • The automation:update permission is required to create, modify, bulk-import, or delete dictionaries and data entries. Users without this permission can only view data in read-only mode.

The left panel displays the full list of dictionaries created in your tenant account. If no dictionaries are listed yet, the panel displays the message “No flow dictionaries found. Create one to begin.”

To create a new dictionary:

  1. Click the New Dictionary button in the top-right corner of the left panel.
  2. In the Create Flow Dictionary dialog, fill in the following fields:
    • Name: A unique identifier for the dictionary in slug lowercase format (for example, klinik_kota, klinik_cabang, or katalog_produk). The system automatically cleans up disallowed characters as you type—only lowercase letters (a-z), numbers (0-9), and underscores (_) are permitted.
    • Description (optional): A brief description of the dictionary’s purpose (for example, Daftar lokasi cabang dan fasilitas klinik).
  3. Click Create. The new dictionary will immediately appear in the list and be ready to be filled with data entries.

Click one of the dictionaries in the left panel to open the entry table on the right panel. If the dictionary has no data yet, the table will display the note “Dictionary has no entries yet.”

  1. Click the button Add Entry at the top of the right panel.
  2. Fill in the following entry fields:
    • Key: A unique alphanumeric key used as the lookup reference (for example jkt, bdg, or jkt_menteng). This key is permanent and cannot be changed after the entry is saved.
    • Title: The text label that will be displayed to the WhatsApp user on the dropdown or radio button component (for example Jakarta Pusat or Klinik Menteng). Maximum 80 characters.
    • Data (JSON): A supporting JSON data object containing detailed information (for example {"address": "Jl. Teuku Umar No. 12", "phone": "021-3140001", "hours": "08:00-20:00"}). This data must be a valid JSON object with a maximum size of 8 KB.
  3. Click Add Entry (or Update Entry when editing).

The system validates the form and will display warning messages if the input is not correct:

  • Key is required — if the Key field is empty.
  • Title is required — if the Title field is empty.
  • Data must be a JSON object — if Data is not a JSON object (for example, if it is an array or a primitive data type).
  • Invalid JSON in data field — if the JSON has invalid syntax.
  • Delete Entry: Click the trash icon on the row of the entry you want to delete. The system will display a confirmation dialog “Delete Entry?” before removing the key from the database and platform cache.
  • Delete Dictionary: Hover over the dictionary name in the left panel, then click the trash icon. The dialog “Delete Dictionary?” will remind you that this action deletes all entries and causes automations referencing this dictionary to produce a miss.

To upload hundreds to thousands of records at once, use Bulk Import:

  1. Select the dictionary you want to populate, then click the Bulk Import button above the entries table.
  2. Choose the data format to upload:
    • JSON Array: A JSON object array format:
      [
      {
      "key": "jkt_menteng",
      "title": "Cabang Menteng",
      "data": { "address": "Jl. Teuku Umar No. 12", "phone": "021-3140001" }
      },
      {
      "key": "jkt_kemang",
      "title": "Cabang Kemang",
      "data": { "address": "Jl. Kemang Raya No. 45", "phone": "021-7190002" }
      }
      ]
    • CSV: Comma-separated value row format key,title,data_json:
      key,title,data_json
      jkt_menteng,Cabang Menteng,{"address":"Jl. Teuku Umar No. 12","phone":"021-3140001"}
      jkt_kemang,Cabang Kemang,{"address":"Jl. Kemang Raya No. 45","phone":"021-7190002"}
  3. Paste the data into the text area, then click Import Entries.

The import process runs in the browser incrementally in batch of at most 500 entries per request. The progress indicator will show the submission status (for example, Importing batch 1 of 3 (500 entries)...) until all data has been successfully saved.

  • Prefix Search: Use the search box above the entries table to filter rows by key or title prefix. If no data matches, the table displays the message “No entries match prefix query.”
  • Pagination: The table displays up to 50 entries per page. Use the arrow buttons in the bottom-right corner to navigate between data pages.

On the automation canvas wa_flow_handler, the node Dictionary Lookup (dictionaryLookup) provides several data retrieval modes to suit your form screen needs:

Form RequirementMode & SettingsLimitations & Notes
First Screen Options List (INIT)Mode exact + check Emit full options listPopulates the initial dropdown variable (for example city_options) as an array [{"id": "...", "title": "..."}]. Must be ≤ 200 keys and total data ≤ 32 KB.
Cascading Dropdown / TypeaheadMode prefix (Prefix Search)Searches entries based on keyword prefix (for example {{data.city}}_ to filter branches related to a city). Returns a maximum of 20 options (LIMIT 20) to the options variable.
Retrieve Single Entry DetailsMode exact (Exact Key)Retrieves all data for a single entry based on a specific key (for example, {{data.branch}}). Automatically provides the variable {dict}_key, {dict}_title, and extracts the JSON object contents (can be prefixed via assignPrefix).
Massive Catalog (> 100,000 entries)External API Integration (httpRequest)If product or directory data is highly dynamic and exceeds hundreds of thousands of rows, use the HTTP Request node to your system’s external API.
  • Sub-millisecond Speed: The platform automatically keeps a cached copy of the dictionary per-tenant in high-speed memory. Exact key lookups are processed without burdening the relational database.
  • Entry Capacity: A single flow dictionary can hold up to 100,000 entries.
  • Prefix Search Result Limits: Search with prefix mode is limited to 20 rows per execution to keep the WhatsApp form response within Meta’s response time limit.
  • Full Export Limit (emitOptions): Instant option list generation is capped at a maximum of 200 keys and a total size of 32 KB. If your catalog is larger, use a tiered dropdown schema with prefix search or call an external API.