Testing and runs
The test window
Section titled “The test window”Open a workflow in the builder and click Test workflow. The window opens beside the canvas, so you can watch the run move from step to step.
- Start from: pick a trigger. For an API or agent trigger, fill in the input (use the form or Edit as JSON) and any correlation values. For a Business event trigger, enter the event data and click Send event.
- Workflow version to test: the saved draft, or a published version. A test keeps the version it started with, even if you edit or publish meanwhile.
- Speed: Real time, Minutes as seconds or Hours as seconds. Waits, timers, SLAs and timeouts are shortened by that factor, so a 24-hour wait takes 24 seconds at the fastest setting.
- Talk with agents by: chat, or a voice call in your browser.
- Click Start test run.
As the run moves, the window shows what the customer would see: messages, forms, calls and agent conversations. You play the customer. You can reply to an agent, fill in a form, or answer a call in the browser.
Waiting on you lists everything the run is waiting for:
- Approvals and tasks: approve, reject or complete them as the assigned role.
- Wait for event: send the event with the data you choose.
- Timers: shows when the run continues.
- Other steps: complete a step that another system would normally answer, choosing its outcome.
Team notifications shows the internal notifications the run would send. Run data shows everything the run has stored so far.
Sending to your own phone
Section titled “Sending to your own phone”Tick Also send messages and calls to my phone and enter your number with country code. Messages and calls then also go to your phone on your organisation’s real channels. Normal sending limits apply.
What makes a test run different
Section titled “What makes a test run different”- Nothing reaches real customers. Messages appear in the window unless you choose to send them to your phone.
- Test runs can run faster than real time.
- They never count in analytics or billing, never send webhooks, and are not visible through the public API.
- Workflows that an agent starts during the test, and sub-workflows, are followed in the same window.
To test a workflow together with the agents that start it, use Test use case on the use case page. See Build, test and deploy.
Every workflow keeps a history of its runs. Open it from the Runs button in the builder toolbar, or from the Runs & tasks tab of the use case.
Statuses
Section titled “Statuses”| Status | Meaning |
|---|---|
| Running | The run is working or waiting: for a time, an event, a person or another system. |
| Completed | The run reached an End step with result success. |
| Failed | A step failed with no error path, the step limit was reached, or an End step ended it as failed. |
| Cancelled | Someone cancelled the run, or an End step ended it as cancelled. |
A finished run also has an outcome: the code set on the End step that ended it, such as booked or escalated. Outcomes are what you count in analytics.
The run view
Section titled “The run view”Open a run to see:
- the canvas, with the steps the run reached and the path it took;
- the timeline of every step entered, completed, failed or waiting, and every status update;
- what the run is waiting on, and when it times out;
- the run’s input, correlation and data;
- for test runs, what the run asked other systems to do.
On a test run, New test run starts again with the same input and speed.
Cancelling a run
Section titled “Cancelling a run”Click Cancel in the run view. The run stops where it is and nothing further runs. This cannot be undone. Your systems can cancel a run with POST /runs/{runId}/cancel on the Workflows API.
When steps fail
Section titled “When steps fail”A step can fail because a tool returned an error, a system was unavailable, a time limit passed or a reply was incomplete. You decide what happens next in three layers.
- Retries on the step. Steps that call out (MCP tool, Knowledge lookup, Task agent, Send message, Notify, Policy check) have a Retries setting. An MCP tool step retries timeouts and an unavailable server by default; turn on Also retry when the tool reports an error to retry those too.
- On error connection. When the step still fails, the run follows the step’s on-error connection, if it has one. The failure is in
data.erroranderror.message. - Error handler. Point the on-error connection at an Error handler step. It can notify a team (this uses the beta Notify delivery), escalate by opening a case in Workflows → Tasks, compensate by running a workflow that reverses what was done, or do nothing. Then it continues, retries the failed step (up to a limit), or ends the run with an outcome you choose.
A step that fails with no on-error connection fails the run.
Time limits work the same way: a step that runs out of time takes its timeout outcome when it has one, otherwise its on-error connection.
Approvals and tasks
Section titled “Approvals and tasks”Approval, Human task and Escalation steps, and MCP tool steps that need approval, create tasks for a role. The run waits until the task is done.
People work through tasks in Workflows → Tasks. Each task shows its instructions, the run it belongs to, its deadline and any form to fill in.
| Task | Choices |
|---|---|
| Approval | Approve, or Reject with a reason. The reason is kept on the run. |
| Human task | Done, or one of the outcomes the step lists, such as verified or mismatch. |
| Escalation | Done, once the case is resolved. |
Approval rules you can set on the step:
- Approvals needed: several different people must approve; one rejection decides it.
- The person who started the run cannot approve (on by default).
- Approvers may pass it to another role (delegation).
- Remind before the SLA, then escalate to another role.
When the SLA passes, an approval takes its timeout outcome; a task or escalation takes its error path. Answers to a task’s form are checked and become the step’s result.
Your own systems can list and decide tasks of live runs through the public API, and receive a task.created webhook. See the Workflows API guide and Workflow events.
Following runs from your systems
Section titled “Following runs from your systems”GET /runs/{runId}returns the run’s status, outcome, status code and status label.- Webhooks tell you when runs start, complete, fail, are cancelled or update their status, and when a task is created. See Workflow events.