K Rudy
02/12/2026, 7:12 PMAI Evy
02/12/2026, 7:12 PMAI Evy
02/12/2026, 7:12 PM{{variable_name}} when referencing the variable—not single braces {variable_name}. [(1) ]()
2. Extraction timing
The Extract Dynamic Variables tool must run before any function that uses those variables. If you're trying to use the variable in a custom function URL, you need to extract it using the Extract Dynamic Variables tool first—not extract it with the custom function. Variables extracted via a custom function's response go into the body, not the URL. [(2) ]()
3. Prompt guidance
It helps to explicitly tell the agent in your prompt when to invoke the extraction. For example: [(3) ]()
When user states his name and phone number, please extract the information by calling the `extract_user_details` function.
4. Variable name matching
Ensure the variable name in your extraction matches exactly (case-sensitive) what you're using elsewhere. [(2) ]()
5. Testing
Try a simple test where your agent just speaks the extracted variable value to confirm it's being captured. [(4) ]()
If you can share a call ID, that would help identify exactly where the issue is occurring.AI Evy
02/12/2026, 7:12 PMAI Evy
02/12/2026, 7:12 PMK Rudy
02/12/2026, 7:16 PMAI Evy
02/12/2026, 7:16 PMAI Evy
02/12/2026, 7:16 PMAccountId from a custom function's API response, you should use Response Variables within that custom function configuration—not the Extract Dynamic Variables tool.
[(2) ]() , [(3) ]()
Here's how to do it:
1. In your custom function that returns the AccountId, configure Response Variables to extract the value from the API response and save it as a dynamic variable (e.g., {{AccountId}}) .
[(2) ]() , [(3) ]()
2. Once saved as a response variable, you can reference it later in the conversation using {{AccountId}}.
[(2) ]() , [(3) ]()
A community thread confirmed this exact issue: when appointment_id was extracted using a custom function's response variable (not the Extract Dynamic Variables tool) , it worked correctly for later use.
[(4) ]()
In summary: Use the Extract Dynamic Variables tool for extracting info the user says during the call. Use Response Variables in your custom function to capture data from API responses.
[(1) ]() , [(2) ](AI Evy
02/12/2026, 7:16 PMAI Evy
02/12/2026, 7:16 PMK Rudy
02/12/2026, 7:37 PMAI Evy
02/12/2026, 7:37 PMAI Evy
02/12/2026, 7:37 PMjson
{
"patients": [
{"AccountId": "123"},
{"AccountId": "456"}
]
}
You would need to use a path like patients[0].AccountId to get the first item's AccountId.
The response variable configuration requires you to specify the exact path to the value you want. Without an index, the system won't know which element in the array to select.
If you need to capture multiple AccountIds, you would need to set up separate response variables for each (e.g., patients[0].AccountId, patients[1].AccountId) , or restructure your API response to return a single value based on your business logic.AI Evy
02/12/2026, 7:37 PMAI Evy
02/12/2026, 7:37 PM