https://retellai.com/?utm_source=discord&utm_medium=seo logo
why am I getting failed to deply agent when trying...
# ❓・ai-evy-support
c
@AI Evy why am I getting failed to deply agent when trying to save?
a
Thanks for tagging me @clientele3617. I'll look through relevant sources and get back to you shortly.
### Answer The "failed to deploy agent" error when saving typically occurs due to JSON formatting issues [(1) ]() . Based on community reports, this commonly happens with imported agents that may have incorrect JSON format . To resolve this issue: 1. Check your JSON format - Use a JSON validator to ensure your payload is properly formatted 2. Verify required fields - Your JSON should include these essential fields : -
"llm_id": "..."
-
"version": 0
-
"general_prompt": "..."
-
"general_tools": [...]
-
"states": [...]
-
"starting_state": "..."
-
"last_modification_timestamp": 170...
3. Consider rebuilding from scratch - If you imported the agent, try creating a new one from the ground up, as imported agents often have JSON formatting issues The deployment process in Retell AI creates new versions when you click the "Deployment" button, which generates a new version of the agent and corresponding retell_llm or conversation flow [(2) ]() . If the issue persists after validating your JSON format, you may need to contact support for further assistance.
​ To learn more, see the sources I considered: [[1] Request failed with status code 400](https://discord.com/channels/1186424376300679209/1379532913703391384) [[2] 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.
c
this is not an imported agent but an agent created within the app.
@AI Evy this is not an imported agent but an agent created within the app.
a
Thanks for the follow-up, @clientele3617. I'll get back to you soon.
### Answer [(1) ]() , [(2) ]() , [(3) ]() For agents created within the Retell AI dashboard, deployment failures can occur due to several reasons [(2) ]() [(3) ]() . Based on documented issues, here are common causes and solutions: Common Causes: - Transfer phone numbers that are down or unreachable can prevent agent publishing [(3) ]() - Deprecated TTS providers (like Play TTS) can block deployment - Internal server errors that may be temporary [(2) ]() Troubleshooting Steps: 1. Check transfer numbers - If your agent has transfer functionality, ensure the destination phone number is active and reachable [(3) ]() 2. Update TTS settings - Switch from deprecated TTS providers to supported ones like Retell's native voices or other supported options 3. Retry the operation - Sometimes deployment failures are temporary; retrying the exact same operation may work [(2) ]() 4. Verify agent configuration - Ensure all required fields are properly configured in the dashboard Deployment Process: When you click the "Deployment" button in the upper right corner of the agent page, it creates a new version of the agent and corresponding retell_llm or conversation flow [(1) ]() . Published versions cannot be changed, and only the latest v
ersion can be modified . If the issue persists after checking these items, it may be a temporary platform issue that resolves on retry [(2) ]() .
​ To learn more, see the sources I considered: [[1] Setup versioning for agents](https://docs.retellai.com/agent/version) [[2] Cannot deploy new agent version though web interface / API](https://discord.com/channels/1186424376300679209/1369013503154847889) [[3] Error Publishing Agent](https://discord.com/channels/1186424376300679209/1387459559404208208) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy in the phone number section I cannot change agents I get Failed to update agent, please try again.
a
Thanks for the follow-up, @clientele3617. I'll get back to you soon.
### Answer Based on the sources, the "Failed to update agent" error when trying to change agents in the phone number section appears to be a known issue [(1) ]() . According to community reports, this is typically a temporary issue that can be resolved by trying again after a few minutes . Additional troubleshooting steps from the community include [(2) ]() : - Ensure you have added a webhook URL if required for your agent configuration - Try using a different browser if the error persists The Update Agent API endpoint uses a PATCH request to
/update-agent/{agent_id}
and requires proper authentication with your API key in the format "Bearer YOUR_API_KEY" [(3) ]() . If you're experiencing persistent issues, the error may be related to: - Missing required configuration fields - Temporary server issues - Browser-specific problems If the issue continues after waiting a few minutes and trying a different browser, you may need to contact support for further assistance. For support with this issue, you can: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] Failed to Update agent](https://discord.com/channels/1186424376300679209/1384538386676846727) [[2] Discord message from @sanava.ai on 2024-12-02](https://discord.com/channels/1186424376300679209/1186462578310910112/1313213905496969216) [[3] Update Agent](https://docs.retellai.com/api-references/update-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.