Skip to content

Testing a workflow ​

Try a workflow before other people or systems use it. Tests send real WhatsApp messages, so use your own number.

Test with this data Added in v1.2 ​

On a Webhook or Manual step:

  1. Fill in Example event (JSON) with a sample of the data, including the phone number to send to:

    json
    {
      "phone": "919812345678",
      "bookingId": "D1234567",
      "status": "OUT_FOR_DELIVERY"
    }
  2. Click Test with this data. The Run panel opens with this step picked under Start from, and Try the unpublished draft turned on.

  3. Click Run now, then follow the run step by step.

The Run panel ​

Open Run in the builder toolbar.

  • Start from: which start step to use, when the workflow has several.
  • Who is this run for? (optional)
    • Empty: the run is for the person in the start step's example event (its customerId or phone). With no one in the example, the run is for no one.
    • A name or number: that person becomes the run's contact.
    • Send to someone else and Use the person in the example event switch between the two.
  • Try the unpublished draft: runs the saved draft instead of the published version.

You need a number to send a message, not to start a run

A run can start for no one. Each message step sends to its Send to setting, which is the run's contact by default. Set it to a field of the data, like {{ trigger.data.phone }}, to send somewhere else. A message step with no one to send to fails and takes its failure path.

Run now runs the saved version. If you have unsaved changes, the panel reminds you to save first.

Test the real webhook ​

To test the way your system will call it:

  1. Publish the workflow.
  2. Make an API key in Settings › API keys.
  3. On the Webhook step, click Copy as cURL, paste it into a terminal and put your key in place of YOUR_API_KEY.
  4. Run it. A 201 answer means the run started, and it appears in the Run panel.

Then click Use the last event received to make that call the step's example event. See Webhooks: start a workflow for every answer the address can give.

Skip the wait Added in v1.3 ​

A run that is waiting with a time limit can carry on now. On a Wait step, Skip the wait carries on at once, as if the time were up. On a wait for a reply or a form, Skip: treat as no reply takes its No reply (timed out) exit. Use it to test or demo a journey with a 15-minute or 24-hour pause without waiting. It only changes that one run.

What Runs show Added in v1.3 ​

Each step in a run shows what went in and what came out, with the real values: phone numbers, IDs and account numbers are shown in full, so you can check exactly what was sent. Passwords, one-time codes, PINs and tokens are never kept. Anyone who can open the workflow can see its runs, so give Viewer access with that in mind.

Flows documentation for v1.x (v1.7.2).