### 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](