Agents, drafts and versions
An agent replies to your customers using instructions, an AI model and safety rules (guardrails). You can configure working hours, human assistance and subagents, and connect knowledge, tools and channels.
Draft and published version
Save changes in the draft and publish them when you want the agent to use them:
- The draft is the version you edit. Each saved change creates a fixed version and moves the draft to it. Your customers do not see it.
- The publication is the version that answers your customers. It changes only when you publish or roll back.
| You do | What changes |
|---|---|
| Edit the draft | The draft. The publication stays as it is. |
| Restore a version | The draft. The publication stays as it is. |
| Publish | The publication. |
| Roll back | The publication. The draft stays as it is. |
When you create an agent, version 1 is already published. Versions are kept unchanged so you can return to an earlier one.
What is versioned and what is not
- Versioned (applies when you publish): the configuration. That means instructions, model, guardrails, follow-up, working hours, human assistance and subagents.
- Live (applies right away, no version): the name, photo, status and owners, the knowledge and tools connected to the agent, and the channels that route to it.
- Human assistance is the set of rules that tells the agent when to pass a conversation to your team. See Human handoff. The shortcut to connect or disconnect a rule creates and publishes a version. If the draft has unpublished changes, it fails with
409 DRAFT_PENDING.
Test before you publish
Use evals to test draft replies before publishing. Each scenario defines a conversation and the expected result. Read Evals.
Subagents
An agent can delegate to other agents, called subagents, that you link in its configuration. Each subagent is an agent of its own, with its own draft and versions.
Where to go next
- Create your first agent and Versions: the task-by-task guides.
- Agents and the agent configuration: every field and endpoint.
- Knowledge and Tools: what you connect to an agent.