https://retellai.com/?utm_source=discord&utm_medium=seo logo
the simulation keeps getting into loopback errors,...
# ❓・ai-evy-support
k
@AI Evy the simulation keeps getting into loopback errors, how to fix?
a
Thanks for tagging me @kakashi1412. I'll look through relevant sources and get back to you shortly.
### Answer Based on the sources, there are several ways to address ConversationLoopError issues in Retell AI simulations: Try Batch Testing as a Workaround Batch testing skips the loop detection, allowing you to test your full conversation flow without getting cut off early [(1) ]() . You can find this under Simulation → LLM Simulation Testing → Batch test your agent in the Retell dashboard . Improve Your Agent's Prompting The loop error often occurs due to prompting issues where you need to be more specific with each case so the agent doesn't do unpredictable things [(2) ]() . To avoid getting flagged in live calls [(1) ]() : - Vary how the agent responds (don't repeat the same phrasing) - Track conversation progress to avoid circling - Add clear end points Relax Success Criteria The ConversationLoopError can get triggered when success criteria are too strict, even though the conversation isn't actually looping . Try relaxing the success conditions slightly to see if this resolves the issue . Contact Support for Limit Increases If your flow is long by design and not actually looping, you can reach out to Retell support as they might be able to raise the limit or whitelist your use case . The loop guard remains active in live calls, but these strategies should help you run successful simulation tests while avoiding the ConversationLoopError .
​ To learn more, see the sources I considered: [[1] Simulation Tests – ConversationLoopError (Increase message limit)](https://discord.com/channels/1186424376300679209/1387066442276667517) [[2] Conversation Loop Error](https://discord.com/channels/1186424376300679209/1390057930673356810) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
@AI Evy how strict should the success criteria be, do you have any examples in docs?
a
Thanks for the follow-up, @kakashi1412. I'll get back to you soon.
### Answer Based on the official documentation, here are examples of success criteria with appropriate strictness levels: Recommended Format for Success Criteria [(1) ]() The documentation suggests using this format for evaluation metrics:
Copy code
1. Verify that the customer successfully returned the package and received a refund.
2. Confirm that the end_call function was called at the end of the conversation.
3. Ensure the agent's responses are conversational and contain 5 sentences or fewer.
Additional Examples from Documentation [(2) ]() For broader testing scenarios, success criteria can include: - "AI has to ask the 5 questions" - Multiple criteria like "AI must say blah, blah, blah, blah" Best Practices for Success Criteria Strictness Success criteria should be specific but not overly restrictive [(3) ]() . Based on community feedback, overly strict success criteria can trigger ConversationLoopError even when conversations aren't actually looping . Avoid Technical Issues Be careful with numerical comparisons in success criteria - ensure you're comparing numbers rather than strings to avoid evaluation bugs [(4) ]() . The key is balancing specificity with flexibility - your criteria should clearly define successful outcomes without being so rigid that they cause false failures or loop detection issues.
​ To learn more, see the sources I considered: [[1] Automatically test your agent](https://docs.retellai.com/test/llm-simulation-testing) [[2] Retell AI Introduces Simulation and Batch Testing for AI Agents | Retell AI](https://www.retellai.com/blog/retell-ai-introduces-simulation-and-batch-testing-for-ai-agents) [[3] Simulation Tests – ConversationLoopError (Increase message limit)](https://discord.com/channels/1186424376300679209/1387066442276667517) [[4] simulation test success metrics failing calls because of bad math.](https://discord.com/channels/1186424376300679209/1371898360449073322) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.