https://retellai.com/?utm_source=discord&utm_medium=seo logo
why does the agent sometimes loop when I have a gl...
# ❓・ai-evy-support
m
@AI Evy why does the agent sometimes loop when I have a global node and a transition to a function? how can I fix/prevent these loops?
a
Thanks for tagging me @mayarapalma. I'll look through relevant sources and get back to you shortly.
8630841602078) . ## Current Status The Retell team has acknowledged this issue and mentioned implementing "some changes regarding disable global node on split logic" . Some users have reported the issue being resolved in their test agents. If you continue experiencing loops, document the specific call IDs where this occurs and consider reaching out to support with those examples, as the team has been actively working on fixes for this issue.
### Answer Agent looping with global nodes is a known issue that has been reported by multiple users [(1) ]() . Based on the available documentation and community reports, here's what causes the loops and how to address them: ## What Causes the Loops Global nodes can transition from anywhere in your conversation flow since they handle universal scenarios [(2) ]() . The looping occurs when the transition logic becomes confused, particularly when global nodes interact with function nodes or split logic nodes [(1) ]() . According to community reports, one user found that "the split node goes back to the global node" causing the loop behavior . This suggests the issue happens when the flow transitions to a global node and then attempts to return to the main conversation path. ## How to Fix/Prevent Loops 1. Add Transition Fine-tune Examples The Retell team has suggested adding transition fine-tune examples to help clarify confusing transitions . You can add these examples to improve how the model handles transitions between your global node and function nodes. 2. Review Your Transition Conditions Ensure your transition conditions are clear and specific [(3) ]() . Since equation conditions are evaluated first, then prompt conditions, make sure your conditions don't create ambiguous paths that could cause the agent to repeatedly trigger the same global node. 3. Avoid Complex Logic After Global Nodes Based on the reported issues, be cautious when connecting global nodes directly to split logic nodes or complex function sequences [(1) ](
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Conversation Flow Node Looping](https://discord.com/channels/1186424376300679209/1372978630841602078) [[2] Global Node](https://docs.retellai.com/build/conversation-flow/global-node) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​