bohraz
09/28/2025, 3:24 AMAI Evy
09/28/2025, 3:24 AMAI Evy
09/28/2025, 3:24 AMjson
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": [
"city"
]
}
[(1) ]() , [(2) ]()
During the function setup, you can specify dynamic variables as the values for each property, so when the function is called, Retell fills the request body with the current values of those dynamic variables. There is no separate step to "map" variables—Retell automatically injects the values if the schema properties match the dynamic variables' names.
If you want to extract specific values from the API response for later use, you can configure response variables so they are saved as dynamic variables for subsequent steps [(1) ]() .
For PUT requests, ensure that your JSON schema defines all required fields and that the variable names in your schema match the names of the dynamic variables you expect to use , [(2) ]() .AI Evy
09/28/2025, 3:25 AMAI Evy
09/28/2025, 3:25 AMbohraz
09/28/2025, 3:27 AMAI Evy
09/28/2025, 3:27 AMAI Evy
09/28/2025, 3:27 AMAI Evy
09/28/2025, 3:27 AMAI Evy
09/28/2025, 3:27 AMbohraz
09/28/2025, 3:51 AMAI Evy
09/28/2025, 3:51 AMAI Evy
09/28/2025, 3:52 AMAI Evy
09/28/2025, 3:52 AMAI Evy
09/28/2025, 3:52 AMjson
{
"type": "object",
"properties": {
"custNo": {
"type": "string",
"description": "Customer number"
}
},
"required": [
"custNo"
]
}
[(1) ]()
When you configure the function node in the Flow UI, you'll set the value for "custNo" to {{custNo}}. At runtime, Retell will replace {{custNo}} with the actual value of the dynamic variable from the conversation context or call payload [(2) ]() .
You put the dynamic variable reference (e.g., {{custNo}}) in the parameter value field in the function node's configuration—not in the schema itself, but in the value that will be sent with the request , [(1) ]() .bohraz
09/28/2025, 3:55 AMAI Evy
09/28/2025, 3:55 AMAI Evy
09/28/2025, 3:55 AMAI Evy
09/28/2025, 3:55 AMAI Evy
09/28/2025, 3:55 AM