https://retellai.com/?utm_source=discord&utm_medium=seo logo
Whenever I try to debug a response by using the re...
# ❓・ai-evy-support
g
@AI Evy Whenever I try to debug a response by using the regenerate 10 answers feature while testing chat, I get this error "Error: Invalid current state". What could be the reason for this error.
a
Thanks for tagging me @Goopa Snoops. I'll look through relevant sources and get back to you shortly.
### Answer The "Invalid current state" error has been reported by other users in the community, particularly when working with multi-state agents or conversation flows. [(1) ]() Based on community reports, this error typically occurs when: - The session state isn't compatible between transitions (e.g., during agent transfers or state changes) - The conversation flow transitions aren't clearly defined [(2) ]() Suggested troubleshooting steps: 1. Try switching to a different LLM model — Users have reported success switching between models like GPT-4.1, GPT-5, or GPT-5.1 [(3) ]() , [(1) ]() 2. Check your state/node transitions — Make sure you have clearly defined when to transition between states in your prompt [(2) ]() 3. Review your conversation flow setup — If using a multi-state agent, ensure the node handles inputs and transitions correctly [(4) ]() This issue has been reported to the Retell team previously. [(1) ]() If the problem persists after trying these steps, I'd recommend creating a support ticket with your agent ID and steps to reproduce the issue so the team can investigate further. Check out these potentially useful sources: - [Debug your agent response]() - [Platform Changelogs | Retell AI]()
​ To learn more, see the sources I considered: [[1] Failed to get LLM responseError: Invalid current state](https://discord.com/channels/1186424376300679209/1449627142978670785) [[2] Discord message from @masanovets on 2024-11-15](https://discord.com/channels/1186424376300679209/1186462578310910112/1306965480518713375) [[3] Failed to get LLM responseError: Invalid message role received: state_transition](https://discord.com/channels/1186424376300679209/1412570376776716419) [[4] Discord message from @aidevstudio_24902 on 2025-12-20](https://discord.com/channels/1186424376300679209/1186462578310910112/1451820007376949438) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.