https://retellai.com/?utm_source=discord&utm_medium=seo logo
In custom function urls, how can I make a dynamic ...
# ❓・ai-evy-support
b
@AI Evy In custom function urls, how can I make a dynamic variable plug into the end of it like /api/DYNAMICVARIABLEHERE
a
Thanks for tagging me @bohraz. I'll look through relevant sources and get back to you shortly.
### Answer To insert a dynamic variable into the end of a custom function URL in Retell AI, use double curly braces for the variable—like /api/{{DYNAMICVARIABLE}}. However, based on user reports, while this works for query parameters, there are issues with dynamic path variables in GET endpoints: the variable inside {{}} may not be replaced as expected and could result in errors. Setting dynamic variables for use in the URL should be done through the "Extract Dynamic Variable" feature or from function responses, not directly in the prompt. If you set the variable properly (e.g., via response variable extraction or inbound webhook) , it should populate in POST bodies but may not reliably populate in the path section of a GET URL at this time [(1) ]() .
​ To learn more, see the sources I considered: [[1] I'm having trouble with Custom Functions that need dynamic path variables in GET endpoints](https://discord.com/channels/1186424376300679209/1420898782828040192) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.