thomas_22569
11/28/2025, 4:36 AMAI Evy
11/28/2025, 4:36 AMAI Evy
11/28/2025, 4:36 AMAI Evy
11/28/2025, 4:37 AMcall_ended webhook when testing through "Test Chat," you need to end the call session. [(1) ]() The webhook setup guide recommends starting a web call in the dashboard to verify the webhook is triggered correctly.
When a call completes, the call_ended event is triggered, which contains all fields from the call object except call_analysis. [(2) ]() After that, the call_analyzed event is triggered when call analysis is complete.
For testing purposes, you can verify your webhook endpoint by starting a web call and ensuring it triggers correctly. [(1) ]() The webhook will POST the payload to your endpoint with a 10-second timeout, and will retry up to 3 times if no success status (2xx) is received. [(2) ]()
**AI Evy
11/28/2025, 4:37 AMthomas_22569
11/28/2025, 4:38 AMAI Evy
11/28/2025, 4:38 AMAI Evy
11/28/2025, 4:38 AMAI Evy
11/28/2025, 4:39 AMcall_ended webhook, you'll need to use actual call testing rather than the Manual Chat interface. The documentation recommends starting a web call in the dashboard to verify webhook triggers. [(2) ]() When a call completes, transfers, or encounters an error, the call_ended event is triggered with all fields from the call object except call_analysis.
For the Manual Chat interface specifically, you can click the "delete" button to reset conversations, [(1) ]() but this won't simulate the full call lifecycle that triggers webhooks.
If you need to test webhook behavior thoroughly, consider:
- Making actual test calls (web or phone) rather than using Manual Chat
- Using the simulation testing features available for conversation flow agents [(3) ]()
**AI Evy
11/28/2025, 4:39 AMAI Evy
11/28/2025, 4:42 AMAI Evy
11/28/2025, 4:43 AM## Goal
Your primary objective is to [complete specific task]. Once this is accomplished, politely end the conversation and hang up.
## Personality
You are a [personality description]. If the conversation becomes too long or the goal is achieved, you will end the call.
The simulation uses an LLM model to generate user conversation based on your prompt. By clearly defining when the user should end the call in the prompt, the simulated user will naturally conclude the conversation at the appropriate point rather than looping indefinitely.
After running the simulation, you can manually review the conversation to identify any issues, and then save it as a test case for future use.
---
**thomas_22569
11/28/2025, 4:43 AMAI Evy
11/28/2025, 4:45 AMAI Evy
11/28/2025, 4:45 AMAI Evy
11/28/2025, 4:46 AMthomas_22569
11/28/2025, 4:46 AMAI Evy
11/28/2025, 4:46 AMend_call function configured. One user noted that even with extremely lax success criteria (1-2 lines) and an end_call function, they still encountered loops.
The issue appears to stem from the loop detection mechanism being overly sensitive. According to community feedback, the ConversationLoopError can trigger even when success criteria are simple or when conversations are legitimately long by design rather than actually looping.
Recommendations based on documented solutions:
1. Try using batch testing instead of individual simulation tests, as it skips the loop detection mechanism
2. Vary how your agent responds to avoid repeating the same phrasing
3. Track conversation progress to avoid circling back
4. Add clear end points in your conversation flow
5. Consider relaxing your success conditions slightly, as overly strict criteria can trigger the error
You can find batch testing under: Simulation → LLM Simulation Testing → Batch test your agent in the Retell dashboard.
If the issue persists and your flow is legitimately long by design (not actually looping) , you may need to reach out to Retell support to raise the limit or whitelist your use case.
**AI Evy
11/28/2025, 4:46 AMAI Evy
11/28/2025, 4:46 AMthomas_22569
11/28/2025, 4:51 AMAI Evy
11/28/2025, 4:51 AMAI Evy
11/28/2025, 4:52 AMend_call tool.
Additionally, you can configure automatic call termination settings at the agent level:
- `end_call_after_silence_ms`: Set this (in milliseconds) to end the call after a period of silence. The default is 600000 ms (10 minutes) . [(2) ]() [(3) ]() [(4) ]()
- `max_call_duration_ms`: Set this to limit the maximum duration of the call. The default is 3600000 ms (60 minutes) .
These settings ensure the agent can terminate calls based on conversational cues or time limits.
**AI Evy
11/28/2025, 4:52 AMAI Evy
11/28/2025, 4:52 AMthomas_22569
11/28/2025, 4:58 AMAI Evy
11/28/2025, 4:58 AMAI Evy
11/28/2025, 4:59 AMAI Evy
11/28/2025, 4:59 AMend_call tool should trigger the call_ended webhook when the call terminates. [(1) ]() When a call completes, the call_ended event is triggered, which contains all fields from the call object except call_analysis.
Troubleshooting steps:
1. **Verify webhook configuration**: Ensure your webhook URL is properly configured in the dashboard and that your endpoint is accessible. [(1) ]() [(2) ]()
2. **Check webhook signature**: Retell AI includes an x-retell-signature header with every webhook request for authentication. [(3) ]() Verify you're not blocking requests due to signature validation issues.
3. **Test with actual calls**: The webhook is triggered when calls complete through actual phone/web calls, not through the Manual Chat interface. [(2) ]() Simulation tests may not reliably trigger webhooks the same way production calls do.
4. **Add logging**: Add logging to your webhook endpoint to confirm whether requests are being received at all.
5. **Community insight**: One user noted that adding a unique identifier to the function name (e.g., end_call_152) helps the AI identify it as a function. [(4) ]() You might try this approach.
6. **Verify response**: Your webhook endpoint must return a successful status code (2xx) . [(1) ]() Retell expects no body in the response.
If your webhook endpoint isn't receiving the call_ended event after using the end_call tool, check your server logs to see if the request is arriviAI Evy
11/28/2025, 4:59 AMAI Evy
11/28/2025, 4:59 AM