Skip to content

Drafts and publishing

By default, every change you make to an agent reaches all of its channels as soon as it’s saved. Turn on versioning to work in a draft instead: your users keep talking to the published version until you publish the draft, and every release is kept so you can go back to it.

Versioning is set per agent. Agents that never turn it on behave exactly as before.

On the agent page or the canvas, select Enable versioning at the top, or the same link in the banner that explains that changes go live as you make them. Enable versioning? explains what happens; select Enable versioning to confirm. You can also turn it on from the editor’s Advanced tab, with Turn on versioning.

The configuration running at that moment becomes version 1, so you always have a starting point to return to. From then on your edits save to the draft, and the top of the page shows:

  • Draft and Published (vN), to switch between the draft you edit and a read-only view of what is live.
  • Test draft, to try the draft.
  • Publish…, to review and publish it.

You need the agents.publish permission to turn versioning on or off, publish, approve, and restore. Editing and testing the draft only need agents.edit. See Users and roles.

The draft covers the agent’s behaviour:

  • System prompt
  • Model settings, including the Web chat, CLI, Google Chat and A2A switches
  • Agent type and initial memory
  • Knowledge bases, tools, built-in tools, MCP servers, sub-agents and skills

Everything else applies as soon as it’s saved, with or without versioning: the name, description, group and tags, channel credentials, and the Telegram and Slack switches. The editor marks them Applies immediately. Rolling back last week’s prompt never rolls back a bot token you rotated yesterday.

There is one version for all channels. You can’t publish a change to web chat only.

What a deep agent learns as it works is not part of the draft: it changes the agent’s memory live, for every channel. Each change is kept and can be reverted. See What the agent learned.

Changes made by the Agent Builder are not staged: they apply to the live agent directly, even with versioning on.

Select Test draft at the top of the agent page or the canvas. A test chat opens beside the editor and talks to the draft, while every channel keeps serving the published version. Without versioning, or in the Published view, the button reads Test and talks to what is live. The chat’s header says which one: Testing the draft or Testing what is live.

  • It runs the whole draft: its instructions, model settings, agent type, tools, knowledge, MCP servers, sub-agents and skills. An imported agent that was never published can be tested too.
  • It shows a reply the way web chat does: a deep agent’s plan, tool calls and where they ran, sub-agents, reasoning, web searches, knowledge base sources, and the files it made. The ring in the header shows how full the conversation is.
  • It starts fresh each time you open it. If you change the agent while chatting, the next reply comes from the new configuration, and the chat says so: “The draft changed. Replies above came from the previous version, and the agent still sees them.” To start over, select Clear chat and reset agent.
  • It asks before commands as web chat does, but offers only Allow once and Allow for this chat, so a test never leaves a standing approval behind.
  • It never changes the agent’s memory. What a deep agent writes to its memory during a test is dropped with the test.
  • It costs real tokens. Test messages count toward the workspace’s spend, and they appear in Conversations like any other conversation in the console. They’re never sampled for online evaluation.

The test chat has no attachments, dev mode, plan mode or /compact, and it isn’t kept: closing it ends a reply still being written. For those, publish and use web chat.

The play button on the agent’s card on Agents (Chat in web chat, or Test agent for an agent without web chat) talks to the published agent, not the draft.

  1. Select Publish…. Publish “name” as vN lists every change in the draft, one row per field or resource, marked as added, changed or removed. Select View changes on a row to compare the draft line by line with what is live.

  2. Check the evaluation. The dialog shows the agent’s Draft evaluation or Last evaluation with its pass rate, and warns when it was Run on what is live, not on this draft or Run on an older draft. To evaluate this draft now, choose a dataset and select Run evaluation. The agent is not modified. See Evaluations.

  3. Check Tested by you: how many messages you sent in Test draft on this version of the draft, and how many others sent. If you haven’t tested it, Test draft opens the test chat.

  4. Optionally, describe the change in Version note. The note is kept in the version history.

  5. Select Publish. The draft goes live on every channel as a new version. Keep editing closes the dialog without publishing.

On the canvas, the draft’s changes are marked as you work: the agent node shows how many changes are waiting, a resource attached in the draft reads New in draft, and one detached in the draft stays on the canvas as Removed on publish until you publish.

To throw the draft away instead, open the Advanced tab and select the trash icon next to Publish. The agent returns to what is live.

Without agents.publish, the dialog shows the review, but Publish is disabled and says so.

A draft evaluation runs the whole draft, exactly as Test draft does: instructions, model settings, tools, knowledge, MCP servers, sub-agents, skills and agent type. It measures the draft as it was when the run was queued, even if someone edits it before the run starts. The agent is not modified.

Two optional rules sit in the editor’s Advanced tab, under Versioning and publishing.

Setting What it does
Someone else has to approve a publish Publish becomes Request approval (Request review in the Advanced tab). The draft goes live only when another person with agents.publish approves it.
Refuse to publish below … % on its last evaluation Publishing is refused when the agent’s most recent evaluation scored below this pass rate. Leave it empty for no bar.

When a publish falls below the bar, the dialog reads Held by this agent’s quality bar with the reason. Someone with agents.publish can select Publish anyway.

When approval is required, the top of the agent page and the canvas shows Waiting for approval. Select it to see the request, with its note and when it was asked.

  • A reviewer selects Approve and publish or Reject. Rejecting leaves the draft untouched.
  • You cannot approve your own request.
  • Approving publishes exactly what was reviewed, even if the draft changed after the request was made.
  • A new request replaces the open one. Select Withdraw to cancel a request.

Open Version history in the publish dialog, or History in the Advanced tab, to see every published version with its date, its evaluation score, and its note. The version your users are getting is marked live.

To go back, select Restore on an earlier version. It goes live immediately as a new version at the top of the history, so the record of what happened is never rewritten.

After you confirm the restore, VirtuAI asks whether to also put the agent’s memory back as it was when that version was published, which matters for a deep agent. Select OK to restore the memory too, or Cancel to keep what the agent learned since. Restoring the memory is added to the memory’s history as a new change, so it can be undone. See What the agent learned.

Restoring skips both the approval step and the pass-rate bar. A bad release is live, and retreating from it should not wait.

In the Advanced tab, select Turn versioning off. Any pending draft is published first, and from then on changes go live as soon as they’re saved again.