https://retellai.com/?utm_source=discord&utm_medium=seo logo
If I want to make changes to an already published ...
# ❓・ai-evy-support
t
@AI Evy If I want to make changes to an already published and live Retell chatbot, do I hav eto publish a new version when making changes?
a
Thanks for tagging me @Tubussie. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you need to publish a new version when making changes to a live Retell chatbot. [(1) ]() When you publish a chat agent, it publishes the latest version and creates a new draft version for further edits. Here's how the workflow works: - Published version is what's live and serving users [(2) ]() - Draft version (
is_published: false
) is where you make your changes - Once you're ready, you publish again to make your draft changes live [(1) ]() For Conversation Flow agents specifically, when you publish: - The published version snapshots any shared Components as local copies to protect production behavior [(3) ]() - Your draft stays linked to shared Components so you can keep iterating - Publish again when you want to promote the latest changes to production You can update your draft chat agent using the Update Chat Agent API endpoint before publishing:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatAgentResponse = await client.chatAgent.update('16b980523634a6dc504898cda492e939') ;
console.log(chatAgentResponse.agent_id) ;
[(4) ]() Then publish when ready:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
await client.chatAgent.publish('16b980523634a6dc504898cda492e939') ;
[(1) ]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.