Meta Constraints on Dynamic WhatsApp Flow
When building a form Dynamic WhatsApp Flow (a flow whose data is exchanged in real-time via backend automation or Flow Dictionaries), you may encounter situations where testing in the portal appears successful, but the WhatsApp app on the phone displays a generic error message:
“Something went wrong” (An error occurred)
This error message from the WhatsApp client app is intentionally generic for user security reasons, so it does not detail the root cause on the phone interface. This page documents the most common constraint patterns found in production implementations along with their technical solutions.
1. Next Button Error Without Logs in the Handler (Fan-Out vs Linear Routing)
Section titled “1. Next Button Error Without Logs in the Handler (Fan-Out vs Linear Routing)”Symptoms
Section titled “Symptoms”The user opens the form, the dropdown on the first screen is successfully populated with data, but when the user presses the navigation button (Next), the WhatsApp app immediately displays “Something went wrong” without any request log records reaching your backend handler flow.
The first screen is configured with a Next Screen option that branches to many subsequent screens at once (for example KOTA can go to CABANG, LAYANAN, or KONFIRMASI).
The WhatsApp application validates all possible destination screens listed in the routing model (routing model) when the button is pressed. Because the data for the third and fourth screens (LAYANAN and KONFIRMASI) is not yet available when the form is first opened, Meta considers the form schema invalid and immediately cancels the process before sending the request to the server.
Solution
Section titled “Solution”Make sure every non-final screen is set with Next Screen linear:
- Screen
KOTA→ Next Screen:CABANG - Screen
CABANG→ Next Screen:LAYANAN - Screen
LAYANAN→ Next Screen:KONFIRMASI - Screen
KONFIRMASI→ Next Screen:Complete Flow
The platform serializer automatically composes this ordered list of linear route permissions. Avoid selecting Complete Flow on the first screen if the form has multiple screen stages.
2. Crash on Landing at the Destination Screen (Response Key Is Not a Subset)
Section titled “2. Crash on Landing at the Destination Screen (Response Key Is Not a Subset)”Symptoms
Section titled “Symptoms”The button is pressed, the request successfully reaches your automation handler, and the handler response has HTTP 200 status. However, the phone immediately displays an error message right when it is about to render the destination screen (fails to land/crash on landing).
The payload object data sent by the node Respond to Flow (waFlowRespond) contains extra properties that are not declared on the component data model on the destination screen.
Real-World Case:
- On the
CABANG, the attached visual component only requires the variablebranch_optionsand the inputcity. - However, your handler sends a response payload:
{"branch_options": "{{options}}","city_title": "{{city_title}}"}
- Because
city_titleis not registered as a variable used on the screenCABANG, Meta detects a schema mismatch (FLOW_JSON_ERROR) and refuses to display the screen.
Solution
Section titled “Solution”Make sure the keys on the object data in the node waFlowRespond is subset of the variables defined on the destination screen component. Do not send additional data that is not directly used on that screen.
3. Dynamic Text on Headings & String Interpolation
Section titled “3. Dynamic Text on Headings & String Interpolation”Symptoms
Section titled “Symptoms”- Dynamic text is printed raw as literal text on the phone, for example it appears exactly as
Pilih cabang di ${data.city}. - The main Heading component causes form validation to fail when published.
- Meta Interpolation Rule: The WhatsApp Flow template engine does not support mixing static and dynamic text in a single sentence line. Placeholders will only be replaced if the component value is a single whole token, for example
"${data.city}". - Heading Component Limitation: The Meta Flow protocol does not allow large heading components (
TextHeading) to be bound directly to dynamic data.
Solution
Section titled “Solution”- The platform serializer DEP automatically maps dynamic Heading components to a sub-heading (
TextSubheading) that is safe to render by Meta. - If you need a caption label, use two separate blocks:
- Block Caption or Body static for the label (for example
Pilih Cabang di Kota:). - Separate dynamic text block right below it with the option From handler enabled to display
${data.city}.
- Block Caption or Body static for the label (for example
4. Dropdown Empty When Sent from the Inbox
Section titled “4. Dropdown Empty When Sent from the Inbox”Symptoms
Section titled “Symptoms”A Flow message sent by an agent from the Inbox successfully reaches the customer’s WhatsApp, but when the form button is pressed, the dropdown choices are empty or the form fails to load initialization data.
The message is sent using a regular static navigate action that directly opens the screen without triggering the data initialization cycle (INIT). As a result, the handler automation is never called to fetch the flow dictionary option list or API.
Solution
Section titled “Solution”For Dynamic (Platform-hosted) forms, the Inbox composer DEP automatically uses the flow_action: data_exchangesend mode. Make sure your Flow is connected to a handler automation in the Settings → Form handlers menu so the platform recognizes the form type as a hosted flow.
5. DatePicker Component Fully Supports the Protocol
Section titled “5. DatePicker Component Fully Supports the Protocol”Symptoms
Section titled “Symptoms”A misunderstanding occurred where the operator thought the date picker calendar block (Date picker) was causing the form to crash, then replaced it with a plain text input (Short answer) with manual instructions for the format YYYY-MM-DD.
Facts & Explanation
Section titled “Facts & Explanation”Component Date picker is a first-class component (first-class component) in the Meta Flow JSON specification (version 7.2 and above). Rendering failures that often occur on the appointment screen usually stem from extra data keys on the previous screen (see Point 2), not from the DatePicker block.
Recommendation
Section titled “Recommendation”Keep using the Date picker component for date selection. WhatsApp will open the phone’s native calendar interface, which guarantees a valid date format (YYYY-MM-DD). You can add a limit of min-date to prevent selecting a date that has already passed.
6. Flow Updates Require a New Message Bubble (Republish & Cached Bubbles)
Section titled “6. Flow Updates Require a New Message Bubble (Republish & Cached Bubbles)”Symptoms
Section titled “Symptoms”You have fixed a schema or screen configuration error in the visual editor, then pressed the Update and Republish button until the status changes back to PUBLISHED. However, when you reopen the form from an existing message in the WhatsApp mobile app, the same error message still appears.
The WhatsApp mobile app stores a local copy (cache) of the Flow schema for every interactive message bubble already received in the chat history. Old messages will not automatically update their screen schema when a new version is published on the server.
Solution
Section titled “Solution”Every time you republish changes to a WhatsApp Flow:
- Return to the portal (Inbox or Campaign).
- Send a new WhatsApp Flow message to your phone number.
- Open the form from the latest message bubble .
7. Sender Phone Number / WABA Mismatch
Section titled “7. Sender Phone Number / WABA Mismatch”Symptoms
Section titled “Symptoms”The form cannot be opened or returns error code 421 when submitted from a certain phone number.
The tenant has more than one WABA account (for example, a WABA for the Operations team and a WABA for the Collection team). The Flow form is registered on a specific WABA, but the message is sent using a channel from a different WABA whose encryption key has not been configured.
Solution
Section titled “Solution”Make sure the form submission uses a phone number under the same WABA as the account where the Flow was registered. Check the readiness of the public key on the relevant number in the Settings → Form encryption.
8. Why Does a “Green Test Dispatch” Not Guarantee a “Green WhatsApp”?
Section titled “8. Why Does a “Green Test Dispatch” Not Guarantee a “Green WhatsApp”?”Features Test Dispatch feature in the Settings → Form handlers menu is a backend server-level logic testing tool DEP:
- Test Dispatch validates that your handler can receive JSON input and return a response data structure with HTTP code 200.
- However, Test Dispatch does not run the WhatsApp app rendering engine.
The WhatsApp mobile app performs far stricter client-side schema validation:
- Does the property name exactly match the screen declaration?
- Are there any additional keys that are not allowed?
- Is the linear routing format satisfied?
Therefore, always perform a two-stage verification:
- Stage 1 (Backend): Make sure the entire scenario in Test Dispatch (
INIT, screen-to-screen transitions) is green and returns the correct data payload. - Stage 2 (WhatsApp Client): Send a Flow message to a physical test phone number and walk through the entire screen flow from start to finish.
Self-Review Checklist Summary
Section titled “Self-Review Checklist Summary”Before rolling out the Dynamic Flow to all customers, check the following checklist:
- [ ] Every non-final screen has a Next Screen route to exactly one following screen.
- [ ] The response object
dataon each nodewaFlowRespondonly sends variables used by the destination screen. - [ ] Dynamic Heading blocks use a pure From handler, with static labels placed in a separate Caption block.
- [ ] Forms that use dates use the native Date picker.
- [ ] After the flow changes are republished (Republish), testing is done by opening a new message balloon.
- [ ] The sender’s phone number is on a WABA account whose encryption key has been installed and activated.