https://retellai.com/?utm_source=discord&utm_medium=seo logo
I’m having an issue where my custom function (API ...
# ❓・ai-evy-support
k
@AI Evy I’m having an issue where my custom function (API tool) is not passing query parameters to my backend, even though I’ve set them up in the function configuration. No query parameters are sent; the backend receives {} as arguments.
a
Thanks for tagging me @kkoya_. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] How to pass query URL parameters from conversation to GET request](https://discord.com/channels/1186424376300679209/1384523020110008420) ​
### Answer When configuring a custom function in Retell AI, you can define query parameters in the function setup, and these can include dynamic variables from the conversation [(1) ]() [(2) ]() . However, if your backend is only receiving empty arguments ({}) , it is likely that the parameter values are not being correctly captured or substituted at runtime. Some key points to check: - For GET requests, ensure the query parameters are set up in the function configuration, and that the variables you reference actually have values at the time the function is called . - If the variable (e.g., {{user_input}}) does not have a value when the request is made, the backend will receive the variable name as a string, not the actual value [(3) ]() . - You need to use dynamic variables, which are populated during the conversation, and make sure they are properly extracted and stored before the function is triggered [(1) ]() [(2) ]() [(3) ]() . If you are still seeing this issue, it may be related to when and how the dynamic variables are populated in your flow. Review your flow to ensure values are collected before the function is called. If using GET requests, this is a known pain point—consider using POST with a JSON body as a workaround, as POST requests allow you to define and pass parameters directly [(3) ]() . Check out these resources for more detail: - [Custom Function](
versation-flow/custom-function) - [Integrate any system with custom function]() - [How to pass query URL parameters from conversation to GET request]() Would you like a more general answer or troubleshooting steps beyond what's in the documentation?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
Hey @AI Evy , Just to follow up—I’ve tried setting the query parameters as both dynamic variables and static values in the custom function, but my backend still isn’t receiving any query parameters (it just gets an empty object every time). I’ve double-checked the function config and the flow, but no luck so far. Any other ideas or known issues I should be aware of? Thanks!
a
Thanks for the follow-up, @kkoya_. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] How to pass query URL parameters from conversation to GET request](https://discord.com/channels/1186424376300679209/1384523020110008420) [[2] dynamic variables in function query parameters are not parsed](https://discord.com/channels/1186424376300679209/1414306451656151291) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
s://discord.com/channels/1186424376300679209/1384523020110008420) . If you need more advanced troubleshooting or want to escalate the issue, you may want to monitor the official documentation for updates or open a support ticket.
### Answer There are multiple community reports and documentation notes about issues with query parameters in custom functions, especially for GET requests: - If you set query parameters using dynamic variables (e.g., city={{city}}) , but the variable doesn't have a value at the time of the request, the backend will receive the literal string (e.g., {{city}}) or nothing at all, resulting in empty arguments [(1) ]() . - Some users have reported that dynamic variables in function query parameters are not always parsed and passed through as expected. This has been observed both when using dynamic variables and even static values in some cases [(2) ]() . - A known workaround is to use a POST request with parameters in the JSON body, which does allow you to pass values directly and reliably [(3) ]() [(1) ]() . - If you do not see any query parameters—even with static values—double-check that the custom function configuration is saved and the endpoint URL is correct. However, if you have already verified this, it may be a current limitation or bug in how Retell AI handles query parameters in GET requests [(2) ]() [(1) ]() . - There is no official documentation confirming a guaranteed fix for this pattern; community guidance suggests dynamic variable extraction and POST requests as the most reliable path today [(3) ]() [(2) ]() [(1) ](http
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.