https://retellai.com/?utm_source=discord&utm_medium=seo logo
, i'm trying to change the prompt while agent was ...
# ❓・ai-evy-support
s
@AI Evy , i'm trying to change the prompt while agent was deployed and i get an error messgae - "cannot update publish llm retell ai" how should i proceed?
a
Thanks for tagging me @smartbizznes_88831. I'll look through relevant sources and get back to you shortly.
### Answer You're getting that error because published versions cannot be changed. [(1) ]() Once an agent version is published, the configuration is locked. Here's how to proceed: Option 1: Create a new LLM and update the agent 1. Create a new Retell LLM with your updated prompt using the Create Retell LLM endpoint [(2) ]() 2. Update your agent to use the new LLM ID via the agent update endpoint [(3) ]() Option 2: Use the Draft version Set your phone number to use the "Draft" version of the agent instead of a specific published version. [(4) ]() This way, any changes you make through the API or dashboard will take effect immediately without needing to publish. To set this up, go to the Phone Numbers tab in the dashboard and configure your phone number to use the Draft version. After this, when you update the LLM's
general_prompt
via API, the agent will automatically use the updated prompt. The Draft version always fetches the latest version of the agent. [(1) ]()
​ To learn more, see the sources I considered: [[1] Setup versioning for agents](https://docs.retellai.com/agent/version) [[2] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[3] Discord message from @userrk1329 on 2025-08-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1405073658904444969) [[4] Discord message from @userrk1329 on 2025-08-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1405220586338390186) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.