Skip to content
Docs

Flows & the canvas

A flow is a directed graph of nodes that Publicus runs end to end. Each node does one piece of work (call an API, transform data, ask an AI agent) and passes its output along an edge to the next. You build flows on the canvas, a visual editor you reach by opening a flow under Automation → Flows. This page explains how a flow is put together, what the canvas shows you, and how the draft you are editing relates to what actually runs.

The Flows list: each flow's health badge, a line under its title saying what starts it and what it does, when it last ran, and which version is published
The Flows list: each flow's health badge, a line under its title saying what starts it and what it does, when it last ran, and which version is published

The list tells you three things about each flow:

  • Health says whether the flow works. Hover over the badge to read why, and click it to open the flow’s runs, only the failed ones when the flow is failing.
    • Failing: its last run failed.
    • Late: its schedule, or its expected rhythm, has passed twice without a run.
    • Needs you: a run waits for someone to approve an action, answer a question or fill in a form, or a connection one of its nodes uses needs reconnecting.
    • Paused by Publicus: Publicus switched its mail off after a spam complaint.
    • Off: it is published, and nothing that starts it is switched on, so it runs only by hand.
    • Working: its last run completed.
    • Quiet: something starts it, and it has not run yet, or not in the last two weeks.
    • Not live: it is not published, and nothing starts it.
  • The line under the title says what starts the flow, such as “Starts when a request reaches Orders” or “Starts every weekday at 08:00”, and then what the flow does. Hover over it to read every way the flow starts and its whole description.
  • Last run says how long ago the flow last started a run, or Never.

The list puts the flows in the worst health first, so it opens on what needs looking at. Click a column heading to sort by that column instead; the list keeps your choice for the rest of your session. The Published column says which version runs, or Not published for a flow whose draft runs.

The list shows your workspace’s own flows. Flows that Publicus runs for you, such as the AI builder, are hidden by the System flows filter; clear it, or open the System view, to see them. Each says Managed by Publicus under its title.

Every flow starts at a Start node, the rounded node with a play glyph that Publicus creates with the flow. When a run starts, Publicus walks the graph from Start, executes each node in turn, and feeds each node’s output forward as the input of the next. Triggers (webhooks, schedules, channels, mailboxes) are nodes too: they plug into the Start node’s trigger handle on its left side and start the walk when they fire.

A new, untitled flow whose canvas holds only the Start node, with its trigger handle on the left
A new, untitled flow whose canvas holds only the Start node, with its trigger handle on the left
A flow on the canvas: a webhook trigger wired into the bolt handle on Start's left and a chain of nodes running down from Start, with Edit with AI, Run by hand, Publish and Runs in the toolbar
A flow on the canvas: a webhook trigger wired into the bolt handle on Start's left and a chain of nodes running down from Start, with Edit with AI, Run by hand, Publish and Runs in the toolbar

Three ideas make up the graph:

  • Nodes do the work. Each node has a type that determines what it does and which settings it takes. See Nodes & logic for the catalog.
  • Edges join the nodes. Most carry data forward, from one node’s output handle to the next node’s input handle. Some attach a helper instead of passing data: tool, memory, context, and model nodes connect to an agent’s side handles to extend the agent rather than run after it.
  • Configuration is per node. Node settings can reference the output of earlier nodes with expressions, which is how data moves through the flow in the shape you need.

Nodes have names, and names are unique within a flow. That matters beyond labelling: expressions can reference another node’s output by its name with $workflow->node('…'), so a clear name makes the whole flow easier to read.

The canvas is direct: everything you do on it saves to the flow immediately.

  • Add a node. The Add node button sits in the bottom-right corner. It opens on a search, with every node type listed under it on shelves for what nodes are for, and a row of tabs above them: All, AI, Channels, Triggers, Storage, APIs, Transform and Control flow. Pick a tab to see one shelf, or press Tab and Shift+Tab to move between them; Backspace in the empty search goes back to All. Type to narrow the list, and each tab shows how many types match. Then click a type, or use the arrow keys and press Enter. The node is added at once, named after its type, and lands in the middle of your view. A second node of one type gets a number, such as Web Search 2. To rename a node, open it and click its name.

    The Add a node dialog: a Search for a node field, a row of tabs from All to Control flow, and the AI shelf's nodes under them, each with its icon and a short description
    The Add a node dialog: a Search for a node field, a row of tabs from All to Control flow, and the AI shelf's nodes under them, each with its icon and a short description
  • Configure a node. Click a node, or press Enter on a node that has focus, to open its settings. The form is generated from the node type, so it always matches what the node accepts. The node’s name is the panel’s heading: click it to rename the node. Under it are the node’s type, a Docs link to its page and Ask about this node, which closes the settings and opens the AI builder beside the canvas with a question about the node in its message box. The ⋯ button beside them holds Copy node ID, the ID expressions can reference the node by, and Copy class, the type’s name in code. The panel also holds the Delete button for removing the node.

    A node's settings header: the node name, its type, a Docs link, Ask about this node and the ⋯ button
    A node's settings header: the node name, its type, a Docs link, Ask about this node and the ⋯ button
  • Connect nodes. Drag from a handle on one node to a handle on another. The canvas only accepts pairs that make sense: output to input for data, a trigger’s handle into Start, a pager’s iteration handle into the subgraph it repeats, or a helper node’s output into an agent’s tool, memory, context, or model handle. To remove an edge, select it and press Backspace, or drag its end off the handle and drop it on empty canvas.

    You can also add and remove edges without dragging. Press e on a node that has focus, or open the node and choose Add an edge to… at the bottom of its settings. Add an edge to lists every node this one can lead to, and only those: a node that would close a loop, an input that already has its edge, a handle of the wrong kind, and a node this one already has an edge to are left out. Remove the edge to lists the edges this node already has. Choose Save to add and remove in one go. The list shows the edges out of the node; to add an edge into it, open the node it comes from.

  • Arrange the graph. Drag nodes to move them; positions are saved. The Tidy layout button next to the zoom controls auto-arranges the whole graph, and one Undo puts every node back where it was. The minimap in the corner keeps you oriented on large flows. Container nodes, such as pagers, can be resized by their corner so their subgraph fits inside.

    An agent’s tool, memory, model, and context handles are on its bottom edge. If a flow has nodes wired to those handles that sit above their agent, the canvas offers once: “Some of this flow’s agents have their tools above them. Their ports are on the bottom now.” Move them below moves the nodes wired to those agents’ handles into a row under each agent, in the order of the handles, and leaves every other node where you put it. Not now leaves the flow as it is. Either answer is remembered in this browser, so the offer does not come back.

  • Move around with the keyboard. Tab moves through the nodes and then the edges, and a ring shows which one has focus. On a node, Enter opens it, e opens Add an edge to… for it, a opens the node picker to add a node after it, and Space selects it. An arrow key goes to the nearest node joined to it by an edge in that direction, and selects that node; if none lies that way, focus stays where it is. Shift and an arrow key move the selected node. On an edge, Enter or Space selects it and Backspace removes it. With focus anywhere on the canvas, f fits the whole flow to the screen, as the fit button does. To delete a node, open it and use Delete in its form, which asks first: Backspace never removes a node. Focus stays on the canvas as it changes: a node you add has focus once it appears, a node you delete hands focus to the node before it (or to Start), and an edge you remove hands it to the node it came from. A screen reader reads a node by its name, followed by any marks it shows, for example “Save shipment, Not connected”, and an edge by the two nodes it joins, for example “Edge from Read the delivery note to Save shipment”.

    With a, the picker opens as Add a node after the focused node, and the node you pick is joined to its output, as a click on that handle joins it. When the output already has its edge, a uses the node’s next free handle, and on a node with none free it does nothing. e, a and f are single-key shortcuts, which you can turn off. Press ? for every key, or see Keyboard shortcuts.

  • Undo a change. ⌘Z (Ctrl Z on Windows and Linux), or Undo in the canvas controls, takes back your last change on the canvas, and ⇧⌘Z (Ctrl Shift Z), or Redo, makes it again. Undo reaches what you changed on this canvas since you opened the page: moving nodes (a drag, Shift and the arrow keys, Tidy layout or Move them below, each undone in one go however many nodes it moved), drawing an edge, removing edges with Backspace, adding a node from the picker, and deleting a node, which comes back with its edges. It keeps your last 100 changes, and reloading the page clears them. It does not reach a change in a node’s settings or in Add an edge to…, the AI builder’s changes (use Undo this turn there), or anyone else’s.

    Undo never overwrites a change made since. A node that was moved again, a node you added that was renamed, edited or joined to another since, a deleted node whose name another node has taken, and an edge the flow no longer takes all stay as they are, and the message says which, for example “Report was moved since.”. An edge whose other node is still deleted stays deleted until that node comes back. The keys work while the canvas has focus, or nothing has, as after a click on empty canvas. With the cursor in a field, ⌘Z undoes your typing, as it always does.

    The minimap above the canvas controls: zoom in, zoom out, lock, fit view, Tidy layout, Undo and Redo
    The minimap above the canvas controls: zoom in, zoom out, lock, fit view, Tidy layout, Undo and Redo

Clicking the Start node, or pressing Enter on it, does not open a configuration panel. It opens the Run flow dialog instead, the same one the Run by hand button in the toolbar opens, because starting a run is the only thing Start is for. Its play glyph says so: hold the pointer over it to read Run by hand.

A node says what is wrong with it in words, in a row of marks under its title, so you can see the health of a flow without opening anything. A node with nothing wrong shows no marks. Hold the pointer over a mark to read what it means.

  • Expression error, in red, means one of the node’s expressions does not compile. The node needs attention before a run can use it: open it to see which field.
  • Not connected, in gray, means nothing leads to the node from Start. It is parked on the canvas, and no run will ever reach it. A node you are still wiring up shows it until its edge is in place.
  • Trigger badges appear on trigger nodes and say whether the trigger fires: On means armed, Off means disarmed. The badge also warns when something is wrong, such as a schedule that is late or has never fired. Clicking the badge opens Trigger controls, where the Active toggle arms or disarms the trigger. That toggle takes effect immediately; it is not part of the graph and does not wait for a publish.
Marks on the canvas: Expression error under a node whose expressions fail to compile, and Not connected under a node nothing leads to from Start
Marks on the canvas: Expression error under a node whose expressions fail to compile, and Not connected under a node nothing leads to from Start

Which version the triggers run is said once, by the version note on the toolbar: Live: v3 when your draft matches the published version, Live: v3 · draft has 2 changes when it does not, and Not published before the first publish. See Draft, publish & versions for every note.

A flow's title with the version note Live: v1
A flow's title with the version note Live: v1
A flow's title with the version note Live: v3 · draft has 1 change
A flow's title with the version note Live: v3 · draft has 1 change
A flow's title with the version note Not published
A flow's title with the version note Not published

The canvas always shows the flow’s draft, and every edit saves to it straight away. Publishing is what turns a draft into something triggers act on:

  • Publish records the draft as a numbered version. From then on, triggered runs (schedules, webhooks, channels, agents) execute that published version, no matter what you do to the draft.
  • Run by hand starts a run with its real side effects, of the draft you are editing unless you choose the live version. It is how you test a change before publishing it.
  • A flow that has never been published runs its draft on every trigger. That is the normal state of a freshly imported flow, but it means every saved edit is immediately live.

This split is what makes the canvas safe to work in: you can rewire half the flow while a schedule keeps firing into the stable published version. For version history, diffs between versions, and rolling back, see Draft, publish & versions.

The Runs button in the toolbar opens a rail listing the flow’s 20 most recent runs, with a count of how many the rail holds. Each row says the run’s status, the node it is at or ended on, what started it (by hand, by schedule, by webhook), and which version it ran: v3, or Draft for a run of the draft. A run that starts while you watch shows those two once you reload the page. All runs, at the top of the rail, opens Runs narrowed to this flow for everything older.

Between the runs, in gray and by time, the rail also lists the changes to the flow since the oldest run it shows:

  • Changed by the builder for Justin: a turn of the AI flow builder that changed the flow. Select it to open that conversation.
  • Published v3: a version you published, or an earlier version you published again. Select it to open Versions.
  • Changed by hand, with Last by Justin under it: changes made on the page since the newest of those, and who made the last one.

They are not runs, so they have no eye and the count leaves them out. A change you make on the canvas joins the list the next time you open the page; a publish and a builder turn in the chat beside the canvas join it as they happen.

From the keyboard, pressing Runs puts focus on the rail’s heading, and Tab moves on through All runs, Hide runs and the rows themselves. Press Escape anywhere in the rail, or use Hide runs, to close it, and focus goes back to the Runs button. When a new run opens the rail by itself, focus stays where you were.

The Runs rail listing the flow's recent runs, each with its status, the node it ended on, by schedule · v3 and its age, with the run count beside the rail's Runs heading
The Runs rail listing the flow's recent runs, each with its status, the node it ended on, by schedule · v3 and its age, with the run count beside the rail's Runs heading

The canvas can show one run on its nodes. Select Show on the canvas, the eye beside a run in the rail, and every node the run has reached says how it went there, in a word under its title: Done, Running, Failed, Waiting on a person or Stopped by a condition. Once the run is over, a node it never reached says Skipped. Select the eye again to stop.

A chip at the top of the canvas names the run you are looking at, for example “Showing the run started 10 Nov 14:02 by webhook · ran v3”, and Stop showing it clears it. It says ran because the canvas always shows the draft, which may have changed since that run.

The chip at the top of the canvas: Showing the run started at a time by webhook, ran v3, with Stop showing it
The chip at the top of the canvas: Showing the run started at a time by webhook, ran v3, with Stop showing it
A node with a Failed chip under its title, where the shown run failed
A node with a Failed chip under its title, where the shown run failed

A pager or a split also counts its pages or items in that run, on a line under its own word, for example “12 done · 1 running · 2 failed”. A count of zero is left out, except done while the run is still going. There is no total: a pager does not know how many pages it will fetch until its end condition stops it. See Paginate through an API.

Until you pick a run, the canvas follows the newest run in progress, and moves to each new run as it starts. Picking a run or stopping one ends that. Open flow on a run’s page, and Open this node in a failure notification, open the canvas with that run shown, and the page’s address keeps the run you picked, so reloading it or sharing the link shows the same run. The rail, the words on the nodes and the chip update in real time as runs start, progress, and finish.

When a run fails, the rail names the node it failed at, and a Fix with AI link opens the AI builder on that failure so it can propose a repair (see Build with AI). Clicking a run opens its full report, with what each node received and produced, in the same tab; see Runs.

A failed run in the Runs rail, naming the node it failed at, with a Fix with AI link
A failed run in the Runs rail, naming the node it failed at, with a Fix with AI link

The gear icon next to the flow’s title opens Flow settings. A flow keeps its settings small on purpose, because almost everything about a flow lives in its graph:

  • Title, the flow’s name across the app.
  • Description, what the flow does and what it needs, in a sentence or two. An agent that uses the flow as a tool reads it to decide when to call it, and so do MCP clients. The Flows list shows it under the title, after what starts the flow, and the flow page shows it under the flow’s name (see Publish and versions). Saving the settings also takes a description the AI builder wrote as yours.
  • Offer as an MCP tool, to let outside AI apps, such as Claude Desktop or Cursor, call the flow as a tool. See MCP access.
  • Expected rhythm, how often the flow should run: every hour, every day, every weekday, every week or every month. Publicus calls the flow Late when two of these pass without a run, so a flow that a webhook, a mailbox or a chat starts tells you when it has gone silent. Every weekday skips Saturday and Sunday in your workspace’s time zone. A flow that a schedule starts knows its own times and needs none. Tell the AI builder how often a flow should run and it sets this for you.
  • What it asks for, the fields somebody fills in to start the flow: in the Run box, on a portal page, or when an agent calls it as a tool.
Flow settings with Title, Description, the Offer as an MCP tool toggle, Expected rhythm, the collapsed What it asks for section, and Save changes and Export
Flow settings with Title, Description, the Offer as an MCP tool toggle, Expected rhythm, the collapsed What it asks for section, and Save changes and Export

You build the flow’s input on one canvas, under Layout. Add to the layout offers fields beside sections, tabs, steps and text, and each field says two things when you open it:

  • What it asks: its name in the data (what the flow reads it back as, $start->name), its type, whether it must be answered, its choices, what it starts with, and for a number its lowest and highest value.
  • How it looks: its label, placeholder, help text, when to show it, and options such as text after the value.
A field opened under What it asks for: What it asks with Name in the data, Type and Must be answered, and How it looks with Label, Placeholder, Help text and When to show it
A field opened under What it asks for: What it asks with Name in the data, Type and Must be answered, and How it looks with Label, Placeholder, Help text and When to show it

Drag an item’s right edge, or pick its width, to put fields side by side. Two or more steps ask the fields a step at a time. Preview shows the real form before you save.

A field’s label and help text are also what an agent calling the flow reads, so keep them plain unless they greet a person on a portal page.

Renaming a field is followed when you save: the expressions in this flow that read it, the flows that call this one, and the portal forms over it are updated, and a notice says what changed. Anything outside your workspace that starts the flow, such as an MCP client, still sends the old name and has to be told.

The While answering tab sets searches, hooks and a check on the flow’s form, as on a Form node’s (see Form). They run wherever the form is filled in: in the Run box, on a portal’s form or a button’s form, and on a table’s button.

When a Form node is wired as the flow’s page, its form is the flow’s input. What it asks for is then read-only and names the node: change the form on the node.

The settings modal is also where you export the flow as JSON; see Export & import.