https://retellai.com/?utm_source=discord&utm_medium=seo logo
Update all webhook URLs in one go
# ❓・bug-report
j
Hi, is there a way I can set a global variable such as {{base_url}} and change it in one go to point to a specific URL? Say currently we're pointed at dev1.ngrok.com But dev2 wants to reproduce something without duplicating agent So we set a global variable {{base_url}} = "dev2.ngrok.com" We would love to have this because we're a 7 people team actively using (and loving!) retell but testing is a nightmare.
@AI Evy
a
Thanks for tagging me @jsdknvm_92719. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, there is no explicit feature in Retell AI that allows you to define a single global variable like {{base_url}} at the agent level and update its value everywhere in one go for all references [(1) ]() [(2) ]() [(3) ]() . Dynamic variables can be created and used throughout flows, but updating them globally for all nodes or changing their value for all team members with a single action is not documented. You can set default variable values in the agent configuration for faster setup and consistency, but this does not provide a mechanism for global variable overrides or mass updates as described in your use case [(3) ]() . Each dynamic variable's value is generally set or updated per session or via inbound data/webhooks [(1) ]() [(2) ]() [(3) ]() . If you want to discuss your workflow further or need a workaround, let me know. Otherwise, you can check: - [Extract Dynamic Variable Node]() - [Step 1: Configure global settings]() - [Platform Changelogs | Retell AI]() Would you like a general answer based on best practices or possible workarounds?
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[3] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
j
This doesn not answer my question @AI Evy - I am asking is there a way to set a {{base_url}} variable I can refer to in a function definniteiton as {{base_url}}/v1/book-call
a
Thanks for the follow-up, @jsdknvm_92719. I'll get back to you soon.
### Answer Based on the available documentation, you can use dynamic variables in Retell AI with the syntax {{variable_name}}, and these can be referenced in function URLs or tool configurations such as {{base_url}}/v1/book-call [(1) ]() . However, setting a single global variable like {{base_url}} and changing it in one place to update all references across functions or agents is not documented as a built-in feature . You can set default values for dynamic variables at the agent level, which act as fallbacks if a value isn't provided in a specific call, but updating this value globally for all sessions or team members in one step is not described . Each dynamic variable value is typically set per call/session through the API or configuration . For function definitions, you can reference a dynamic variable directly in the URL (e.g., {{base_url}}/v1/book-call) , but you'd need to ensure the correct value is injected for each session .
​ To learn more, see the sources I considered: [[1] 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.
j
Figured it out!
Basically set custom URLs as {{base_url}} And then go to Global Settings -> Security and Fallback Settings and set "Dynamic Variables"
o
Great, let know if you have another questions.