sognodamotore
11/27/2025, 2:57 PMAI Evy
11/27/2025, 2:57 PMAI Evy
11/27/2025, 2:57 PMcall_started - Triggered when a new call begins with basic call information
2. call_ended - Triggered when a call completes, transfers, or encounters an error, containing all fields from the call object except call_analysis
3. call_analyzed - Triggered when call analysis is complete with full call data including the call_analysis object
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 .
**Important note**: When a call did not connect (like calls with dial_failed, dial_no_answer, dial_busy disconnection reasons) , the call_started webhook will not be triggered . However, call_ended and call_analyzed webhooks will still be triggered .
To set up webhooks, you have two options [(2) ]() :
- **Account level webhook**: Set up through system settings' webhooks tab for events related to any agent under your account
- **Agent level webhook**: Set up through the dashboard's agent detail page (note: if set, account level webhooks will not be triggered for that agent)
For accessing post-call analysis data, you can use the webhook method to receive real-time notifications when call analysis is complete [(3) ]() . The webhook payload includes :
json
{
"event_type": "call_analyzed",
"call": {
// Call object with call_analysis field populated
}
}AI Evy
11/27/2025, 2:58 PMAI Evy
11/27/2025, 2:58 PMsognodamotore
11/27/2025, 2:59 PMAI Evy
11/27/2025, 2:59 PMAI Evy
11/27/2025, 2:59 PMAI Evy
11/27/2025, 2:59 PMAI Evy
11/27/2025, 2:59 PMsognodamotore
11/28/2025, 6:41 PMAI Evy
11/28/2025, 6:41 PMAI Evy
11/28/2025, 6:42 PMcall_ended webhook triggers when the call completes, transfers, or encounters an error
2. call_analyzed webhook triggers separately when call analysis is complete
The webhook spec explicitly states: "The webhook will be triggered in order, but is not blocking. For example, if the webhook for call_started is not successful, we can still trigger call_ended webhook."
Additionally, if a webhook doesn't receive a success status (2xx) within 10 seconds, it will be retried up to 3 times . This retry mechanism could explain why you're seeing multiple requests to your endpoint.
Common scenarios causing multiple webhook calls:
- Your endpoint is responding slowly (>10 seconds) , causing retries
- Your endpoint isn't returning a 2xx success status code
- Both call_ended and call_analyzed events are firing (which is expected behavior)
To fix this:
- Ensure your webhook endpoint responds with a 2xx status code quickly (under 10 seconds)
- Implement idempotency handling on your endpoint to safely process duplicate webhook deliveries
- Check your webhook logs to see if you're receiving both call_ended and call_analyzed events (which is normal)
The webhook payload will include an event field that tells you which type of event triggered it :
json
{
"event": "call_ended",
"call": {
// call object
}
}
Would you like help implementing idempotency handling or debugging why your endpoint might not be returning success codes quickly enough?AI Evy
11/28/2025, 6:42 PMAI Evy
11/28/2025, 6:42 PMsognodamotore
11/28/2025, 6:43 PMAI Evy
11/28/2025, 6:43 PMAI Evy
11/28/2025, 6:43 PMcall_analyzed webhook event [(1) ]() .
The webhook system sends all three event types (call_started, call_ended, and call_analyzed) when configured [(2) ]() . A community member asked this exact question about limiting webhook runs, and the response confirmed that "right now this can't be done" [(1) ]() .
Your options:
1. Handle filtering on your endpoint - Accept all webhook events but only process the call_analyzed event type. Check the event field in the payload and ignore call_started and call_ended [(2) ]() :
json
{
"event": "call_analyzed",
"call": {
// Full call data including call_analysis
}
}
2. Use the API instead - Rather than webhooks, you could poll the Get Call endpoint to retrieve call analysis data after calls complete [(3) ]() .
3. Wait for a feature update - According to the Discord discussion, a feature request has been made to allow selective webhook event configuration [(1) ]() .
For now, implementing filtering logic on your webhook endpoint is the most practical solution to avoid wasting runs on events you don't need.AI Evy
11/28/2025, 6:43 PMsognodamotore
11/28/2025, 6:43 PMAI Evy
11/28/2025, 6:43 PMAI Evy
11/28/2025, 6:44 PMAI Evy
11/28/2025, 6:44 PMcall_analyzed event [(1) ]() [(2) ]() .
Set up filtering in your GHL workflow:
1. Add a webhook trigger in GHL that receives the Retell AI webhook data [(3) ]()
2. Add an IF/ELSE condition node to check the event type
3. Filter for event_type = call_analyzed in your condition [(1) ]()
4. Only proceed with your workflow when this condition is met
The webhook payload structure you'll receive looks like this :
json
{
"event_type": "call_analyzed",
"call": {
// Call object with call_analysis field populated
}
}
In GHL, your workflow should:
- Check if the incoming webhook's event_type field equals "call_analyzed"
- If yes, continue processing the call analysis data
- If no (meaning it's call_started or call_ended) , stop the workflow or skip to the end
This approach lets you ignore the call_started and call_ended events while only processing the call_analyzed event that contains your post-call analysis data [(1) ]() [(4) ]() .
The community has confirmed this filtering approach works well with GHL automation workflows [(3) ]() [(5) ]() . You're essentially using GHL's conditional logic to replicate webhook event filtering that Retell AI doesn't currently offer at the platform level.AI Evy
11/28/2025, 6:44 PMAI Evy
11/28/2025, 6:44 PMsognodamotore
12/01/2025, 3:49 PMAI Evy
12/01/2025, 3:49 PMAI Evy
12/01/2025, 3:49 PMAI Evy
12/01/2025, 3:50 PMcurrent_toronto_time) [(1) ]() [(2) ]()
3. Reference that variable in your conversation nodes using the {{variable_name}} syntax [(4) ]()
You can set default_dynamic_variables in your conversation flow configuration to provide fallback values [(1) ]() [(2) ]() .
If you need help setting up the actual tiAI Evy
12/01/2025, 3:50 PMsognodamotore
12/01/2025, 3:57 PMAI Evy
12/01/2025, 3:57 PMAI Evy
12/01/2025, 3:58 PMerror_llm_websocket_runtime - LLM WebSocket runtime error
- error_llm_websocket_corrupt_payload - LLM WebSocket corrupt payload
- error_no_audio_received - No audio received
- error_asr - ASR (speech recognition) error
- error_retell - Retell system error
- error_unknown - Unknown error
- error_user_not_joined - User never joined the call
- registered_call_timeout - Registered call timed out
Example in payload: [(1) ]() [(2) ]() [(3) ]() [(4) ]()AI Evy
12/01/2025, 3:58 PMdisconnection_reason field in the call_analyzed webhook payload indicates why the call ended [(1) ]() [(2) ]() [(3) ]() [(4) ]() . It's an enum string with the following possible values [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() :
User/Agent Actions:
- user_hangup - User ended the call
- agent_hangup - Agent ended the call
- call_transfer - Call was transferred
Voicemail & Inactivity:
- voicemail_reached - Call reached voicemail
- inactivity - Call ended due to inactivity
System Limits:
- max_duration_reached - Call hit maximum duration limit
- concurrency_limit_reached - Concurrent call limit exceeded
- no_valid_payment - No valid payment method
Dial Failures:
- dial_busy - Line was busy
- dial_failed - Dial attempt failed
- dial_no_answer - No one answered
- invalid_destination - Invalid phone number/destination
- scam_detected - Call flagged as potential scam
- marked_as_spam - Call marked as spam
- user_declined - User declined the call
Telephony Provider Issues:
- telephony_provider_permission_denied - Provider permission denied
- telephony_provider_unavailable - Provider unavailable
- sip_routing_error - SIP routing error
System Errors:
- error_llm_websocket_open - LLM WebSocket failed to open
- `errorAI Evy
12/01/2025, 3:59 PMAI Evy
12/01/2025, 3:59 PMAI Evy
12/01/2025, 4:01 PMsognodamotore
12/01/2025, 4:01 PMAI Evy
12/01/2025, 4:01 PMpublic_log_url - Include this URL in your email for detailed debugging :
- Contains all requests/responses in LLM WebSocket and latency tracking for each turntaking
Connection Issues:
5. disconnection_reason for unconnected calls (status not_connected) [(6) ]() :
- telephony_provider_permission_denied - SIP trunk credentials not authenticated [(1) ]()
- telephony_provider_unavailable - Telephony provider unavailable
- sip_routing_error - SIP routing going over too many hops or in a loop
Example filtering logic for your GHL workflow:AI Evy
12/01/2025, 4:02 PMdisconnection_reason - Check for error-related values [(1) ]() [(2) ]() [(3) ]() [(4) ]() :
- error_llm_websocket_open - LLM websocket failed to open between Retell server and your backend [(1) ]()
- error_llm_websocket_lost_connection - LLM websocket connection broke during the call
- error_llm_websocket_runtime - LLM websocket received a closing signal other than 1000 from your server
- error_llm_websocket_corrupt_payload - LLM websocket received unspecified payload
- error_no_audio_received - No audio received from Twilio or web frontend after connection established
- error_asr - Retell's ASR encountered a problem
- error_retell - Retell system error [(2) ]() [(3) ]() [(4) ]()
- error_unknown - Unknown error
2. call_status - Flag if status is error [(2) ]() [(3) ]() [(4) ]() [(5) ]()
3. latency object - Monitor for performance issues :
- Contains fields like e2e (end-to-end latency) with p50, p90, p95, p99, max, min values
- High latency values could indicate technical problemsAI Evy
12/01/2025, 4:02 PMjson
{
"disconnection_reason": "error_llm_websocket_open",
"call_status": "error",
"public_log_url": "<https://retellai.s3.us-west-2.amazonaws.com/%5Bcall_id%5D/public_log.txt%22>
}
[(2) ]() [(3) ]() [(4) ]()
Flag any call where disconnection_reason starts with error_ or where call_status equals error, and include the public_log_url for technical review [(1) ]() [(2) ]() [(3) ]() [(4) ]() .AI Evy
12/01/2025, 4:02 PMAI Evy
12/01/2025, 4:02 PMsognodamotore
12/01/2025, 4:10 PMAI Evy
12/01/2025, 4:10 PMAI Evy
12/01/2025, 4:11 PMdisconnection_reason [(1) ]() [(2) ]() [(3) ]() [(4) ]() .
Here's why disconnection_reason is the best single field:
1. Comprehensive error coverage - It captures both technical errors and call outcome issues in a single field
2. Clear categorization - The values are self-explanatory and categorized by error type (e.g., error_llm_websocket_open, error_asr, telephony_provider_unavailable) [(3) ]()
3. Available in all webhook events - It's included in both call_ended and call_analyzed webhook payloads [(1) ]() [(2) ]() [(4) ]()
4. Detailed debugging guide - Retell provides a comprehensive breakdown of what each disconnection reason means at the [Disconnection Reason Doc]() [(3) ]()
The field categorizes issues into three types:
- ended - Expected behavior (user_hangup, agent_hangup, call_transfer, etc.)
- not_connected - Outbound call didn't connect (dial_busy, invalid_destination, marked_as_spam, etc.)
- error - Technical errors (error_llm_websocket_open, error_asr, error_retell, etc.)
Example in your post-call report:
json
{
"disconnection_reason": "error_llm_websocket_open"
}AI Evy
12/01/2025, 4:11 PMAI Evy
12/01/2025, 4:11 PMAI Evy
12/01/2025, 4:56 PMsognodamotore
12/01/2025, 4:56 PMAI Evy
12/01/2025, 4:56 PM{{current_time_[timezone]}}
For Toronto specifically, use:
{{current_time_America/Toronto}}
This will return the current time in Toronto's timezone (Eastern Time) . The format follows the standard timezone identifier convention .
Example output:
"Thursday, March 28, 2024 at 11:46:04 PM EDT"
Important notes:
1. Known Issues - There have been reports that {{current_time_[timezone]}} can behave inconsistently, sometimes referencing the correct timezone and sometimes not [(2) ]() . The issue has been reported to occur in both Logic Split Nodes and Conversation Nodes .
2. Alternative Approach - Some users have resolved timezone issues by returning the time in a custom variable when the call initiates, allowing their code to handle the timezone as needed [(3) ]() . This approach lets you work in UTC while your backend handles timezone conversion .
3. Default Timezone - The base {{current_time}} variable defaults to PST (America/Los_Angeles) [(1) ]() [(3) ]() .
If you experience inconsistent behavior with {{current_time_America/Toronto}}, consider implementing a custom dynamic variable that fetches Toronto time from your backend instead [(4) ]() [(5) ]() .AI Evy
12/01/2025, 4:57 PMAI Evy
12/01/2025, 4:57 PMsognodamotore
12/05/2025, 7:18 PMAI Evy
12/05/2025, 7:18 PMAI Evy
12/05/2025, 7:18 PMtransfer_ring_timeout in your agent settings [(3) ]() . This allows up to 30 seconds of ring time on the transfer leg .
2. Extension format - Ensure your extension is formatted correctly using only 0-9, '*', '#' characters (e.g. 123#) [(1) ]() . The extension field is separate from the transfer destination number .
3. Transfer destination format - Your transfer number should be in e.164 format (like +12137771234) or a SIP URI format sip:username@domain . If using a non-e.164 format with custom telephony, choose the "raw format" option .
4. Warm vs Cold transfer - If using warm transfer, the agent attempts to detect if the other side is human before connecting . Configure these warm transfer settings :
- Agent detection timeout - Maximum time to wait for human detection (default 30 seconds)
- Enable human detection - The original caller only connects once a human is detected
5. Check your telephony provider - For cold transfers using SIP REFER, verify your telephony provider supports the transfer method . For warm transfers using SIP DIAL, ensure your provider configuration allows transfers .
Debugging steps:
- Check the disconnection_reasonAI Evy
12/05/2025, 7:18 PMsip_routing_error, telephony_provider_unavailable, or telephony_provider_permission_denied [(4) ]() [(2) ]()
- Review the SIP connection log available in your call logs for specific failure reasons [(2) ]()
- Verify your agent has the transfer_call function properly configured with the correct transfer destination
The ring duration setting is found under Call Settings on your agent page [(3) ]() .
**AI Evy
12/05/2025, 7:18 PMAI Evy
12/05/2025, 7:18 PMsognodamotore
12/07/2025, 3:00 PMAI Evy
12/07/2025, 3:00 PMAI Evy
12/07/2025, 3:00 PMAI Evy
12/07/2025, 3:00 PMAI Evy
12/07/2025, 3:00 PMAI Evy
12/07/2025, 3:00 PMsognodamotore
12/07/2025, 3:03 PMAI Evy
12/07/2025, 3:03 PMAI Evy
12/07/2025, 3:03 PMAI Evy
12/07/2025, 3:03 PMAI Evy
12/07/2025, 3:03 PMsognodamotore
12/08/2025, 4:30 PMAI Evy
12/08/2025, 4:30 PMAI Evy
12/08/2025, 4:31 PMAI Evy
12/08/2025, 4:31 PMAI Evy
12/08/2025, 4:31 PMsognodamotore
12/09/2025, 5:21 PMAI Evy
12/09/2025, 5:21 PMAI Evy
12/09/2025, 5:22 PM{{current_time_America/Toronto}}
This returns the current time in Eastern Time format, for example: "Thursday, March 28, 2024 at 11:46:04 PM EDT"
Note: There have been reports of inconsistent behavior with {{current_time_[timezone]}} where it sometimes doesn't reference the correct timezone [(2) ]() . If you experience issues, consider passing the time as a custom dynamic variable from your backend instead [(3) ]() .AI Evy
12/09/2025, 5:22 PMAI Evy
12/09/2025, 5:22 PMsognodamotore
12/10/2025, 2:10 AMAI Evy
12/10/2025, 2:10 AMAI Evy
12/10/2025, 2:10 AMend_call_after_silence_ms setting. [(1) ]() [(2) ]()
This setting terminates the call if the user stays silent for a specified period after the agent speaks. [(2) ]()
To set a 30-45 second inactivity timeout:
Set end_call_after_silence_ms to a value between 30000 (30 seconds) and 45000 (45 seconds) . [(1) ]() [(2) ]()
Important constraints:
- The minimum value allowed is *10,000 ms (10 seconds) * [(2) ]()
- By default, this is set to *600,000 ms (10 minutes) *
You can update this via the [Update Voice Agent]() API or in your agent settings. [(1) ]()
When a call ends due to this setting, the disconnection_reason will show as inactivity. [(3) ]()
Additionally, you can set max_call_duration_ms to cap the maximum call length overall (minimum 60,000 ms / 1 minute, maximum 7,200,000 ms / 2 hours, default 3,600,000 ms / 1 hour) . [(2) ]()AI Evy
12/10/2025, 2:10 AMAI Evy
12/10/2025, 2:10 AMsognodamotore
12/10/2025, 4:20 AMAI Evy
12/10/2025, 4:20 AMAI Evy
12/10/2025, 4:20 AMAI Evy
12/10/2025, 4:20 AMAI Evy
12/10/2025, 4:20 AMsognodamotore
12/10/2025, 4:22 AMAI Evy
12/10/2025, 4:22 AMAI Evy
12/10/2025, 4:22 AMAI Evy
12/10/2025, 4:22 AMend_call_after_silence_ms — Set this to 30,000-45,000ms to automatically hang up on silent callers (you mentioned this earlier)
2. Check disconnection_reason in your call logs for patterns — values like dial_failed or marked_as_spam can indicate carrier-level blocking
Twilio-side controls to investigate:
- Twilio has aggressive anti-fraud controls [(2) ]()
- Check your Twilio console for fraud detection settings
- Review geographic permissions and call screening options
The anonymous call blocking and silent call probes are typically handled at the telephony provider level (Twilio) rather than Retell. You may need to configure Twilio's fraud guard or call screening features directly in your Twilio account.AI Evy
12/10/2025, 4:22 AMAI Evy
12/10/2025, 4:49 PMsognodamotore
12/10/2025, 4:49 PMAI Evy
12/10/2025, 4:49 PMAI Evy
12/10/2025, 4:49 PMAI Evy
12/10/2025, 4:50 PMsognodamotore
12/10/2025, 4:51 PMAI Evy
12/10/2025, 4:51 PMAI Evy
12/10/2025, 4:51 PMAI Evy
12/10/2025, 4:51 PMAI Evy
12/10/2025, 4:51 PMfrom and P-Asserted-Identity headers to the user's number
- **For cold transfers**: Retell uses SIP REFER, and it's up to the telephony provider to support caller ID override for SIP REFER
Provider-specific behavior:
- **Retell Twilio numbers**: Support showing user's number on both warm and cold transfers
- **Retell Telnyx numbers**: Only support this when using SIP REFER via cold transfer
- If caller ID override is not supported by your provider, the transfer will fail
Known limitation with Twilio + cold transfer:
There are reports that Twilio does not honor custom SIP headers in the REFER request for cold transfers with transferee caller ID. [(3) ]() If you're using cold transfer and it's not working, consider switching to warm transfer which provides more reliable caller ID passthrough.sognodamotore
12/16/2025, 3:00 PMAI Evy
12/16/2025, 3:00 PMAI Evy
12/16/2025, 3:00 PMAI Evy
12/16/2025, 3:00 PMAI Evy
12/16/2025, 3:00 PMsognodamotore
12/17/2025, 3:56 PMAI Evy
12/17/2025, 3:56 PMAI Evy
12/17/2025, 3:56 PMtelephony_provider_permission_denied — SIP trunk authentication failed
- telephony_provider_unavailable — the telephony provider is not available or has errors
- sip_routing_error — loops or issues with SIP routing
- marked_as_spam — call marked as spam
- user_declined — user explicitly declined the call
Troubleshooting steps:
1. Check your call logs — Use the [Get Call API]() to retrieve the disconnection_reason field for the specific call ID to see which exact reason applies [(2) ]() [(3) ]()
2. Verify your SIP trunk configuration — Check termination settings in your SIP trunking provider and ensure the termination URL is correct [(4) ]()
3. Check telephony provider logs — Review logs in your Twilio/Telnyx console and consider opening a ticket with them
4. For warm transfers with caller ID override — There have been reports of "Carrier Denied" errors when using caller ID override with Twilio, even when Twilio shows no errors on their side [(5) ]() . If you're using "User's Number" as the displayed caller ID, try switching to the agent's number to see if that resolves it [(6) ]()
Similar issues have been reported where transfers fail with carrier denied errors despite Twilio showing normal trunking termination [(5) ](AI Evy
12/17/2025, 3:56 PMAI Evy
12/17/2025, 3:56 PMAI Evy
12/17/2025, 3:56 PMAI Evy
12/17/2025, 8:07 PMsognodamotore
12/17/2025, 8:07 PMAI Evy
12/17/2025, 8:08 PMoverride_dynamic_variables field: [(2) ]()
json
{ "additional_discount": "15%" }
This allows your backend to inject or modify variables while the call is active based on what the caller says.
For cross-call memory (remembering previous conversations) , you'd need to implement this in your backend: [(3) ]()
1. Store conversation data (e.g., call summaries from the call_analyzed webhook) associated with the caller's phone number
2. Use the inbound dynamic variables webhook to supply that stored context back to the agent on subsequent calls [(4) ]() [(3) ]()
The agent itself doesn't automatically remember callers between calls — you'd need to build the storage and retrieval logic yourself. [(3) ]()
Contextual Memory within a single call is supported — the agent remembers inputs provided earlier in the same conversation. [(3) ]()AI Evy
12/17/2025, 8:08 PMAI Evy
12/17/2025, 8:08 PM