Skip to main content

The canvas

Every agent is a graph of nodes. The canvas is where you see that graph and edit it. It shows up in two places:

WhereWhat it's for
Canvas tab of the agent panel, next to the chatWatching. You see the graph while it's being built and while it runs. You can't edit here.
Canvas editor, a full pageEditing. You add, connect and configure nodes, then save.

Most agents start in chat. You describe the agent and the builder creates the graph for you (see Working in chat). Open the canvas editor when you want to change the graph by hand.

The Canvas tab in the agent panel​

In an agent's conversation, click Canvas in the header. The agent panel opens on its Canvas tab. When a build finishes, the Open button on the agent card opens the same view.

  • While a build runs, nodes appear as the builder adds them. The status chip reads Building….
  • While a run is live, the active node gets an orange outline and the edges already walked turn orange. The chip reads Running.
  • Otherwise the chip shows the saved state, for example Saved · v3 for a published agent or Saved · v3 · draft for one that isn't published.

This view is read-only. It shows the agent as it is saved, so it won't show changes you haven't saved in the editor yet.

Opening the canvas editor​

  • Click an agent under Agents in the sidebar.
  • Open Workspace → Agents and click the agent.
  • Click the Open canvas button that chat offers in some replies.

To create an agent without chat, click + next to Agents in the sidebar. Under Create New Agent, pick From Scratch or one of the built-in patterns (ReAct Agent, Chain of Thought, Self-Reflection, Supervisor and others). The pattern gives you a graph that is already wired up, and you can change all of it.

Layout​

  • Components (left): the node palette, with a search box. Drag a node onto the graph to add it. See the Node reference.
  • Graph (middle): connect a node by dragging from its output handle to another node's input handle. The graph's dependency order decides the order of execution. The order you added nodes in doesn't matter.
  • Config panel (right): click a node to open its settings. The Behavior section changes with the node type. Delete node is at the bottom.

If you can only view the agent (for example, as a team viewer), the toolbar shows View only. The palette is hidden and nothing can be moved or connected.

The toolbar​

ControlWhat it does
Agents (back arrow)Back to Workspace → Agents
Agent nameClick it to rename the agent
BuildThe normal editing view
ReviewOpens the review panel. A badge counts the problems found.
RulesOpens the full rules editor. See Agent rules.
TestsOpens the agent's test suites. See Test suites.
TestSaves, then opens the test runner.
SettingsPublishing, API access, API keys and sharing
⋯Export JSON and Import JSON
Save buttonShows Saved, Saving… or Save changes

Saving​

The editor only writes to the agent when you save. To save, click Save changes or press ⌘S (Ctrl+S on Windows and Linux).

Saving changes the agent right away. The next run uses what you saved, whether it comes from chat, the test runner or the API, and even if the agent is published. Saving doesn't create a version, though. Versions are snapshots taken when you publish. See Versions. Each save also re-runs the free static security check.

Import JSON replaces the whole canvas with the file you pick. First it asks you to confirm with Replace canvas. Nothing is saved until you save.

Unsaved changes​

If you leave the editor with unsaved changes through Agents, Rules, Tests or Settings, a Save your changes? dialog asks what to do:

  • Keep editing stays on the canvas.
  • Discard leaves and throws the changes away.
  • Save and leave saves first, then goes.

If you close the tab or reload, the browser shows its own warning.

Test never asks, because it always saves before it opens the runner. That way the test runs the graph you see on screen.

Review before testing​

Review checks the graph for problems that would break a run:

  • Errors block testing: no Input or Output node, no path from Input to Output, a node that isn't connected, an Agent node without a model or system prompt, a Tool or MCP Tool node without a tool, or arguments that aren't valid JSON.
  • Warnings don't block testing: an Agent node without a role, or an Input node without a description.

Click an issue to select its node and jump to the field that needs fixing. While there are errors, the Test button is disabled and its tooltip says how many issues to fix.

Testing from the canvas​

Test opens the Testing Environment:

  1. Type an input under Input, as JSON or plain text.
  2. Click Run Test. To stop a test that's running, click Cancel.
  3. Follow the Execution Trace step by step: each node's status and output, and the error if one fails.
  4. Under Output, read Duration, Tokens, Cost and Steps, plus the Final Result.

If the agent has a Memory node, the input panel becomes a Conversation. Each message is a new turn in the same session. Click New conversation to start over.

Test runs are real runs. They use the same engine as runs from chat and the API, and they're charged the same way. See Runs.

How chat and the canvas fit together​

Chat and the canvas edit the same agent:

  • A build from chat creates the graph that you then open in the editor.
  • A change you ask for in chat arrives as a proposal card. Once you approve it, it's part of the saved agent.
  • What you save in the editor is what the next run from chat uses, and what the panel's Canvas tab shows.
  • A run uses the graph as it was when the run started. Saving while a run is in progress doesn't change that run.