https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i setup my workflow to send call details vi...
# ❓・ai-evy-support
b
@AI Evy how do i setup my workflow to send call details via my webhook even if the call ends early. right now it only sends if my call ends completely.
a
Thanks for tagging me @brave_eagle_37371. I'll look through relevant sources and get back to you shortly.
### Answer To set up your webhook to receive call details even when calls end early, you need to understand how Retell AI's webhook events work [(1) ]() . Retell AI supports three webhook events : - `call_started`: Triggered when a new call begins - `call_ended`: Triggered when a call completes, transfers, or encounters an error - `call_analyzed`: Triggered when call analysis is complete The
call_ended
webhook should trigger regardless of how the call ends . According to the documentation, this event is "triggered when a call completes, transfers, or encounters an error" , which includes early terminations. When calls don't connect (like
dial_failed
,
dial_no_answer
,
dial_busy
) , the
call_started
webhook won't trigger, but both
call_ended
and
call_analyzed
webhooks will still be triggered . The
call_ended
webhook contains all fields from the call object except
call_analysis
, while the
call_analyzed
webhook includes the full call data with the
call_analysis
object . To set up your webhook: 1. Configure your webhook endpoint to handle POST requests [(2) ]() 2. Register your webhook either at the account level or agent level through the dashboard 3. Ensure your endpoint responds with a 2xx status code within 10 seconds [(1) ]() Here's the webhook payload structure you'll receive :
Copy code
json
{
 "event": "call_ended",
 "call": {
 "call_type": "phone_call",
 "from_number": "+12137771234",
 "to_number": "+12137771235",
 "direction": "inbound",
 "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
 "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "call_status": "registered",
 "metadata": {},
 "retell_llm_dynamic_variables": {
 "customer_name": "John Doe"
 },
 "start_timestamp": 1714608475945,
 "end_timestamp": 1714608491736,
 "disconnection_reason": "user_hangup",
 "transcript": "...",
 "transcript_object": [ [Object], [Object], [Object], [Object] ],
 "transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
 "opt_out_sensitive_data_storage": false
 }
}
If your webhook isn't receiving early call terminations, verify that your webhook endpoint is properly configured and responding correctly to test the integration [(2) ]() .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Setup guide](https://docs.retellai.com/features/register-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.