https://retellai.com/?utm_source=discord&utm_medium=seo logo
How does a webhook on batch calls in retell ai wor...
# ❓・ai-evy-support
r
@AI Evy How does a webhook on batch calls in retell ai work like will there be a webhook for each individual call or will the process happen for each individual call or can i have processing done at the very end when the post-call analysis is made? Then how do you get the post-call analysis stuff in your webhook for processing later if the post-call analysis takes a while to populate
a
Thanks for tagging me @reetam5807. I'll look through relevant sources and get back to you shortly.
### Answer Based on the sources, here's how webhooks work with batch calls in Retell AI: ## Individual Webhooks Per Call Each call in a batch triggers its own set of webhooks [(1) ]() . The webhook events are triggered in order for each individual call . ## Webhook Event Types For each call, you'll receive separate webhook events : -
call_started
- Triggered when a new call begins -
call_ended
- Triggered when a call completes, containing all fields from the call object except
call_analysis
-
call_analyzed
- Triggered when call analysis is complete, including the full
call_analysis
object ## Getting Post-Call Analysis Since post-call analysis takes time to process, you should use the
call_analyzed
webhook event specifically [(2) ]() [(1) ]() . This webhook is triggered after the analysis is complete and includes the full call data with the
call_analysis
object populated . The webhook payload for
call_analyzed
will contain [(1) ]() :
Copy code
json
{
 "event": "call_analyzed",
 "call": {
 // Full call object with call_analysis field populated
 }
}
## Alternative Methods If you need to retrieve analysis results later, you can also [(2) ]() : 1. Access results through the Dashboard's history tab 2. Use the Get Call API programmatically to retrieve the
call_analysis
field [(2) ]() [(3) ]() The webhook has a 10-second timeout and will retry up to 3 times if no success status (2xx) is received [(1) ]() .
​ 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] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.