Skip to content

Form handlers

Page Form handlers page manages the mapping (connection) between Meta WhatsApp Flow and handler automations on the platform. When a user opens or interacts with a Dynamic Flow in the WhatsApp application, Meta sends a webhook request to Mahadata, and the system forwards it to the connected handler automation flow.

You can access this page via the Settings → Form handlers (/settings/wa-flows).

Form handlers page: Needs a handler, Connected, and Sync from Meta
Form handlers page: Needs a handler, Connected, and Sync from Meta

A connection links two essential components:

  1. WhatsApp Flow (Meta): An interactive form created and published via the Flows (/flows) menu or WhatsApp Business Manager.
  2. Automation Handler: A backend logic flow of type wa_flow_handler that processes the request payload (INIT, data_exchange), retrieves data from third-party APIs (for example, a CRM or inventory system), and returns screen data to the WhatsApp application.

This page divides the list of Flows into two main groups:

StatusDescription
Connected (Enabled)The Flow is connected to an active automation handler. Every form interaction from the user will be processed directly by that handler.
Connected (Paused)The connection is temporarily paused. Requests from users will not be processed by the handler until the status is changed back to Enabled.
UnconnectedThe Flow is not connected to any automation handler. A Dynamic Flow in this status cannot load dynamic data when opened by a user.

To connect a new Flow:

  1. Open Settings → Form handlers (/settings/wa-flows).
  2. Find the Flow with status Unconnected in the list.
  3. Click the Connect button on that Flow’s row.
  4. In the dialog that appears, select an automation of type wa_flow_handler that has been prepared beforehand.
  5. Confirm the selection to activate the connection.

Before the Flow is rolled out to customers, you must ensure the handler can respond to Meta requests with the correct JSON format. Mahadata provides the Test Dispatch feature directly on the connection row:

  1. Click the Test Dispatch button on the connected Flow row.
  2. Select the action you want to test:
    • INIT: Simulates the customer opening the form for the first time.
    • data_exchange: Simulates a screen transition or input submission (for example, a data search input from the LOOKUP).
  3. Enter the screen parameters (screen) and input data (data) test.
  4. Click Send Dispatch and check the returned response:
    • A successful response will return HTTP code 200 along with the destination screen payload (for example RESULT) and the corresponding variable values.
    • If a problem occurs with the third-party API or handler logic, an error message will be displayed to facilitate troubleshooting.

The Form handlers page purely manages routing logic and dispatch testing. Management of RSA private/public keys is not done on this page and does not require copy-pasting PEM certificates. Encryption settings are managed centrally for all account numbers on the Form encryption.