pureco_55551
10/20/2025, 9:00 PMAI Evy
10/20/2025, 9:00 PMAI Evy
10/20/2025, 9:01 PMcall_started, call_ended, and call_analyzed [(1) ]() . The call_ended event is triggered when a call completes, transfers, or encounters an error and includes all fields from the call object except call_analysis .
Here are the key points about webhook behavior:
Webhook Event Ordering and Reliability:
The webhook will POST the payload to your endpoint with a 10-second timeout . If no success status (2xx) is received within 10 seconds, the webhook will be retried up to 3 times . Webhooks are triggered in order but are not blocking - if the call_started webhook fails, the call_ended webhook can still be triggered .
When call_started Won't Trigger:
If a call did not connect (like dial_failed, dial_no_answer, dial_busy disconnection reasons) , the call_started webhook event will not be triggered, but call_ended and call_analyzed webhooks will still be triggered .
End Call Tool Configuration:
To ensure proper call termination, you should configure the End Call tool in your agent [(2) ]() . Add the "End Call" tool and define specific conditions under which the call should be terminated, such as "If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation" .
Webhook Configuration:
Ensure your agent has the webhook_url properly configured [(3) ]() . The webhook URL should be set at the agent level and will receive all three event types for calls using that agent .
Troubleshooting Steps:
1. Verify your webhook endpoint returns a 2xx status code within 10 seconds [(1) ]()
2. Check that yAI Evy
10/20/2025, 9:01 PMwebhook_url configured [(3) ]()
3. Ensure the End Call tool is properly configured with termination conditions [(2) ]()
4. Monitor your webhook logs for all three event types: call_started, call_ended, and call_analyzed [(1) ]()
The call_ended event should trigger regardless of phone provider or call scenario, as long as the webhook is properly configured and your endpoint responds correctly .AI Evy
10/20/2025, 9:01 PMAI Evy
10/20/2025, 9:01 PM