### Answer
The "Failed to update agent, please try again" error can occur for several reasons based on the available information [(1) ](
) [(2) ](
) :
Common Causes:
1.
Token Limit Exceeded - If your prompt exceeds the token limit (previously 4096 tokens) , you'll get this error [(1) ](
) . The token limit has been increased, but very long prompts can still cause issues .
2.
System Bugs - There have been instances where this was caused by temporary platform bugs that were resolved by the Retell AI team [(2) ](
) .
3.
Configuration Issues - Similar errors have been reported when assigning agents to phone numbers or updating agent configurations [(3) ](
) [(2) ](
) .
Troubleshooting Steps:
1.
Check your prompt length - If you're using multi-state configurations, ensure individual state prompts aren't too long [(1) ](
) .
2.
Try again later - If it's a temporary system issue, waiting 30 minutes often resolves the problem [(1) ](
) [(2) ](
) .
3.
Verify your configuration - Ensure all required fields are properly formatted when updating the agent [(4) ](
) [(5) ](
) [(6) ](