Manual Trigger
The Manual Trigger starts a workflow on demand. It has no settings. Use it for workflows that someone runs explicitly, for workflows you start through the public API, and for error workflows.
:::info Triggers, publishing and environments This applies to every trigger, not just the Manual Trigger.
- Publish to go live. Webhook, schedule, database-row, email and SFTP triggers only start runs for the published version of a workflow. Saving a draft doesn't activate or change them; publishing does. See Publishing.
- Every trigger runs in an environment. Runs started by a trigger use the environment the workflow was published to. If none was chosen, the project's default environment is used. Secrets, connections and storage then resolve for that environment. See Environments. :::
Ways to start a run
| Where | What runs |
|---|---|
| Test run in the editor header | The last saved draft. Choose the trigger to start from and, optionally, an environment and Trigger data (a JSON object). If you have unsaved changes, you're asked to continue with the last saved version. |
| Run now / Test run in the workflow list's actions menu | Run now starts the published version, Test run starts the draft. |
Public API: POST /api/v1/workflows/{workflowId}/execute | The published version. Without a triggerId, the first Manual Trigger is used (else the first Webhook Trigger). See API endpoints. |
Test runs from the editor show live progress on the canvas: each step changes colour as it runs, and the results appear in the step panel and in Runs.
Trigger output
When you start a test run from the editor, the Manual Trigger outputs the Trigger data you entered in the Test run dialog (an empty object by default; see below). When you start a run from the workflow list, it outputs nothing.
When you start it through the public API, the data object you send becomes the trigger output:
curl -X POST https://api.blokkio.com/api/v1/workflows/3f2b8c1e-7d4a-4b9e-8f21-0c6d5e4a9b17/execute \
-H "Authorization: Bearer $BLOKKIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "data": { "customerId": "cus_123", "plan": "pro" } }'
{{ $trigger.customerId }}
{{ $nodes['Manual Trigger'].plan }}
When the workflow is used as an error workflow, the Manual Trigger outputs the details of the failed run:
{
"execution": { "id": "…", "startedAt": "…", "finishedAt": "…", "status": "Failed" },
"workflow": { "id": "…", "name": "Sync orders" },
"error": { "message": "Request failed with status code 500" },
"failedNode": { "id": "…", "name": "HTTP Request" }
}
Testing with sample data
To try later steps with realistic input, click Test run in the editor header and paste the input into the
Trigger data box — the same object you would send as data through the API:
{ "customerId": "cus_123", "plan": "pro" }
It must be a JSON object (not an array or a single value). It becomes $trigger and the Manual Trigger's output,
so both {{ $trigger.customerId }} and $nodes['Manual Trigger'].customerId work exactly as in an API run. To
test an error workflow, paste a failure payload like the one above.
If you want the same input in every test run without pasting it each time, you can instead
pin sample data on the Manual Trigger's output. A pinned trigger output
replaces the trigger step's output; $trigger still holds what's in the Trigger data box. Pinned data is only
used in test runs.