https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to run the Extract Variable functio...
# ❓・ai-evy-support
j
@AI Evy Is it possible to run the Extract Variable function AFTER the call ends? For instance, at the same time as the Post-Call Data Extraction is run
a
Thanks for tagging me @Jeremy. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer The Extract Dynamic Variables tool is designed to extract values during the call—it's a function the LLM invokes in real-time when the user provides information. [(1) ]() For extracting data after the call ends, you should use Post Call Analysis Data instead. This is configured at the agent level and runs after the call completes. [(2) ]() You can define custom variables to extract in the
post_call_analysis_data
field:
Copy code
json
"post_call_analysis_data": [
  {
    "type": "string",
    "name": "customer_name",
    "description": "The name of the customer.",
    "examples": [
      "John Doe",
      "Jane Smith"
    ]
  }
]
The post-call analysis supports variable types including
string
, and you can specify a description and examples to guide extraction. Note that the LLM will try to fill these variables, but there's no guarantee all fields will be populated. [(3) ]() So to summarize: Extract Dynamic Variables = during call; Post Call Analysis Data = after call ends.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[2] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[3] Post Call Data Analysis - Nullable Variables](https://discord.com/channels/1186424376300679209/1376599913621885099) ​
j
@AI Evy is there a way to see the post-call analysis on a test chat?
a
Thanks for the follow-up, @Jeremy. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific information about viewing post-call analysis results for test chats directly within the testing interface. What I can confirm is that after a call is analyzed, you can access the analysis results through the Dashboard. [(1) ]() You can also set up webhooks or APIs to integrate the data into your workflows. For post-call analysis to work, you'll need to ensure that data storage is not opted out—if you have enabled settings to not store data, post-call analysis will not be populated. [(2) ]() If you need to see updated analysis results, you can edit the analysis prompts in your agent's Post-Call Data Extraction section and rerun the analysis for completed calls. [(3) ]() Check out these potentially useful sources: - [Post Call Analysis Overview]() - [Rerun Post-Call/Chat Analysis]() - [Unlock Insights with Post-Call Analysis]() Would you like me to try to answer more generally based on my knowledge?
​ To learn more, see the sources I considered: [[1] Unlock Insights with Post-Call Analysis | Retell AI](https://www.retellai.com/features/post-call-analysis) [[2] Post-Call Analysis](https://discord.com/channels/1186424376300679209/1339583616665255968) [[3] Rerun Post-Call/Chat Analysis](https://docs.retellai.com/features/rerun-call-analysis) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.