Agents
What an agent is, how you change one safely, and how a change reaches live callers.
An agent is a voice persona you configure once and run on every call: its instructions, its voice, the tools it can use, and the limits it works inside.
Create one under Agents → New agent. An agent starts as little as this:
{
"slug": "claims_intake",
"name": "Claims intake",
"mode": "prompt",
"prompt": "Collect first-notice-of-loss details."
}The slug is permanent — pick it carefully. The name you can change any time.
Over the API: POST /v1/agents.
Draft, staging, production
Every agent has one editable draft and a history of numbered versions. A version never changes once it exists, and callers only ever reach a deployed one.
Edit the draft
Change anything you like. Nothing live is affected, and there's no limit on how often you save.
Over the API:
PATCH /v1/agents/{id}/draft.
Promote to staging
Promoting freezes the draft as a numbered version and points staging at it. Staging is a real, callable target — you can dial it.
Over the API:
POST /v1/agents/{id}/promote-staging.
Deploy
Deploying points production at the staged version. Callers get it on the next call that starts.
Over the API:
POST /v1/agents/{id}/deploy.
Calls in progress keep the version they started with, so a deploy never changes a conversation already underway.
Promoting and deploying are separate permissions, which is the point: an integration can prepare changes without publishing them, and a reviewer can hold the gate.
Rolling back
Point staging at any earlier version and deploy it again. There's no special rollback mode — going back is the same two steps as going forward.
Cloning an agent
Open the agent and choose Clone agent. Pick Draft, Staging, or
Production from the versions available. The name starts with the original
name and an _clone suffix. Edit the name and slug, then choose Clone agent.
The new agent opens with one editable draft containing the selected version's prompt or workflow, model and voice settings, behavior, and after-call configuration. Shared resources such as tools and webhooks keep their existing IDs. The clone starts without deployments, phone assignments, or call and version history. Its first promotion creates version 1.
Use clone_agent in MCP or call
POST /v1/agents/{id}/clone with
name, slug, and source set to draft, staging, or production.
The API requires agents:read and agents:create.
Editing settings
Everything about an agent is edited on the draft. The settings are grouped, and each group has its own page:
| Page | What it covers |
|---|---|
| Instructions & variables | The prompt, and the call-specific values it can reference |
| Speech & turn-taking | Models, voice, transcription, when the agent takes its turn |
| Voices & models | The catalog you pick models and voices from |
| Conversation behavior | Greeting, quiet callers, call limits, memory |
| Transfers & call actions | Transfers, callbacks, keypad input, hanging up |
| Guardrails | What the agent must and must not say |
| Pronunciation | How it says your brand names and codes |
A draft patch is partial at the top level: fields you leave out keep their
values. The behavior object is the exception — send it whole, because it
replaces the stored one.
Before you promote: check the prompt isn't too big
Your prompt and tool schemas occupy the model's context on every call. If they take up too much of it, promotion is refused.
Check it first with
POST /v1/agents/{id}/estimate-baseline —
an empty body estimates the current draft.
The response splits the cost between your instructions and your tool definitions, so you know which to trim, and gives you the budget to stay under. Trimming tools usually wins more room than trimming prose.
Archiving
Archiving an agent takes it out of use but keeps its history: past calls, versions, and audit records stay readable, and the slug stays reserved.
Over the API:
DELETE /v1/agents/{id}.