punk8357
09/10/2025, 12:42 AMAI Evy
09/10/2025, 12:43 AMAI Evy
09/10/2025, 12:43 AMargs object when making the POST request to your endpoint .
For Dynamic Variables:
Dynamic variables like {{email}} are used for extracting values from API responses and referencing them later in conversations . These are set in the "response variables" section and are meant to be used in prompts or other parts of the conversation flow .
Request Structure:
When Retell sends a POST request to your Node.js backend, the structure should be :
json
{
"name": "function_name",
"call": "call_object",
"args": {
"email": "actual_email_value"
}
}
[(1) ]() , [(2) ]()
If you're seeing {{email}} in the POST request instead of the actual email value, it suggests the LLM isn't properly extracting the email from the conversation. Make sure your function parameter schema is correctly defined and that your prompt explicitly instructs the LLM when and how to call the function with the email parameter .
One community member mentioned that trailing slashes in URLs can cause issues with custom functions [(3) ]() , so double-check your endpoint URL format as well.AI Evy
09/10/2025, 12:43 AMAI Evy
09/10/2025, 12:43 AMpunk8357
09/10/2025, 1:54 PMAI Evy
09/10/2025, 1:54 PMAI Evy
09/10/2025, 1:54 PMargs object [(1) ]() [(2) ]() :
json
{
"name": "the name of the custom function",
"call": "the call object for you to get more context about the call",
"args": "the arguments for the custom function, as a JSON object"
}AI Evy
09/10/2025, 1:54 PMAI Evy
09/10/2025, 1:55 PM"type": "object" at the top level.
4. Request Headers: Retell includes specific headers with the request :
- `X-Retell-Signature`: encrypted request body using your secret key
- Content-Type: application/json
Debugging Steps:
- Log the entire request body your Node.js backend receives to see exactly what Retell is sending
- Verify your parameter schema follows the JSON schema format correctly
- Check that your endpoint is configured to handle POST requests (not GET)
- Ensure there are no URL formatting issues like trailing slashes
If the tool invocation shows correct parameters but your function isn't receiving them, the issue is likely in the HTTP method configuration, URL format, or how your backend is parsing the request body.AI Evy
09/10/2025, 1:55 PMpunk8357
09/10/2025, 1:56 PMAI Evy
09/10/2025, 1:56 PMAI Evy
09/10/2025, 1:56 PMAI Evy
09/10/2025, 1:57 PM{{email}} don't get properly resolved in GET request query parameters - they get sent as literal text instead of the actual values [(3) ]() .
The community discussion reveals that when using GET requests with dynamic variables in query parameters, the variables don't get set and are passed as literal strings like {{email}} instead of the actual email value .
Current Workaround:
The recommended solution is to use POST requests instead of GET requests . With POST requests, you can define parameters using JSON schema format, and the LLM will properly extract and pass the values in the args object [(1) ]() [(2) ]() .
Why This Happens:
The issue appears to be that dynamic variables can't be set directly in calls yet - they need to be extracted using custom functions with JSON parameters and then sent back to the call as dynamic variables [(3) ]() . When using GET requests, this extraction process doesn't work properly for query parameters.
Solution:
Switch to using POST, PATCH, or PUT requests where parameter definitions are fully supported [(1) ](AI Evy
09/10/2025, 1:57 PMpunk8357
09/10/2025, 1:57 PM