Documentation Index
Fetch the complete documentation index at: https://polyai-mintlify-6ed25dba.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Two environments on Agent Builder: Sandbox, where your changes land for testing, and Live, where real callers reach your agent. You publish a version into Sandbox, test it, then promote it to Live when you’re happy.
Once published, the version becomes your active Sandbox deployment. Find it under Deployments in the sidebar.

Once it’s Live, every new caller (via Web Calling, the shareable link, or anywhere else you’ve placed the agent) hits the promoted version immediately.
Tracking changes →
Publish a draft to Sandbox
Whenever you make changes (via Agent Builder or directly), a draft banner appears at the top of the page with two options:- Delete reverts to the most recent published version.
- Publish saves the draft as a version. Add a short description if you want a note for future you.

Test in Sandbox
Click Test in the top-right of any page to open the Agent Debugging panel. Choose Call agent or Webchat, pick Sandbox from the environment dropdown, and try the scenario you’re worried about. Every test call lands in Conversations with a transcript.If something looks off, the iterate-after-a-call flow walks through fixing it.Promote to Live
When the Sandbox version handles real scenarios properly, promote it.- Open Deployments in the sidebar.
- In the Sandbox tab, click the overflow menu (three dots) next to the version.
- Select Promote to Live.
- Tick the confirmation box and click Promote.


Roll back
If a Live version is causing problems, roll back.- Open Deployments > Live in the sidebar.
- Open the overflow menu on the version you want to roll back.
- Click Rollback, then confirm.
Compare versions
Side-by-side diffs let you check what changed between two versions before you promote. Open Deployments or Project History, select a version, and click Compare. Sorting is newest-first.
Test agent changes before they reach live callers. Draft → Sandbox → Pre-release → Live.
Once published, the version becomes your active deployment
and you can access it from Deployments > Environments in the sidebar.



New to environments? Start with the Environments tutorial for a hands-on introduction. For detailed workflows and best practices, see Version management.
Creating a version
A version is created whenever changes are made to an agent. A draft banner appears at the top of the page, allowing you to:- Delete: Revert to the most recent published version.
- Publish: Save the draft as a version, optionally adding a description highlighting changes made and any notes for future collaborators.


Promoting a version
Promotion moves a version from one environment to the next. The environments include Sandbox, , and .Pre-release
Staging environment for user acceptance testing (UAT).- Go to Deployments > Environments in the sidebar.
- Click the Options Menu next to the desired version.
- Select Promote to Pre-release.
Live
Production. Changes affect all active calls immediately.- Go to the Pre-release tab in Deployments > Environments.
- Click the overflow menu (three vertical dots) next to the version.
- Select Promote to Live.
- Confirm your selection by checking the box and clicking Promote.
- Confirm
- Complete

Comparing versions and environments
Before promoting changes, you can compare versions across environments using a side-by-side diff view.- Go to the Deployments section and open Environments or Project History.
- Select a version and click Compare to view differences between Sandbox, Pre-release, and Live.
- Versions appear in reverse chronological order (newest first) for easier navigation.
Rolling back to a previous version
Roll back to a previous version if needed:- Go to Deployments > Environments in the sidebar.
- Select the Options Menu for the desired version.
- Click Rollback.
- Confirm the rollback.
- Initiate
- Confirm

Testing your agent
Main page: Quickstart: test your agentTest your agent in any environment:- Click the Play Chat icon in the top-right corner of the screen.
- Select the environment containing the version you want to test.
Assigning phone numbers
Each environment can have its own phone number. To assign:- Go to Configure > Numbers in the sidebar.

Automate with the Agents API
The same pipeline is available programmatically, which is useful for wiring deployments into CI or orchestrating releases across many agents.Deploy via the Agents API
Deploy via the Agents API
The Agents API exposes publish, promote, and rollback as the CI-friendly equivalents of the UI actions above.
Related pages
Compare versions
Side-by-side diff of any two versions before promoting.
Project history
Audit trail of all published versions and changes.
Test suite
Run regression tests against Draft or Sandbox.
Deployments endpoints
Publish, promote, and rollback from the Agents API.



