https://retellai.com/?utm_source=discord&utm_medium=seo logo
a
@AI Evy 1.Can we start publishing our workflows in Retell so that it maintains version control. 2.Will the agent always use the published version (or the version we set up) so that we can make changes and test newer versions without affecting the live version.
a
Thanks for tagging me @afrah_85175. I'll look through relevant sources and get back to you shortly.
### 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:
Copy code
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 .
​ To learn more, see the sources I considered: [[1] Setup versioning for agents](https://docs.retellai.com/agent/version) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.