Skip to main content

Node reference

An agent is a graph of nodes. The canvas editor's Components palette has nine node types:

Palette groupNodeWhat it does
CoreInputWhere the run starts
CoreOutputThe run's final result
CoreAgentOne LLM call
LogicConditionBranches the graph
LogicHuman reviewHolds the output until a person approves it
MemoryMemoryKeeps values between runs
ToolsToolCalls a built-in tool or one of your Python tools
ToolsMCP ToolCalls a tool on one of your MCP servers
RetrievalRetrievalQueries a vector store

Each node receives the output of the node before it. When a node has more than one incoming connection, it gets one object with an entry for each predecessor, keyed by that node's id.

Input​

The entry point. What you send arrives here: the message in chat, the input in the test runner, or the input field of an API call.

Write a Description so people know what to send. Review warns when an Input node doesn't have one.

Output​

The final result. Whatever reaches this node is the run's answer: what the API returns and what the run card shows.

Agent​

One LLM call. Its settings:

FieldNotes
ModelGPT-4o, GPT-4o mini, GPT-4 Turbo, GPT-4, GPT-3.5 Turbo, Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Gemini 2.5 Flash, Gemini 2.5 Pro
RoleA short identity, such as "Researcher". Review warns when it's empty.
System promptInstructions for this step only

The model runs on your own provider key (OpenAI, Anthropic or Google). If there's no key for the model's provider, the node fails and the error says which key is missing. Add keys in Workspace → Keys.

Every Agent node uses the agent's compiled rules as its system prompt. The node's System prompt is appended after them, as node-specific instructions.

An Agent node doesn't call tools on its own. Tools are separate nodes in the graph, and they run when the graph reaches them.

Condition​

Routes the run down one branch or another. Choose a Condition type and the Value to compare with the incoming value (an agent's reply, or the previous node's output as JSON text):

TypeTrue whenValue example
Containsthe text contains the valuerefund
Equalsthe text, trimmed, is exactly the value. Numbers compare as numbersapproved
Regex Matchthe regular expression matches. Wrap it in slashes for flags/urgent|asap/i
JSON Paththe value at that path is present, or the comparison holds. Text is parsed as JSON first$.order.status == "paid", $.total > 100, $.items[0].sku

An invalid pattern or path takes the false branch.

The label on each outgoing connection decides which branch follows it:

Edge labelFollowed when the condition is
true, yes, pass, accepttrue
false, no, fail, retry, refinefalse
no labeleither way

Nodes on a branch that isn't taken are skipped. A connection that leads back to an earlier node makes a loop. By default a loop can repeat up to 10 times.

Human review​

Holds the output that reaches it until a person approves, edits or rejects it in the Review inbox. Nothing after the node runs until then. The node shows what it holds, for example Holds: Below 0.8 confidence or Holds: Every output.

When you ask chat for an agent, the builder adds one after the agent step. See Human review for what gets held and how reviewing works.

Memory​

Remembers a value between runs, such as a chat history or a running total. An agent with a Memory node runs as a session: each new input is a turn in the same conversation.

FieldNotes
KeyNames what is remembered. Memory nodes that share a key share the value.
How values combineAppend keeps a list (chat history). Replace keeps only the latest. Merge combines object fields.
Keep last N items / …or fit within N tokensAppend only. Set at least one. Whichever limit is reached first applies. Without a limit, the agent won't run.

The node passes on what it held when the turn started. What reaches it is saved at the end of the turn.

note

Where the session comes from depends on where the agent runs:

  • Canvas test runner: one conversation until you click New conversation.
  • Chat: the conversation is the session, so the agent remembers earlier turns of that chat. Each item of a batch run gets its own session, and Resume continues the stopped run's session.
  • API: send a sessionId in the run body. Reuse the same id to continue a conversation, and a new one to start another. Without it, the call is refused. See Run an agent via API.

Tool​

Calls one tool. In Tool, pick a Built-in tool or one of your Custom (Python) tools.

Input parameters is a JSON object with the tool's arguments, for built-in and custom tools alike. {{ input }} inserts the previous node's output, and {{ input.field }} one of its fields: {"url": "https://api.example.com/orders/{{ input.id }}"}. A custom Python tool also receives the previous node's output as input.

The Delay built-in waits {"ms": 5000} (up to 60 seconds) and passes its input on unchanged. The wait is durable: it costs nothing and survives a restart.

See Tools for the list of built-ins, the Python sandbox and the cost of each call.

MCP Tool​

Calls a tool on one of your MCP servers.

FieldNotes
ServerOne of your MCP servers
ToolOne of the tools that server advertises. Pick a server first.
Arguments (JSON)Merged with the previous node's output. If both set the same key, this field's value wins. The help text lists the arguments the tool expects.

If the tool reports an error, the node fails with that error.

Retrieval​

Queries a vector database (pgvector, Pinecone, Qdrant or Weaviate) and passes the matching chunks to the next node. See Retrieval (RAG).

Advanced settings​

Every node has an Advanced section at the bottom of its panel:

SettingWhat it does
TimeoutFails the node if it takes longer, in milliseconds (up to 5 minutes). Empty: the engine's own limits
RetriesHow many more times to try after the node fails (up to 10). Errors that would fail the same way again, like a missing key, aren't retried
Cache resultsReuses the node's output when it gets the same input again in the same run, for example in a loop
Skip on errorIf the node still fails after its retries, its input is passed on and the run continues. The failure stays in the trace

Transient errors, such as a provider rate limit, are already retried by the engine; Retries adds attempts on top of that.