https://retellai.com/?utm_source=discord&utm_medium=seo logo
How can we set conversation node to save text as a...
# ❓・ai-evy-support
a
@AI Evy How can we set conversation node to save text as a variable?
a
Thanks for tagging me @Aaron. I'll look through relevant sources and get back to you shortly.
### Answer To save text from a conversation as a variable, use the Extract Dynamic Variable Node in your conversation flow. [(1) ]() ## How to set it up: 1. Add an Extract Dynamic Variable Node to your flow 2. Create a variable by filling in: - Variable Name – A short name to reference this variable (e.g.,
customer_name
) - Description – A brief explanation of what this value should be - Variable Type – Choose
Text
for text values ## Variable Types available: - Text - Any word or sentence (e.g.,
"headache"
,
"John Smith"
) - Number - A numeric value (e.g.,
42
,
98.6
) - Enum - A value from a predefined list - Boolean - True or false Once extracted, you can reference the variable elsewhere in your flow using the
{{variable_name}}
syntax. [(2) ]()
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Should i just say in a conversation node to save EXAMPLE as {{variablename}} would that do the same?
@AI Evy Should i just say in a conversation node to save EXAMPLE as {{variablename}} would that do the same?
a
Thanks for the follow-up, @Aaron. I'll get back to you soon.
### Answer No, simply writing "save EXAMPLE as {{variablename}}" in a conversation node prompt won't reliably extract and store information as a dynamic variable. The Extract Dynamic Variable Node is specifically designed for this purpose—it extracts information from the conversation and stores it as a dynamic variable. [(1) ]() Here's the difference: -
{{variablename}}
syntax
is for referencing or injecting existing variable values into prompts, begin messages, tool configurations, etc. [(2) ]() - Extract Dynamic Variable Node is for extracting and saving information from the conversation into a variable that you can then reference later. [(1) ]() To properly save extracted text as a variable: 1. Use the Extract Dynamic Variable Node 2. Define the variable name, description, and type (Text, Number, Enum, or Boolean) Once saved, you can then reference that variable anywhere using
{{variablename}}
. [(2) ]()
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.