Skip to content
Docs

Quickstart: your first flow

In this tutorial you’ll import a small working flow, run it, read the run report, then change one line and run it again. That loop, edit, run, inspect, is how you build everything in Publicus, and by the end you’ll have been around it twice.

The flow you import calls no external services and needs no credentials, so nothing outside this page can make it fail.

  • An account on a Publicus workspace with permission to create flows.
  1. In the sidebar, open Templates in the Automation group.

    The Templates gallery, with the search box at the top, the featured templates, and the collapsed One flow per node section at the bottom
    The Templates gallery, with the search box at the top, the featured templates, and the collapsed One flow per node section at the bottom
  2. Type transformer into the search box, then expand the One flow per node section.

  3. Find the card titled Transformer (3 nodes) and click Use this template.

The One flow per node section expanded and filtered by Transformer, showing the Transformer card with 3 nodes and its Use this template button
The One flow per node section expanded and filtered by Transformer, showing the Transformer card with 3 nodes and its Use this template button

Publicus copies the flow into your workspace and opens it on the canvas. The chip in the header marks it as a draft that has never been published, which is fine: you are going to run the draft directly.

The imported Transformer flow on the canvas: Start wired to Injector, then Transformer, with the Not published note beside the title and Run by hand in the header
The imported Transformer flow on the canvas: Start wired to Injector, then Transformer, with the Not published note beside the title and Run by hand in the header

The canvas shows three connected nodes:

  • Start is where every run begins. It is placed automatically in every flow and cannot be deleted.
  • Injector emits a constant JSON document and ignores anything upstream. Here it stands in for a real data source, producing a sample order.
  • Transformer rewrites the incoming JSON using a template with embedded expressions.

Click the Injector node. A panel slides open with the node’s settings, under its name. Its Data field holds the sample order the node emits:

{
"orderId": "ord-2025-7421",
"customer": { "firstName": "Sanne", "lastName": "de Wit", "email": "sanne@example.com" },
"items": [
{ "sku": "NL-001", "qty": 2, "price": 19.95 },
{ "sku": "NL-007", "qty": 1, "price": 12.5 },
{ "sku": "NL-099", "qty": 3, "price": 4.25 }
],
"total": 65.15,
"currency": "EUR",
"tags": ["priority", "wholesale"],
"flags": { "taxable": true, "shipped": false },
"placedAt": "2026-05-18T08:14:00Z"
}

Close the panel without saving, then click the Transformer node. Its Template field holds:

@json($prev)
{
"invoiceId": "$.orderId",
"customerEmail": "$.customer.email",
"currency": "$.currency",
"subtotal": "$.total",
"firstTag": "$.tags[0]",
"taxable": "$.flags.taxable",
"customer": "$.customer"
}
@endjson

@json($prev) opens a JSON document in which every quoted "$.path" string is resolved against the previous node’s output, so "$.orderId" becomes the order id the Injector emitted. Quoted paths keep their native type: a number stays a number and a boolean stays a boolean. The full grammar is in Expressions; for now, reading it is enough.

Close this panel without saving too.

  1. Click Run by hand in the page header.

    The Run flow dialog saying the flow takes no input, so the run starts with no data, above which version runs and the Run and Cancel buttons
    The Run flow dialog saying the flow takes no input, so the run starts with no data, above which version runs and the Run and Cancel buttons
  2. The Run flow dialog asks for nothing: the flow takes no input, so the run starts with no data. The Injector supplies the data this flow works on. Click Run.

  3. The Runs panel opens at the right edge of the canvas. A new run appears, and its status updates live until it reads Completed. If the panel is closed, the Runs button in the header opens it.

The Runs panel listing completed runs and how long ago each started, with the run count beside the panel's Runs heading and All runs
The Runs panel listing completed runs and how long ago each started, with the run count beside the panel's Runs heading and All runs
  1. Click the run’s row in the Runs panel. The run report opens in a new tab.
  2. The Timeline section lists one entry per node in the order they ran. Click the Transformer entry to expand it and see the output it produced.
  3. The Final output section shows what the last node emitted:
{
"invoiceId": "ord-2025-7421",
"customerEmail": "sanne@example.com",
"currency": "EUR",
"subtotal": 65.15,
"firstTag": "priority",
"taxable": true,
"customer": { "firstName": "Sanne", "lastName": "de Wit", "email": "sanne@example.com" }
}

Compare it with the template you read in step 2: "$.total" produced the number 65.15, "$.flags.taxable" produced the boolean true, and "$.tags[0]" picked the first element of the tags array.

  1. Back on the canvas tab, click the Transformer node.
  2. Replace the Template field’s contents with this version, which adds one field at the bottom:
@json($prev)
{
"invoiceId": "$.orderId",
"customerEmail": "$.customer.email",
"currency": "$.currency",
"subtotal": "$.total",
"firstTag": "$.tags[0]",
"taxable": "$.flags.taxable",
"customer": "$.customer",
"placedAt": "$.placedAt"
}
@endjson
  1. Click Save changes.
  2. Click Run by hand, then Run, as before.
  3. Open the newest run. Final output now also carries "placedAt": "2026-05-18T08:14:00Z", pulled straight from the Injector’s order.

You imported a working flow, ran its draft twice, read both runs’ reports, and edited an expression that reshapes data between nodes. The flow is still a draft, and that never got in your way: on a flow that is not published, Run by hand executes the graph you are editing. Publishing matters once a schedule, webhook, or channel triggers the flow, because triggered runs execute the published version. Draft, publish & versions explains that model.