https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can I use dynamic variables in post call analysis ...
# ❓・ai-evy-support
d
@AI Evy Can I use dynamic variables in post call analysis just to capture their final state?
a
Thanks for tagging me @dyshah46. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can access dynamic variables after a call ends. Dynamic variables that are collected during the call are available in the
collected_dynamic_variables
field of the call object. [(1) ]() The call object includes
collected_dynamic_variables
which contains variables gathered during the conversation, such as information collected through conversation flow nodes. For post-call analysis specifically, you can configure
post_call_analysis_data
at the agent level to extract custom data from calls. [(2) ]() [(3) ]() This analysis becomes available after the call ends and can be accessed via the
call_analyzed
webhook event. [(1) ]() Additionally, there's community confirmation that multi-state agents can successfully extract variables in post-call analysis. [(4) ]()
​ To learn more, see the sources I considered: [[1] Update Call](https://docs.retellai.com/api-references/update-call) [[2] Create Draft Chat Agent Version](https://docs.retellai.com/api-references/create-chat-agent-version) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[4] Capturing and exporting dynamic variables](https://discord.com/channels/1186424376300679209/1299863990805204993) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.