https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do set up dynamic variables in conversation fl...
# ❓・ai-evy-support
d
@AI Evy how do set up dynamic variables in conversation flow
a
Thanks for tagging me @danielh_32629. I'll look through relevant sources and get back to you shortly.
### Answer To set up dynamic variables in Conversation Flow, you have several options: ## Agent-Level Default Variables You can configure default dynamic variables at the agent level in the
default_dynamic_variables
field [(1) ]() . These serve as fallbacks when specific variables aren't included in the call request [(2) ]() .
Copy code
json
{
  "default_dynamic_variables": {
    "company_name": "Retell Inc",
    "support_hours": "9 AM - 5 PM"
  }
}
[(1) ]() ## Using Variables in Your Flow Dynamic variables use the
{{variable_name}}
syntax and can be used in [(2) ]() : - Prompts and agent instructions - Begin messages - Tool configurations (URLs, descriptions, property descriptions) - Call handling (voicemail prompts, transfer numbers, warm transfer instructions) - Webhook URLs ## Extract Dynamic Variable Node You can extract information from conversations and store them as dynamic variables using the Extract Dynamic Variable Node [(3) ]() . To create a variable, fill in : - 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 - Enum Options – Options to choose from (only when type is enum) ## Setting Variables at Runtime For outbound calls, set variables in the
retell_llm_dynamic_variables
field when using the Create Phone Call API [(2) ]() . For inbound calls, supply them in the Inbound Call Webhook . All values must be strings .
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.