Workflow test runs
A test run runs the draft of a workflow one time, with the trigger input that you give. It shows what each node did. By default it saves nothing, so you can test a change before you publish it.
Where to start a test run
| Page | Address | Content |
|---|---|---|
| Test run | …/workflows/<workflow>/test | The trigger form and the result. Open it with the Test tab of the workflow. |
You must have the scope ORGANIZATION_WORKSPACE_UPDATE and each scope that the workflow
uses. The page names each scope that you do not have.
Trigger input
| Trigger | Input | Meaning |
|---|---|---|
| Action | One input for each action field | The answer to that field. Nodes read it as trigger.action.responses.<key>. If a field is empty and not required, the run sends no answer for it. |
| Other event | Entity ID | The entity that the event is about. Nodes read it as trigger.entityId. An empty field uses the workspace. |
lead.created or lead.updated event | Lead ID | The ID of the lead that the event is about. Nodes read the lead as trigger.lead. This field is required. |
Each action field gets the input for its type:
| Field | Input |
|---|---|
| Text | A text box. |
| Number | A number box. The value must be a number. |
| True or false | A checkbox. |
| Record | A box for JSON. The value must be valid JSON. |
| Field with options | A list to choose one option. |
| Field with many values | Checkboxes for options, or one value on each line. |
A required field must have a value before the test run starts.
Execute writes
Set Execute writes to run the tools that write. This option is off by default.
When Execute writes is on:
- Each tool that writes runs as it does in a run.
- Each write records the workflow as the thing that made it.
- An Action response node shows the payload of its answer in its output.
- Set run labels and Remove run labels write the labels of the test run. Picked deletes these labels when the test run ends.
- A wait node does not wait.
- The test run stops after 60 seconds. It shows
Failedand the nodes that it ran before it stopped. The API gives the failure codetest_run_timed_out. - If a tool runs when the test run stops, that tool shows
Failed. Its write can continue after the stop.
The scopes that you must have do not change.
What runs
| Node | In a test run |
|---|---|
Tool that reads, such as Search leads or an External API GET or HEAD | Runs. |
Tool that writes, such as Create lead, Set lead labels or an External API POST | Runs only when Execute writes is on. If it does not run, the result shows the input that it would send. |
| Get run | Runs, and gives the ID of the test run, which starts with test_, and the labels of the test run. |
| Condition | Runs, and shows the branch that it took. |
| Wait | Does not wait. |
A later node that reads the output of a skipped node gets no value.
A test run does not wait on a loop. It goes around the loop until a condition takes the
exit, or until a node gets to the visit cap. Each visit shows as a node of the result, and
a later visit shows its number, such as visit 2. Refer to the
workflow runs reference.
Result
| Status | Meaning |
|---|---|
Succeeded | The node did its work. |
Skipped | The test run did not run the tool. |
Failed | The node failed, and shows the reason. |
When a node fails, the test run stops at that node and shows Failed. If an edge leaves
the error exit of the node, the test run continues on that edge as a run does, and can
show Completed. Refer to the workflow runs reference.
Each node shows its input and its output. A test run does not show in Runs. When Execute writes is off, it does not create or change leads or labels.
Run variables
A test run gives its own values to run.id, run.startedAt and run.preview. Refer to
Workflow templates.
API and MCP
You can also do this task with the Management API, the MCP server, or code that you send to picked_run.
| Task | GraphQL | MCP tool | Run |
|---|---|---|---|
| Start a test run | workflowTestRun | test_run_workflow | tools.test_run_workflow({ workflow_id }) |
