https://retellai.com/?utm_source=discord&utm_medium=seo logo
Failed to get LLM responseError: Invalid current s...
# general
k
Failed to get LLM response Error: Invalid current state i ahve tried different openai llm's but still getting the same thing when i do a agent transfer. tried 4.1, 5, and 5.1 both work on thier own when tested. But i can not have one agent transfer to the other. agent_85ee185f02b7341378503c883c @support_29992 @AI Evy @Support anyone that could help please
a
Thanks for tagging me @kywilber. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Failed to get LLM responseError: Invalid message role received: state_transition](https://discord.com/channels/1186424376300679209/1412570376776716419) [[2] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) ​
### Answer The "Invalid current state" error during Agent Transfer appears similar to a known issue that was reported and fixed by the Retell team. [(1) ]() Troubleshooting steps: 1. Verify Agent Transfer Tool Configuration - Ensure you've properly configured the Agent Transfer tool with the correct transfer agent ID and version. [(2) ]() 2. Update Your Prompt - Make sure your prompt includes clear instructions for when to trigger the agent transfer, such as:
"If the user asks to book an appointment, use the agent_transfer tool to transfer to the Appointment Agent."
3. Test in Playground - You can test agent transfer both in web call and playground to isolate the issue. 4. Check Transfer Settings - Note that certain settings from the first agent persist throughout the call (optInSignedUrl, optOutSensitiveDataStorage, webHookUrl) , while others like language, voice, and voiceModel will reflect the currently active agent. Since this appears to be a state-related error similar to what was previously reported and fixed, I'd recommend reaching out to Retell support with your agent ID (
agent_85ee185f02b7341378503c883c
) and steps to reproduce the issue. The team was able to resolve a similar "Invalid message role received: state_transition" error for another user. [(1) ]() You can contact support at [Contact Sales]() or check the [Retell GitHub]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.