https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can i store info received during the call in a dyn...
# ❓・ai-evy-support
m
@AI Evy Can i store info received during the call in a dynamic variable for single prompt agents
a
Thanks for tagging me @maurizio_isendoorn. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can store information received during the call in dynamic variables for single prompt agents using the Extract Dynamic Variables tool [(1) ]() . To set this up: 1. Add an Extract Dynamic Variable Tool to your agent 2. Configure the variables you want to extract by specifying : - Variable Name – A short name to reference this variable - Description – A brief explanation of what this value should be - Variable Type – Choose from
Text
,
Number
,
Enum
, or
Boolean
3. Update your prompt to explicitly tell the agent when to extract variables :
Copy code
When user states his name and phone number, please extract the information by calling the `extract_user_details` function.
The extracted variables become available as dynamic variables that can be used throughout the conversation . You can extract various types of information including text (like names) , numbers, boolean values, or enum selections from predefined options .
​ To learn more, see the sources I considered: [[1] 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.