https://retellai.com/?utm_source=discord&utm_medium=seo logo
- the webhook will show information from when the ...
# ❓・ai-evy-support
d
@AI Evy - the webhook will show information from when the agent answered right ? it doesn't show how much time it took the agent to answer
a
Thanks for tagging me @dj.ufk. I'll look through relevant sources and get back to you shortly.
### Answer Webhooks in Retell AI include
start_timestamp
and
end_timestamp
fields in the call object [(1) ]() . The
start_timestamp
represents when the call started, not when the agent answered . The webhook payload shows timing information for the overall call duration, but doesn't explicitly include a separate metric for "time to answer" . You can calculate the time between when the call was initiated and when it started by comparing timestamps, but there isn't a dedicated field showing how long it took the agent to answer . If you need more granular timing metrics beyond what's in the webhook payload, you might want to check out the call analytics or consider tracking additional timing data through custom implementations.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy - so start_timestamp is when Rtell AI received the call not when the agent answered ?
a
Thanks for the follow-up, @dj.ufk. I'll get back to you soon.
### Answer Yes, that's correct. The
start_timestamp
is described as the "Begin timestamp (milliseconds since epoch) of the call" and is "Available after call starts" [(1) ]() [(2) ]() [(3) ]() [(4) ]() . This represents when the call connection was established with Retell AI, not necessarily when the agent began speaking . The documentation doesn't provide a separate metric for when the agent first responded or answered . The
start_timestamp
marks the beginning of the call session itself . If you need to track the time until the agent's first utterance, you might need to parse the
transcript_object
or
transcript_with_tool_calls
fields to find the first agent message and its associated timestamp . **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy - could be that a call was transfered but for some reason the agent did not pick up ?
a
Thanks for the follow-up, @dj.ufk. I'll get back to you soon.
### Answer Yes, a call transfer can fail if the agent doesn't pick up [(1) ]() . When experiencing call transfer issues, there are several potential reasons why the receiving agent might not answer . For warm transfers specifically, if human detection is enabled, the call may fail if a human is not successfully detected . Possible reasons include : - No human was actually present (e.g., it was IVR or voicemail) - The other party spoke, but only after the detection timeout expired - The speech was too similar to an IVR or voicemail, and not recognized as human Additionally, telephony issues can cause transfer failures . Call transfer is similar to placing an outbound call, and the failure reasons are similar to why an outbound call might not be successful . The SIP connection log is available in the call logs and is useful to understand the failure reason . For warm transfers, you can configure the agent detection timeout, which is the maximum amount of time the AI agent will wait to determine whether the transfer target is a human [(2) ]() . The caller is connected only if human detection succeeds within this timeframe; otherwise, the transfer is marked as failed . The default timeout is 30 seconds .
​ To learn more, see the sources I considered: [[1] Debug call transfer failure](https://docs.retellai.com/reliability/call-performance) [[2] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy - what's the call_ended properties related to this ?
a
Thanks for the follow-up, @dj.ufk. I'll get back to you soon.
### Answer ### Answer The
call_ended
webhook event includes several properties that can help you understand call transfer outcomes [(1) ]() : Key properties in the call object: - **`disconnection_reason`**: Indicates why the call ended [(1) ]() [(2) ]() [(3) ]() [(4) ]() . For transfers specifically, this can be
"call_transfer"
. Other relevant values include
"dial_busy"
,
"dial_failed"
,
"dial_no_answer"
, and
"user_hangup"
[(2) ]() [(3) ]() [(4) ]() . - **`end_timestamp`**: Shows when the call ended (milliseconds since epoch) [(1) ]() [(2) ]() [(3) ]() [(4) ]() . - **`start_timestamp`**: Shows when the call started . - **`duration_ms`**: Total duration of the call in milliseconds [(2) ]() [(3) ]() [(4) ]() . - **`call_status`**: Shows the final status, such as
"ended"
or
"error"
. For transfer scenarios where the agent didn't pick up, you'd likely see
disconnection_reason
values like
"dial_no_answer"
,
"dial_failed"
, or
"dial_busy"
. The webhook is triggered even when calls don't connect successfully [(1) ]() . The we
bhook payload contains the full call object with all these fields, allowing you to track what happened during the transfer attempt .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy - so i don't really have answered duration to match with my cdrs in order to match calls ?
a
Thanks for the follow-up, @dj.ufk. I'll get back to you soon.
### Answer ### Answer You're correct that Retell AI doesn't provide a dedicated "answered duration" field in the call object that matches traditional CDR (Call Detail Record) metrics [(1) ]() [(2) ]() [(3) ]() . The available timing fields in Retell AI's call object are : - **`start_timestamp`**: When the call connection was established with Retell AI (milliseconds since epoch) - **`end_timestamp`**: When the call ended (milliseconds since epoch) - **`duration_ms`**: Total duration of the call in milliseconds These timestamps represent the full call session from connection to disconnection, not the traditional telecom "answered time" or "talk time" that you'd see in carrier CDRs. To match calls with your CDRs, you could: 1. Use the
call_id
field as a unique identifier 2. Match on
from_number
and
to_number
fields along with approximate timestamps [(2) ]() [(3) ]() 3. Parse the
transcript_object
or
transcript_with_tool_calls
to find the first agent utterance and calculate when the agent actually started speaking [(1) ]() [(2) ]() The
disconnection_reason
field can help identify if a call was actually answered - values like
"dial_no_answer"
,
"dial_failed"
, or
"dial_busy"
indicate the call never connected [(4) ]() [(2) ]() . For more precise call matching with external CDR systems, you might need to implement custom tracking using the metadata field
or webhook timestamps.
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[4] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.