https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i include a specific variable that was ded...
# ❓・ai-evy-support
a
how can i include a specific variable that was deducted by the tool in-call like "preferred_times", how can i send it with the post-call data? @AI Evy
a
Thanks for tagging me @anton333_50203. I'll look through relevant sources and get back to you shortly.
### Answer To include a specific variable like "preferred_times" that was deduced by a tool during the call in your post-call data, you need to configure the
post_call_analysis_data
field in your agent configuration [(1) ]() [(2) ]() [(3) ]() . You can define custom data extraction fields in the agent configuration like this:
Copy code
javascript
"post_call_analysis_data": [
  {
    "type": "string",
    "name": "preferred_times",
    "description": "The preferred times mentioned by the customer during the call",
    "examples": [
      "Monday 9am-5pm",
      "Weekends only"
    ]
  }
]
The
post_call_analysis_data
array allows you to specify custom variables that the LLM will attempt to extract from the conversation . Each field includes: - `type`: The data type (string, boolean, number, etc.) - `name`: The variable name (like "preferred_times") - `description`: What the variable represents - `examples`: Sample values to guide extraction Important notes about post-call analysis variables: 1. The LLM will try to fill the variables, but there's no guarantee they'll always be populated [(4) ]() 2. These variables are extracted after the call ends and are available in the
call_analyzed
webhook event [(5) ]() 3. The variables are not available during the call - they're only extracted during post-call analysis [(6) ]() The extracted data will be included in the post-call analysis results and can be accessed through webhooks after the call completes [(5) ]() .
​ To learn more, see the sources I considered: [[1] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] Get Agent](https://docs.retellai.com/api-references/get-agent) [[4] Post Call Data Analysis - Nullable Variables](https://discord.com/channels/1186424376300679209/1376599913621885099) [[5] Discord message from @keshav3 on 2025-01-30](https://discord.com/channels/1186424376300679209/1186462578310910112/1334444968156332126) [[6] How to pass in variables in the General Tool / State Tool function calls?](https://discord.com/channels/1186424376300679209/1229563946378203188) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
But what if I want the actual value that was sent from the webhook and not the spoken date? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the available documentation, post-call analysis extracts data from the conversation transcript and spoken content, not from webhook payloads or tool responses during the call [(1) ]() [(2) ]() . The
post_call_analysis_data
configuration works by having the LLM analyze the conversation after it ends to extract the specified variables [(3) ]() [(4) ]() [(5) ]() [(6) ]() . The analysis looks at what was actually said during the call, not the structured data that may have been sent via webhooks during tool calls. If you need to capture the exact webhook values that were sent during tool calls (rather than what was spoken) , you would need to: 1. Store those values in your webhook handler during the call 2. Associate them with the call using the
call_id
3. Retrieve them separately from your own storage system after the call The post-call analysis feature is designed to extract insights from the conversation content itself, not to preserve the structured data exchanged between tools and your backend systems during the call [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[2] Unlock Insights with Post-Call Analysis | Retell AI](https://www.retellai.com/features/post-call-analysis) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[4] List Agents](https://docs.retellai.com/api-references/list-agents) [[5] Update Agent](https://docs.retellai.com/api-references/update-agent) [[6] Get Agent](https://docs.retellai.com/api-references/get-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.