### Answer
Yes, Retell AI supports version control for agents with the exact functionality you're looking for.
1. Publishing Workflows with Version Control
You can generate new versions of your agent by clicking the "Deployment" button in the upper right corner of the agent page [(1) ](
) . This creates a new version of both the agent and the corresponding retell_llm or conversation flow . Versioning serves two main purposes: to lock in configuration (published versions cannot be changed) and provide version control & history .
2. Version Isolation for Testing
Yes, agents will use the specific version you assign to them, allowing you to safely test new versions without affecting live production calls . Published versions cannot be changed, and you can specify a particular version to use for a phone number to lock in the agent configuration .
You can attach phone numbers to specific versions via the "Phone Numbers" tab in the dashboard . If you select
Draft
, it will always fetch the latest version of the agent .
Using Version Numbers Programmatically
You can specify version numbers in API calls:
javascript
get_agent(version=2) ///# Gets the version with version number 2.
get_agent() ///# Gets the latest version of the agent.
The version number is a monotonically increasing integer, starting from
0
for the initial published version . You can view old versions by clicking the Clock icon in the upper right corner of the agent page to see all versions .