https://retellai.com/?utm_source=discord&utm_medium=seo logo
so essentially, I have a question basically oh yea...
# ❓・ai-evy-support
h
@AI Evy so essentially, I have a question basically oh yeah so it's essentially what I was gonna ask was for instance like if the user wants me to call them back and I want to reference particular things when like my assistant actually calls them back like for example, if it's their birthday and they say hey, can you call me back and then my assistance you know or else I'll call you back whateveressentially I'm pretty sure I would use the extract dynamic variable tool but is that like does that have like a context window to last call if it's the same contact ID for instance like if I extract that variable, how would I reference it so like the agent basically is like calling Off where we last l like does it have like a context window of last time that they called the user or how can I implement this?
a
Thanks for tagging me @hans_70884. I'll look through relevant sources and get back to you shortly.
### Answer --- Dynamic variables extracted during a call don't automatically persist across multiple calls. [(1) ]() Each call is independent, so variables extracted in one call won't be available in a subsequent callback unless you explicitly store and pass them back. Here's how to implement callback context: 1. Extract variables during the initial call using the Extract Dynamic Variable tool [(2) ]() [(3) ]() 2. Store the extracted information in your backend system (database, CRM, etc.) by passing them through a custom function or webhook [(1) ]() 3. When initiating the callback, retrieve the stored data from your system and pass it as dynamic variables in the
retell_llm_dynamic_variables
field when creating the outbound call For example, when creating the callback via the Create Phone Call API:
Copy code
json
{
  "user_name": "John Smith",
  "birthday_context": "mentioned it's their birthday",
  "previous_topic": "product inquiry"
}
The agent will then have access to these variables in prompts using
{{user_name}}
,
{{birthday_context}}
, etc. Key point: You need to build the persistence layer yourself—Retell doesn't maintain cross-call memory automatically. Extract → Store externally → Pass back on callback.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[3] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.