Skip to main content

Versions and rollback

A version is a snapshot of an agent, taken when you publish it. It holds the canvas (nodes, connections and their settings), the configuration and the active rules. Versions are numbered v1, v2, and so on. They let you see what changed between releases and go back to an earlier one.

What creates a version​

Publishing creates a version. You can publish from:

  • Publish vN in the agent panel's Deploy tab;
  • Publish vN on the Draft card in the Versions tab;
  • Publish in the header of a draft agent's conversation, or by asking chat Publish it as an API. Both go through a proposal card that needs a verified email;
  • the API: POST /api/v1/agents/{id}/publish with {"published": true}. See the REST API reference.

Some things don't create a version:

  • Saving in the canvas editor, adding or removing a rule, or approving a change in chat. Those update the agent right away, but they aren't snapshotted until you publish.
  • Publishing again with nothing changed. That reuses the last version.

Rolling back a published agent republishes it, so it creates a new version.

In a team workspace, publishing can require a passing security scan or passing tests first. See Security scanning and Test suites.

Draft and live​

LabelMeaning
DraftThe agent's current setup differs from the last version, or the agent has never been published. Shown with the number it will get, such as v3.
LiveThe latest version, while the agent is published
(none)An earlier version

:::note Which version runs Chat, the canvas and test runs use the agent as it is saved now, so draft changes are what they run. API calls run the published version: the latest version, with its rules. Draft changes reach API callers only when you publish again. An agent published before versions were recorded runs its current setup over the API too. :::

To take an agent offline, click Unpublish in the Deploy tab. Its versions are kept.

The Versions tab​

Open the agent panel and click Versions. Versions are listed newest first. Each card shows:

  • the version number, its label, the author and the date;
  • Rules: rules added (+) and removed (−) compared with the version before;
  • Nodes: nodes added (+), removed (−) and changed (~). A changed node lists the settings that changed, for example ~ agentNode Classifier: model, systemPrompt;
  • the effect: how many runs used that version, the share that succeeded, and the average credits per run.

A version with no differences says No changes. The Draft card's diff compares the current setup with the last version.

Rolling back from chat​

To go back, ask in the agent's conversation:

go back to version 1

roll back to v1 and revert to v1 work too. Outside the agent's conversation, include the agent's name in the message. Don't @mention the agent: an @mention runs it. You can only roll back to a published version.

Before anything changes, a Rollback card shows the effect:

FieldWhat it shows
Live nowThe current version, or "not published"
AfterThe version you're going back to, and its date
ChangesWhat would change: rules added or removed, nodes added, removed or changed
Cost per runAverage credits per run on that version, from its recorded runs
EndpointFor a published agent: unchanged
Runs in progressFinish on the version they started with

Click Roll back to v1 to apply it, or Discard. You can also reply with changes.

When you approve:

  • The canvas, configuration and rules of that version become the agent's current setup.
  • A published agent is published again, as a new version with a higher number and v1's setup. History is never rewritten.
  • A draft agent gets that version's setup back as its draft.
  • Runs already in progress keep the graph they started with.