https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to handle convestaion flow dynamic variables
# ❓・ai-evy-support
d
how to handle convestaion flow dynamic variables @AI Evy
a
Thanks for tagging me @danielh_32629. I'll look through relevant sources and get back to you shortly.
### Answer Dynamic variables in Conversation Flow allow you to inject personalized data into your agent's responses using the
{{variable_name}}
syntax. [(1) ]() ## Setting Up Dynamic Variables Agent-Level Default Variables: You can configure default dynamic variables at the agent level that serve as fallback values when specific variables aren't included in the call request. These are set in the
default_dynamic_variables
object. [(2) ]() [(3) ]() For Outbound Calls: When using the Create Phone Call API, set your variables in the
retell_llm_dynamic_variables
field (all values must be strings) . [(1) ]() For Conversation Flow: When creating a conversation flow, include default dynamic variables like this: [(3) ]()
Copy code
json
{
  "default_dynamic_variables": {
    "company_name": "Retell Inc",
    "support_hours": "9 AM - 5 PM"
  }
}
## Using Dynamic Variables Dynamic variables work in: [(1) ]() - Prompts and agent instructions - Begin messages - Tool configurations (URLs, descriptions, property descriptions) - Call handling (voicemail prompts, transfer numbers, warm transfer instructions) - Webhook URLs ## Extracting Variables from Conversation Use the Extract Dynamic Variable Node to extract information from conversations and store them as dynamic variables. [(4) ]() When creating a variable, specify: - Variable Name - Description - Variable Type (Text, Number, Enum, or Boolean) - Enum Options (if type is enum) ## Important Notes Multi-Agent Flows: When testing multi-agent workflows, only dynamic variables explicitly referenced in prompts may appear in the test interface. [(5) ]() A workaround is adding an unconnected conversation node listing all dynamic variables you want to input. Editing Variables: In conversation flow agents, you can add dynamic variables by including them in the diagram, and you can pass them to function calls as parameters even if they're not used in prompts. [(7) ]()
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[4] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[5] Multi-Agent Conversation Flow - Not Importing Dynamic Fields](https://discord.com/channels/1186424376300679209/1425986785812549693) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
but how i set them up in the builder @User