Emanuel
01/09/2026, 6:41 PMAI Evy
01/09/2026, 6:41 PMAI Evy
01/09/2026, 6:41 PMjson
{
"properties": {
"user": {
"name": "John Doe",
"age": 26
}
}
}
You can extract user.name and save it as a dynamic variable like {{user_name}}, then reference it later in the conversation.
Important tip from the community: When using the extracted variable in subsequent custom functions, reference it using the {{variable_name}} syntax in both the parameter value and description fields. For example: Use this as the treatment id: {{treatment_id}} [(5) ]()AI Evy
01/09/2026, 6:41 PMAI Evy
01/09/2026, 6:41 PMEmanuel
01/09/2026, 6:58 PMAI Evy
01/09/2026, 6:58 PMAI Evy
01/09/2026, 6:58 PMpython
return JSONResponse(status_code=200, content={"result": "25f and sunny"})
Step 2: Set response variables [(2) ]()
In your function configuration, use the "Set response variables" option to extract values from the response and save them as dynamic variables for use later in the conversation.
For example, if your response body looks like:
json
{
"properties": {
"user": {
"name": "John Doe",
"age": 26
}
}
}
You can extract user.name and save it as {{user_name}}.
Step 3: Reference the variable later [(3) ]()
Once saved, use the {{variable_name}} syntax anywhere dynamic variables are supported:
- Prompts
- Begin message
- Tool configurations (URLs, descriptions)
- Transfer call phone numbers
Important distinction from community feedback: [(4) ]()
- **Response Variables**: Used after a function is called to extract values from its output
- **Extract Dynamic Variable**: Called before a function to set variables ahead of timeAI Evy
01/09/2026, 6:58 PMAI Evy
01/09/2026, 6:58 PMEmanuel
01/09/2026, 6:59 PMAI Evy
01/09/2026, 6:59 PMAI Evy
01/09/2026, 7:00 PMjson
{
"transfer_number": "+14157774444"
}
Then in your Custom Function's Response Variables section, extract that value and save it as a dynamic variable (e.g., {{transfer_number}}) .
Once saved, you can use {{transfer_number}} in your Transfer Call phone number field—dynamic variables work in transfer call phone numbers. [(2) ]()
Note: If your response returns an array instead of an object, you'll need to reference it with an index like transfer_numbers[0] when setting the response variable. [(7) ]()AI Evy
01/09/2026, 7:00 PMAI Evy
01/09/2026, 7:00 PMEmanuel
01/09/2026, 7:00 PMAI Evy
01/09/2026, 7:00 PMAI Evy
01/09/2026, 7:01 PMAI Evy
01/09/2026, 7:01 PMAI Evy
01/09/2026, 7:01 PM