https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can't see the Post Call Data Retrieval variable I ...
# ❓・ai-evy-support
c
@AI Evy Can't see the Post Call Data Retrieval variable I created in the webhook, can see them only on the retell platform
a
Thanks for tagging me @catr007.. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, there are a few important points about post-call analysis data in webhooks [(1) ]() . First, Retell AI will not populate custom post call analysis fields for non-connected calls and calls where no conversation happened [(1) ]() [(2) ]() . You should check the field existence before using it . When you receive the webhook with event type "call_analysis", the payload includes a call_analysis object [(1) ]() :
Copy code
{
 "event_type": "call_analysis",
 "call_analysis": {
 // Analysis results object
 }
}
The call_analysis object in the API response contains a custom_analysis_data field where your custom variables should appear [(3) ]() [(4) ]() :
Copy code
"call_analysis": {
 "call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
 "in_voicemail": false,
 "user_sentiment": "Positive",
 "call_successful": true,
 "custom_analysis_data": {}
}
[(3) ]() If your custom variables aren't appearing in the webhook but are visible on the platform, ensure: 1. The call was connected and had conversation content [(1) ]() [(2) ]() 2. Your webhook is configured to receive the "call_analysis" event type [(1) ]() 3. Check that the custom_analysis_data object exists in the webhook payload [(3) ]() [(4) ]()
​ To learn more, see the sources I considered: [[1] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[2] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) [[3] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[4] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
What I need to do to see the custom variables data through my webhook, if I can see it on the retell platform, and get all the basic data through the webhook, but not the custom variables
@AI Evy
a
Thanks for the follow-up, @catr007.. I'll get back to you soon.
### Answer Based on the documentation, there are several key points about receiving custom post-call analysis variables in webhooks: ## Webhook Event Type The custom analysis data comes through the
call_analyzed
webhook event, not other webhook events [(1) ]() . You need to ensure your webhook is configured to receive this specific event type. ## Data Location The custom variables appear in the
custom_analysis_data
field within the
call_analysis
object [(2) ]() [(3) ]() [(4) ]() . The structure looks like this:
Copy code
json
"call_analysis": {
  "call_summary": "The agent called the user to ask question about his purchase inquiry...",
  "in_voicemail": false,
  "user_sentiment": "Positive", 
  "call_successful": true,
  "custom_analysis_data": {}
}
[(2) ]() ## Critical Requirements 1. **Opt-out of Personal Data Storage**: If you have
opt_out_sensitive_data_storage
set to
true
, the
call_analysis
object will not be populated in webhooks [(5) ]() . This is intentional functionality - there is no post call analysis if you opt out of data storage . 2. **Connected Calls Only**: Custom post call analysis fields are not populated for non-connected calls and calls where no conversation happened [(6) ]() . You should check the field existence before using it . 3. **Multiple Webhooks**: Retell sends 3 webhooks during/after a call, and post call analysis results come with the third one (
call_analyzed
) [(1) ]() . Make sure you're listening for the correct webhook event. Since you can see the data on the Retell platform but not in your webhook, the most likely issue is that you have opted out of sensitive data storage, which prevents the
call_analysis
object from being sent via webhooks.
​ To learn more, see the sources I considered: [[1] Discord message from @majestic_seahorse_21472 on 2025-03-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1349768291303821312) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) [[3] Get Call](https://docs.retellai.com/api-references/get-call) [[4] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[5] No call_analysis object in the call_analyzed webhook if Opt-Out of Personal Data is true](https://discord.com/channels/1186424376300679209/1285964380055277650) [[6] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy i dont understand it was working once already then I maybe changed the script or earaed functions that I werent using and from than it didnt work anymore
a
Thanks for the follow-up, @catr007.. I'll get back to you soon.
### Answer Based on the documentation and your situation where custom variables worked before but stopped working after script changes, here are the key troubleshooting steps: ## Check Your Webhook Configuration The custom analysis data comes through the
call_analyzed
webhook event specifically. Make sure your webhook endpoint is still configured to receive this event type [(1) ]() . ## Verify Webhook Payload Structure The custom variables should appear in the
custom_analysis_data
field within the
call_analysis
object [(2) ]() [(3) ]() [(4) ]() . The structure looks like this:
Copy code
json
"call_analysis": {
  "call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
  "in_voicemail": false,
  "user_sentiment": "Positive",
  "call_successful": true,
  "custom_analysis_data": {}
}
[(2) ]() ## Common Issues After Script Changes 1. **Sensitive Data Storage Setting**: Check if you accidentally enabled
opt_out_sensitive_data_storage
in your call creation. This setting prevents
call_analysis
data from being sent via webhooks [(5) ]() [(3) ]() [(6) ]() [(7) ]() . 2. **Webhook Size Limits**: For longer calls, the webhook payload can become too large. One user reported receiving a "413 request entity too large" error for calls longer than 5 minutes [(8) ]() . If you modified your server configuration, check your request size limits. 3. **Call Requirements**: Custom post call analysis fields are only populated for connected calls where conversation happened [(1) ]() . Verify your test calls meet these criteria. Since it was working before your script changes, review what you modified - particularly any settings related to data storage, webhook configuration, or server request limits.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy call_analysis apeared once, now its not apearing anymore in the data gather from the webhook not sure why
a
Thanks for the follow-up, @catr007.. I'll get back to you soon.
### Answer Based on the sources, there are several specific reasons why
call_analysis
might appear intermittently in your webhook data: ## Key Factors Affecting call_analysis Availability **Opt-out of Personal Data Storage**: If you have
opt_out_sensitive_data_storage
set to
true
, the
call_analysis
object will not be populated in webhooks [(1) ]() . This is intentional functionality - there is no post call analysis if you opt out of data storage . **Webhook Payload Size Limits**: For longer calls, webhooks can fail due to payload size. One documented case shows a "413 request entity too large" error for calls longer than 5 minutes [(2) ]() . The error log shows:
Copy code
2025-07-30 17:30:23.102 call_89b9c83bce9588096a3bbd74505 info: Webhook triggered for call_analyzed
2025-07-30 17:30:24.120 call_89b9c83bce9588096a3bbd74505 error: Error triggering webhook for call_analyzed Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 413
response status: 413
response data: [{"message":"1"},"request entity too large"]
## Expected Webhook Structure The
call_analysis
object should appear in the webhook with this structure [(3) ]() :
Copy code
json
"call_analysis": {
  "call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
  "in_voicemail": false,
  "user_sentiment": "Positive",
  "call_successful": true,
  "custom_analysis_data": {}
}
## Troubleshooting Steps 1. Check your webhook endpoint's request size limit - increase it if you're handling longer calls [(2) ]() 2. Verify
opt_out_sensitive_data_storage
is set to
false
in your call configuration [(1) ]() 3. Ensure your webhook responds with a 2xx status code [(4) ]() 4. Confirm you're listening for the
call_analyzed
webhook event specifically
[(5) ]() Since it worked once and then stopped, the most likely cause is either the opt-out setting was changed or your server's request size limit is being exceeded for larger webhook payloads.
​ To learn more, see the sources I considered: [[1] No call_analysis object in the call_analyzed webhook if Opt-Out of Personal Data is true](https://discord.com/channels/1186424376300679209/1285964380055277650) [[2] Call_Analyzed webhook event not working reliably for longer calls](https://discord.com/channels/1186424376300679209/1400191602206576790) [[3] List Calls](https://docs.retellai.com/api-references/list-calls) [[4] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[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.