Skip to content

Test and publish a flow

Check a draft for problems, test it safely against one contact, publish it so it starts real runs, and unpublish it.

Before a flow reaches customers, check it, test it against one contact you trust (usually your own phone), then publish it. Publishing makes a new version that starts runs straight away.

Draft, test and publish

Everything you change in the builder is saved to the flow's draft. Customers never get the draft: they get the published version, or nothing if the flow has never been published. A test run only messages your test contact, so a test that works doesn't mean customers get it.

  1. Edit the flow. The banner at the top says "These changes aren't live yet. Customers still get version 3." (or "This flow isn't live" for a flow never published).
  2. Test it against your own phone (below). When the test ends, its page says "This was a test. Publish to make it answer real messages."
  3. Publish it, with Publish in the header or Publish now in the banner. Only now do customers get your changes.

The Flows list shows the same thing at a glance: Live (v3), Live (v3) · unpublished changes or Draft only, not live.

Why didn't my flow reply?

Check these, in order:

  • It isn't published, or your latest edits aren't. Look at the flow's status. Draft only, not live means nothing starts it; unpublished changes means customers still get the old version. Open the flow and click Publish now.
  • The number isn't one the flow answers. Under Flow settings → Numbers, and in the trigger's own number list, the customer's number must be included (or All numbers). See Flows and WhatsApp numbers.
  • The keyword doesn't match. A keyword must be the whole message: "hi" doesn't start on "hi there". Case and extra spaces don't matter; spelling does.
  • The trigger waits for open or closed hours. A trigger whose When is "Only while the number is open" (or closed) stays quiet the rest of the time. See Business hours and holidays.
  • The number has no opening hours. A number with no business hours, or whose schedule has no weekly hours, counts as open all the time, so an out-of-hours flow never runs. The Numbers page shows "Open all the time (no hours set)" with a Set hours link, and Try a message says "“Out of hours” only answers while you're closed, and this number is open now (no hours set)."
  • A person is handling the conversation. With One flow answers each message on, nothing starts while an agent owns the chat, unless the keyword is set to start anyway.
  • Another flow answered first. With One flow answers each message on, only the first rung of the number's ladder answers, and the higher priority wins a tie.

The quickest check is Automation → Numbers → Try a message: type what the customer sent and it says which flow answers, and why. If an unpublished draft would answer, it says so: "No live flow answers “hi”. “Welcome” would, but its changes aren't published." It also names a flow that isn't published at all ("…would, but it isn't published"), a draft that would greet new conversations on the number, and a trigger that only listens while you're open or closed.

Check for problems

In the flow's Draft tab, click Check for problems. You see either "No problems found: this draft can be published." or a list headed, for example, "2 problems stop this flow publishing". Each problem is marked on its step. Click a problem to jump to the step, or press F8 in the outline view to move between them.

Common problems and how to fix them:

ProblemWhat to do
Nothing starts this flow.Add a Start when step.
No trigger leads here, so this step can never run.Connect the step, or remove it.
The "…" exit is not connected to anything.Connect that exit. Required exits must lead somewhere.
This step is on a loop with no wait.Put a Wait step set to For a set time on the loop.
{{name}} is used here but never declared.Add the variable under Variables.
{{name}} may have no value here.Make sure every path to this step sets the variable first.
Set the sending number.The step can be reached by a run with no conversation. Choose Send from. See Flows and WhatsApp numbers.
This template is not approved on the sending number's WhatsApp account.Choose a template approved on that number's account.
This step needs a contact, but … starts runs without one.A schedule trigger has no contact; message steps can't follow it.
This AI agent has no published version.Publish the agent first.

The check is for the revision shown. If you change the draft afterwards, the result says "Changes since then are not checked yet".

Test a flow

A test runs the real draft for one contact you name. Only that contact can be messaged, and the test appears in no analytics.

Note: Owners, Admins and Marketing Managers can run tests.

  1. In the Draft tab, click Test. The draft is saved first.
  2. Under Start as if, choose which trigger the test pretends fired (if the flow has more than one).
  3. Under Test contact, search by name or number and choose the contact. This is the only person the test can message.
  4. Under What the trigger received, fill in any values the trigger would have set, for example the text of the customer's message for {{message_text}}. Leave a value blank for none.
  5. Under Calls to your systems, choose what each HTTP request and Send a webhook step does:
    • Simulate success — nothing is sent (you can give Sample answer values for the variables the lookup would set),
    • Answer with a made-up response — nothing is sent (HTTP request only): a status code and a body, starting from 200 OK, 404 Not found or 500 Server error. The step's real exits and mapping run on it, so you can walk an exit by status code. Under the fields, the dialog says which exit it leaves by and what it sets. An HTTP request with exits by status code always takes a made-up response, 200 until you change it. The made-up bodies in one test must stay under 48 KB together,
    • Simulate failure — nothing is sent, or
    • Call for real.
  6. If any step is set to Call for real, read the warning and tick I understand these steps will send real requests. Real calls can create records, send emails or charge cards, and tests are not undone.
  7. Click Start test.

The test run page opens. It shows the test contact, what was tested, when it started, its state, which steps called for real, and every step the run has taken, with the canvas marked to show the path. If you change the draft after testing, the page tells you the canvas now shows the newer draft.

A step that called for real has API call: open it to see the request as sent and each attempt's answer, as on a run.

A step that set variables lists them, such as Set plan (whole chat), never their values. A test is a real run on the test contact: values kept for the whole chat or saved to the contact read and change that contact's real ones, and the dialog says so. To try made-up values, simulate the flow.

To stop a test, click Cancel test.

During a test

  • Messages really go to the test contact, so you can reply from that phone to buttons, lists and questions.
  • AI agent steps answer from sample answers, not the real AI; the answer goes to the test contact and no tool is called.
  • Tag the contact starts no other flow.
  • Each contact can have only one test of a flow in progress. If one is running, click Open that test.

"The test contact has not written to this flow's number yet"

If the flow replies in the customer's conversation (any step without Send from, or an assign, handover or AI step), the test contact needs a conversation on the flow's number. Send any message from the test phone to your business number, then start the test again.

Publish a flow

Note: Owners, Admins and Marketing Managers can publish. Your plan must include automation.

  1. In the Draft tab, click Publish. The draft is saved first.
  2. Read the dialog "Publish revision N?". Once published, the flow can message real customers. It shows What changes since the live version, the Numbers it serves, the Slots it fills, anything to check, and how many Runs in progress finish on the old version (see Create your first flow).
  3. Click Publish.

You see "Version N is live." New runs use the new version straight away; runs already in progress finish on the version they started on.

If the draft has problems, nothing is published and the list of problems opens. If someone changed the draft just before you published, review the latest draft and publish again.

Warnings

The Publish dialog (and Check for problems) may list things to check, such as a keyword another flow also uses on the same number, a number with no Default flow, or a flow that answers on every number. Publishing still goes ahead; each warning has a button or link to fix it. See Warnings when you publish.

Unpublish a flow

  1. Open the flow and go to the Versions tab.
  2. Click Unpublish, then confirm Stop new runs?.

No new runs start. Runs already in progress finish on their version unless you cancel them with Cancel runs in progress. The flow's status becomes Unpublished. To make it live again, publish the draft.

Start a flow by hand

A flow with a Started by a person trigger can be started for one contact from its Runs tab. This is a real run, not a test. See Flow runs and versions.

Why did (or didn't) my flow reply?

When a customer wrote and a flow answered, or didn't, the inbox can tell you why, from what actually happened at the time.

  1. Open the conversation in Inbox and show the customer panel.
  2. Open Why flows replied. Each customer message that reached your flows has an entry, newest first, with when it was sent and one sentence saying what happened. For example:
    • "Started ‘Welcome’ (keyword “hi”)."
    • "‘Order status’ was waiting for this reply and carried on."
    • "No flow answered." followed by each flow that matched and why it was skipped, such as "‘Order status’ was skipped: a person was handling this conversation, so no flow started."
    • "No flow started, so the chat went to the inbox."
    • "Waiting for AI intent…", while the AI is still reading the message on a number where the bot answers first.
    • "‘Welcome’ was chosen but didn't start: the customer was already in that flow."
  3. Each run a message started or continued is listed under it with its version and how it stands. Click it to open the run and see every step.
  4. See this conversation's runs of ‘…’ opens that flow's run list showing only this conversation's runs. Show every run there lists them all again.

The reasons use the same words as Try a message on the Numbers page (see Flows and WhatsApp numbers): Try a message tells you what would happen now; Why flows replied tells you what did happen. Decisions are kept for 30 days. A chat the bot is handling shows them only to owners, admins and supervisors.

Alerts that point here

  • On Automation → Numbers, a number whose messages keep matching nothing says so, for example "12 messages in the last 24 h matched no flow — set a Default flow to answer them", with Choose a Default flow.
  • In the flow list and on a flow, a red "8 runs failed in the last hour" opens that flow's failed runs.

Still need help?

Write to us at [email protected] and tell us what you were trying to do. Already a customer? Sign in to IconEngage — the same articles are under Help in the app.