https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why some wehbooks are not not having call_analysi...
# ❓・ai-evy-support
f
@AI Evy Why some wehbooks are not not having call_analysis?
a
Thanks for tagging me @faizan_53123. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[3] Call_Analyzed webhook event not working reliably for longer calls](https://discord.com/channels/1186424376300679209/1400191602206576790) [[4] Get Call](https://docs.retellai.com/api-references/get-call) ​
### Answer The
call_analysis
field is only populated in the
call_analyzed
webhook event, not in the
call_ended
webhook event [(1) ]() . When the
call_ended
webhook is triggered, it includes all fields from the call object except
call_analysis
. The
call_analysis
data becomes available only after the call analysis is complete, which triggers the separate
call_analyzed
webhook event . Additionally, custom post-call analysis fields will not be populated for calls that were not connected or where no conversation took place [(2) ]() . You should check whether the field exists before using it . If you're experiencing issues where
call_analyzed
webhooks are not being received, there could be a few reasons: 1. For longer calls (over 5 minutes) , the webhook payload may be too large and result in a 413 error from your server [(3) ]() 2. The webhook has a 10-second timeout and will retry up to 3 times if no success status (2xx) is received [(1) ]() 3. When calls don't connect (such as calls with
dial_failed
,
dial_no_answer
, or
dial_busy
disconnection reasons) , the
call_started
webhook won't trigger, but
call_ended
and
call_analyzed
webhooks will still be sent If you need the analysis data and aren't receiving the
call_analyzed
webhook, you can retrieve it using the Get Call API [(4) ]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @faizan_53123. I'll get back to you soon.
f
@AI Evy So do I only need call_analyzed?
a
### Answer It depends on what data you need [(1) ]() . Retell AI supports three webhook event types : 1.
call_started
- Triggered when a new call begins, contains basic call information 2.
call_ended
- Triggered when a call completes, transfers, or encounters an error, includes all fields from the call object except
call_analysis
3.
call_analyzed
- Triggered when call analysis is complete, contains full call data including the
call_analysis
object If you only need the
call_analysis
data (call summary, user sentiment, call success status, custom analysis data) , then yes, you only need
call_analyzed
[(1) ]() [(2) ]() . However, if you need real-time notifications about call status changes or other call metadata before analysis completes, you should use
call_ended
as well [(1) ]() . The
call_ended
webhook provides immediate notification when a call finishes, while
call_analyzed
triggers after the analysis processing is complete . Note that
call_analyzed
can be triggered multiple times for the same call [(3) ]() [(4) ]() , so if you need a single notification per call, use
call_ended
instead [(3) ]() .
f
Will call_ended always coome before call_analysis?
@AI Evy Will call_ended always coome before call_analysis?
a
Thanks for the follow-up, @faizan_53123. I'll get back to you soon.
### Answer Yes,
call_ended
will always come before
call_analyzed
[(1) ]() . The webhooks are triggered in order, with
call_ended
occurring when the call completes, and
call_analyzed
triggering after the call analysis processing is complete . The
call_analysis
data only becomes available after analysis finishes, which is why it's sent in a separate
call_analyzed
webhook event that follows
call_ended
.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] 2 call_analysis reports send to webhooks randomly by agent. Call ID: call_d9f31a1ac47a3df614f8244ca6](https://discord.com/channels/1186424376300679209/1425245575598571580) [[4] call_analyzed webhook triggered multiple times](https://discord.com/channels/1186424376300679209/1408550487216750634) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ 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.