https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have built a retell agent with custom status in ...
# ❓・ai-evy-support
a
@AI Evy I have built a retell agent with custom status in the post call data extraction. The extraction is not passing through in the call analysis. It only populates if I 'retry' the call analysis. It is essential for me to have the custom stasus on the first call analysis so it get passed through my webhook. How can I solve this?
a
Thanks for tagging me @arc108. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, here are a few things to verify for your custom post-call analysis data: 1. Ensure your agent has
post_call_analysis_data
properly configured
Custom analysis fields need to be defined in your agent configuration. [(1) ]() [(2) ]() 2. Subscribe to the correct webhook event To receive analysis results via webhook, you need to subscribe to the
call_analyzed
webhook event type. [(3) ]() The webhook payload will include:
Copy code
json
{
  "event_type": "call_analyzed",
  "call": {
    // Call object with call_analysis field populated
  }
}
The custom analysis data should appear under
call_analysis.custom_analysis_data
in the webhook payload. [(4) ]() [(5) ]() 3. Important note about unpopulated fields Post-call analysis fields will not be populated for calls that were not connected or where no conversation took place. Check whether the field exists before using it. [(3) ]() If the issue persists: The sources don't document a specific reason why custom analysis would only populate on retry. This may require direct support investigation. Check out these potentially useful sources: - [Consume the analysis data]() - [Webhook Configuration]() Would you like me to provide a general answer based on my knowledge, or would you prefer to reach out to Retell support via [Contact Sales]() for this specific issue?
​ To learn more, see the sources I considered: [[1] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[3] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[4] Update Call](https://docs.retellai.com/api-references/update-call) [[5] postPost-call analysis: Data is gathered but not sent via webhook..why?](https://discord.com/channels/1186424376300679209/1399744779998461952) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.