### 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) ](
)