Skip to content

Agents in workflows

An agent runs in a workflow through the AI Agent node, which points at the stored agent instead of carrying a copy of it. The agent's brief, model, tools, knowledge, memory and limits are edited on the agent, in the agent editor; this page covers what you set on the canvas.

Because the node only references the agent, one agent can serve many workflows, and improving it improves all of them that follow its active version once you publish the new version. A node pinned to a version keeps running that one.

Adding an agent to a workflow

  1. Open the node picker and choose the Agents category. It lists the project's agents; one with nothing live reads This agent has no active version yet, and can still be added.
  2. Pick an agent, or New agent… (Create one and drop it in) to create one without leaving the canvas.
  3. Wire the input items into the node. They become the agent's opening message.

The node's output is the agent's final answer.

The agent card

Select the node to see the agent's card at the top of the inspector:

  • Agent: which agent the node runs (Choose an agent… when none). Agents that are not active carry their status in brackets. Switching the agent resets the version choice.
  • The agent's name with Active v3, Pinned to v2 or Not active, and a one-line summary of its model, tools and knowledge.
  • Version: Follow the active version, the default, runs whichever version is live when the step starts, and the run records which one it was: publishing a newer version never changes a run already in progress. Picking a version pins the node to exactly that one.
  • Open agent: the agent's editor.
  • Memory: where this placement remembers (see Memory).

The node's own parameters

The node's Parameters tab holds what belongs to this step rather than to the agent:

  • Task: opens the agent's first message, for example the instruction for this step. It accepts expressions, so it can draw on the input items.
  • Expected Output: a plain-language description of the result this step should produce. It overrides the agent's own for this step, and accepts expressions too.
  • Context Policy: overrides the agent's Context policy for this placement, for example to keep more turns word for word in a long-running step. Only the fields you set here replace the agent's: Strategy (none or truncate), Keep Turns, Head Chars and Max Input Tokens (see Limits, checks & exposure).

Tools

The agent's own tools are set on its Tools tab, where each one can also be made to wait for a person's approval before it runs (see Tools and Approvals inside an agent).

A placement can add tools of its own through the node's AI tool input: action nodes wired there become extra tools for this placement only, each running that node with its own parameters and connections. They are added to the agent's own tools, never instead of them. Right-click a node and choose Use as a tool for … to wire it without dragging.

Memory

Every agent has a store of its own, on by default (see Agent memory). A placement can remember somewhere else instead: a Memory node wired to the node's AI memory input gives this placement its own memory and replaces the agent's store for it.

The card's Memory line says which applies to the placement:

  • the linked Memory node, with Open memory node to go to it;
  • the agent's own store, in the project's database;
  • no memory at all, when the agent's store is off and no Memory node is wired to it.

The agent editor's Memory data tab shows the rows of every placement, beside the agent's own store.

Activating the workflow

Activating the workflow checks each agent reference: the agent must belong to the same project, must not be archived, and must have a live version, or the pinned version must exist. Its connections must also resolve in the project.

Later changes to the agent reach the workflow:

  • Publishing a new version changes what a node that follows the active version runs from its next step on.
  • Pausing the agent makes the steps that follow its live version fail when they start, and a workflow that follows it cannot be activated until the agent is published again.
  • Archiving the agent is refused while a live workflow uses it. Once it is archived, steps that use it fail, and no workflow that references it can be activated.
  • Deleting a live agent goes ahead even while a live workflow uses it, and that workflow's steps that use the agent then fail. Deleting a paused or draft agent that a live workflow uses is refused. See Publishing, pausing, archiving and deleting.
  • The agent's Workflows tab lists the workflows that reference it (see Versions & runs).

See Building a workflow for the canvas itself.

Agents written into the node

A node can also carry an agent of its own instead of a reference:

  • An inline agent: a node holding its own agent definition is marked Inline agent. Save as agent… stores the definition as an agent of the project and points the node at it, so it can be reused and versioned.
  • An older agent cluster: a workflow built before agents were their own objects wires the agent's model, tools, memory and knowledge as separate nodes. Selecting such a node offers Convert to agent, which turns the cluster into a stored agent and points the node at it. When the conversion has warnings, check the new agent before you publish it.

Starting from a template

Use template on the Workflows list can start a workflow from a starter crew. Its agents are created in the project you choose as drafts: pick a model on each and publish it before the workflow can run.