Agents

Test and publish an agent

Changes to an agent save to a draft. People keep chatting with the published version until you publish the draft.

DraftPublished version
What it isThe agent as it is in the editor right now. Saved automatically after every change.A numbered, frozen copy: v1, v2 and so on.
Who uses itOnly you and other editors, in the editor's Test tab.Everyone: chat, Slack, scheduled tasks, workflows, apps, other agents and the API.
Where you see itThe editor header reads Saved draft; the agent's card shows Draft.The editor header reads Published; the card shows the version number.

The Month-End Close Assistant card at v1 with a Draft badge, and its tooltip: Some changes were never published: Name & description. Chats keep using the published version.

Create a draft

  1. Select Agents in the sidebar, then New > New agent. The editor opens on a new draft called Untitled agent, marked Not published.

    The editor for a new agent: Create agent, Untitled agent, Not published, with Saved draft and Publish at the top right and the Build tab open beside the form

  2. Fill in the agent's settings. See Configure an agent, or let Agent Builder fill them in with you: Build an agent by chatting.

  • The draft saves a moment after each change: Saving…, then Saved draft.

  • If you leave a new draft without changing anything, it is deleted.

  • Until its first publish, only the Test tab can run the agent:

    WhereWhat happens to a never-published agent
    ChatIt is not offered in the composer or in @ mentions. Its card's preview offers Publish instead of Start Chat to people who can publish.
    SchedulerIt cannot be picked for a scheduled task.
    Slack and TeamsIt is not offered.
    Other agentsIt cannot be called as a sub-agent.
    Workspace default agentIt is skipped, and new chats fall back to Alo.

Test the draft

  1. Select Test next to the form.

  2. Send a message the agent should handle well. The test runs on the draft as it is saved, with files, tools, apps and approvals working as in a normal chat.

    The Test tab next to the Prompt pane of Supplier Onboarding Reviewer, with a test question about a new supplier and the draft's checklist answer

  3. Change the settings and test again. Your edits are saved before each test message.

Button at the top of the Test tabWhat it does
Test historyOpens an earlier test chat.
New testStarts a new test chat.
Expand the test chatWidens the test chat over the form; Back to the editor narrows it again.

Test chats are not listed with your other chats and cannot be shared. Testing needs permission to edit agents.

To test an agent on many cases at once, the same way every time, use Lab.

Publish

Publishing needs the publish permission: Editor and Admin have it by default, Member does not. Members can still edit and test drafts; someone with the permission publishes them.

  1. Select Publish at the top right.

  2. Under What changed, describe the change in one line of up to 72 characters. It is shown in the version history.

    The Publish version 1 window with What changed filled in as First version for the accounts payable team

  3. Select Publish. The Agents page opens on the agent's preview, now showing the new version.

Everyone using the agent gets the new version from their next message. Publish stays greyed out while there is nothing to publish: no draft changes and no Update available.

See what changed in the draft

Hover over Saved draft to see which parts changed since the published version: name and description, instructions, model, tools, sub-agents, skills, knowledge, connectors or other settings.

The Saved draft status with its tooltip: Saved as a draft. Changed since version 1: Name & description. Click to roll back to version 1.

Roll back unpublished changes

  1. Select Saved draft.
  2. Select Roll back.

The Roll back to version 2? window: the agent goes back to version 2, and changes made since then are lost for every editor

The draft goes back to the published version. Changes made since are lost for every editor, not only for you.

Versions

Select Versions next to the form to see every published version, newest first, with its note, who published it and when. The one people use is marked Live. Select a version to see what changed in it.

The Versions tab with v2, Checks that the VAT number is valid, marked Live and expanded to show the old and new description, and v1 below it

Versions appears once the agent has been published.

Re-publish or restore an earlier version

Open a version's … menu.

The menu of version 1 with Re-publish this version and Restore to draft

ActionWhat it does
Re-publish this versionMakes that version live again for everyone, from their next message. It is added to the history as a new version, and the draft is reset to it, discarding unpublished changes. Needs the publish permission; not offered on the Live version.
Restore to draftCopies that version's settings into the draft. Nothing goes live until you publish. Unpublished changes in the draft are replaced for every editor.

The Restore version 1 to the draft? window: the draft takes this version's settings and nothing goes live until you publish

  • A version keeps the content of the skills and prompt template it was published with. Re-publish this version brings that content back; Restore to draft brings back which skills are switched on, with their content of today.
  • Restoring brings back which files, folders and connections the agent used; their content and credentials are today's.
  • Skills, connections and models deleted since are left out, and the app lists what it could not bring back.

When a skill or prompt template changes

An agent keeps the skills and prompt template it was published with. When one of them changes or is deleted, the card shows Update available, and so does the editor for people who can publish. Chats keep using the published version until you test the draft and publish it.

The Expense Policy Advisor editor with an Update available note: Skill Expense Policy Check changed, chats keep using version 2 until you test the draft and publish it

Built-in agents from Alomana are the exception: Alomana publishes them again when their skills change.

Two people editing

If someone else changes the draft while you edit, Someone else changed this draft appears and your edits stop saving. Select Reload to see their changes, or Keep mine to overwrite them.

Troubleshooting

MessageWhat to do
Your plan has endedChanges cannot be saved, and building and testing are paused, until the workspace has an active plan. Select See plans.
Not saved next to PublishThe last change could not be saved. Fix what the error message names, then edit again.
Save the draft before publishing itThe draft has an unsaved change. Wait for Saved draft, then publish.

To publish versions with an API key, see Create and configure an agent in the API documentation.

On this page