https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I set up default values for dynamic variabl...
# ❓・ai-evy-support
g
@AI Evy How do I set up default values for dynamic variables? And can I use these default values in tool calls?
a
Thanks for tagging me @gitfudge. I'll look through relevant sources and get back to you shortly.
### Answer You can set default values for dynamic variables at the agent level. [(1) ]() These default variables serve as a fallback and will only be used when specific variables aren't included in the call request. Yes, you can use default dynamic variables in tool calls. Dynamic variables work in several places including tool configurations such as custom function URLs, tool descriptions, and property descriptions. For Conversation Flow agents, you can configure default dynamic variables using the
default_dynamic_variables
field. [(2) ]() Here's an example from the API:
Copy code
json
"default_dynamic_variables": {
  "company_name": "Retell Inc",
  "support_hours": "9 AM - 5 PM"
}
These defaults will be overridden if you provide specific values during call creation via
retell_llm_dynamic_variables
[(3) ]() or through the inbound call webhook. [(1) ]()
​ 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] Update Call](https://docs.retellai.com/api-references/update-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
g
How do I do it on the UI? @AI Evy
a
Thanks for the follow-up, @gitfudge. I'll get back to you soon.
### Answer To set default dynamic variables in the UI for Conversation Flow agents: [(1) ]() 1. Go to your flow 2. Navigate to "Security and fallback settings" in the agent global settings 3. Open "Default dynamic variables" 4. Enter values for your default dynamic variables 5. Click "Update" to save Note: There was a previous bug where default dynamic variables weren't saving properly in the UI, but this has been fixed. These default values will work as fallbacks when specific variables aren't provided during call creation, and they can be used in tool calls including custom function URLs, tool descriptions, and property descriptions. [(1) ]()
​ To learn more, see the sources I considered: [[1] Default Dynamic Variables not saving](https://discord.com/channels/1186424376300679209/1350197993688535061) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.