---
docId: doc_308228ddbfe941fea45953bbd1139c63
title: Agents, drafts and versions
description: Configure an agent, save changes in its draft and choose when to publish them.
---

# 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.

<span id="change-it-safely"></span>

## 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.

```mermaid
flowchart LR
  E[Edit] --> D[Draft v3]
  D -- publish --> P[Published v3]
  P -- rollback --> O[Published v2]
  V[Older version] -- restore --> D
```

| 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](/guides/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](/guides/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](/guides/create-an-agent) and [Versions](/guides/versions): the task-by-task guides.
- [Agents](/api-reference/agents) and the [agent configuration](/api-reference/agents/configuration): every field and endpoint.
- [Knowledge](/concepts/knowledge) and [Tools](/concepts/tools): what you connect to an agent.
