Your first workflow
This guide builds a practical workflow: a webhook receives a request, an If / Else step checks a value in the payload, and the run continues down one of two branches. Along the way you'll use test events, the step panel and expressions.
What you'll build
Incoming Request (Webhook Trigger)
│
Is active? (If / Else)
├── If True → Active (Variable)
└── If False → Inactive (Variable)
Step 1 — Create the workflow and add a Webhook Trigger
Create a blank workflow (Workflows → Add Workflow, or Blank workflow in the welcome dialog). From Built-in steps → Triggers in the Toolbox, drag a Webhook Trigger onto the canvas.
Click it, rename it to Incoming Request and look at the webhook panel. It shows two URLs:
- Test URL — works for the draft while you are listening for a test event. Captured requests become the step's sample data and don't start a run.
- Production URL — fires the published workflow. It shows Not live — publish to activate until you publish.
By default the trigger accepts POST only. GET is off by default so link previews and crawlers can't start
runs; you can enable other methods under HTTP methods.
Step 2 — Capture a test event
Click Listen for test event, copy the Test URL and send a request to it:
curl -X POST "<test-url>" \
-H "Content-Type: application/json" \
-d '{"name": "Ada", "status": "active"}'
The request appears in the panel and becomes the trigger's sample output (listening stops on its own after a while). The output of a webhook trigger looks like this:
{
"method": "POST",
"path": "/api/webhook-test/…",
"headers": { "content-type": "application/json" },
"query": {},
"body": { "name": "Ada", "status": "active" }
}
Now pin it: in the Output column of the trigger's step panel, click Pin. Pinned data is what a test run uses for this step instead of running it, so every test run from now on starts with this request.
Step 3 — Add an If / Else step
Hover the trigger's output port, click + and pick If / Else. It's added and connected in one go.
Open the If / Else step and build one condition:
| Field | Value |
|---|---|
| Value | {{ $nodes['Incoming Request'].body.status }} |
| Operator | equals |
| Compare to | active |
Click Save conditions. Rename the step to Is active?.
For steps that open in the step panel you don't have to type expressions at all:
the Input column shows the previous step's data, and dragging a field onto a parameter inserts the matching
$nodes[...] expression.
Step 4 — Add the branches
If / Else has two output ports: If True and If False.
- Click + on If True, add a Variable step named
Active, and set Variable keyresultand Variable valueUser {{ $nodes['Incoming Request'].body.name }} is active. - Click + on If False, add a Variable step named
Inactivewith keyresultand valueUser is inactive.
Later steps can read the value with {{ $vars.result }}.
Step 5 — Test the whole workflow
Click Test run, pick Incoming Request and click Test run. Because the trigger's output is pinned, the
run starts with your captured request. Watch the steps light up: Is active? routes to Active, and
Inactive is skipped.
Open any step to see what it received and produced. To try the other branch, open the trigger, click
Edit & pin, change "status" to "inactive", click Save & pin and run again. When you're done, click
Unpin — pinned data only affects test runs, never published runs.
:::tip Without pinning
The Test run dialog also has a Trigger data box. Whatever JSON object you put there becomes $trigger and the
trigger's output for that one run — handy for trying a different payload without touching the pin. For example,
{ "body": { "name": "Grace", "status": "inactive" }, "headers": {}, "query": {} } exercises the If False
branch (unpin the trigger first, since a pinned output replaces the trigger step's output).
:::
Test runs use the last saved draft. Drafts save automatically about two seconds after each change; if you start a test with unsaved changes, Blokkio asks whether to continue with the saved version.
Step 6 — Publish
Go to Workflows, open the ⋯ menu on your workflow and choose Publish draft. Add a comment such as "First version" and click Continue. The Production URL is now live:
curl -X POST "https://<your-api-host>/api/webhook/<token>" \
-H "Content-Type: application/json" \
-d '{"name": "Ada", "status": "active"}'
By default the webhook answers right away with 202 Accepted and the id of the new run:
{ "executionId": "4f1c2a9e-…" }
Open Runs in the sidebar to see the run, step by step.
What's next
- Call a real API with the HTTP Request step and a connection
- Learn what you can do with expressions
- Reply to the caller with Respond to Webhook, or secure the webhook with signature checks — see Webhook trigger
- Make failures visible with error handling