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