bohraz
09/28/2025, 3:57 AMAI Evy
09/28/2025, 3:57 AMAI Evy
09/28/2025, 3:57 AMjson
{
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "The user's unique identifier"
}
},
"required": ["user_id"]
}
When configuring the function, you can set the value as {{user_id}}. If the dynamic variable user_id is set in the conversation, it will be injected into the request payload automatically [(1) ]() [(2) ]() .AI Evy
09/28/2025, 3:57 AMAI Evy
09/28/2025, 3:57 AMbohraz
09/28/2025, 4:00 AMAI Evy
09/28/2025, 4:00 AMAI Evy
09/28/2025, 4:00 AMjson
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": ["city"]
}
When your function is called, Retell will inject dynamic variable values (e.g., {{city}}) into the request body fields that match the schema definition [(1) ]() [(3) ]() [(2) ]() .
Query parameters are a separate optional section in the custom function configuration and are not the same as the JSON schema parameters [(1) ]() [(2) ]() . The schema is specifically for the request body payload.AI Evy
09/28/2025, 4:00 AMAI Evy
09/28/2025, 4:00 AMAI Evy
09/28/2025, 4:01 AMbohraz
09/28/2025, 4:01 AMAI Evy
09/28/2025, 4:01 AMAI Evy
09/28/2025, 4:01 AMAI Evy
09/28/2025, 4:01 AMbohraz
09/28/2025, 4:13 AMAI Evy
09/28/2025, 4:13 AMAI Evy
09/28/2025, 4:13 AMAI Evy
09/28/2025, 4:13 AMjson
{
"type": "object",
"properties": {
"customer_number": {
"type": "string",
"description": "The customer's number"
}
},
"required": ["customer_number"]
}
If the dynamic variable is not set, the function call will fail and your endpoint will see this error .AI Evy
09/28/2025, 4:13 AMbohraz
09/28/2025, 4:15 AMAI Evy
09/28/2025, 4:15 AMAI Evy
09/28/2025, 4:15 AMAI Evy
09/28/2025, 4:15 AMAI Evy
09/28/2025, 4:15 AMbohraz
09/28/2025, 4:16 AM{
"type": "object",
"required": [
"CellPhone",
"Email",
"Make",
"State",
"VIN",
"Model",
"FirstName",
"City",
"Odometer",
"Address",
"CustNo",
"LastName",
"Zip"
],
"properties": {
"Zip": {
"type": "string",
"description": "user's zip code"
},
"Email": {
"type": "string",
"description": "user's email address"
},
"Address": {
"type": "string",
"description": "user's address"
},
"FirstName": {
"type": "string",
"description": "user's first name"
},
"CellPhone": {
"type": "string",
"description": "user's cell phone number"
},
"Odometer": {
"type": "number",
"description": "user's vehicle odometer reading"
},
"Make": {
"type": "string",
"description": "user's vehicle make"
},
"City": {
"type": "string",
"description": "user's city"
},
"CustNo": {
"type": "string",
"description": "user's customer Id number"
},
"State": {
"type": "string",
"description": "user's state"
},
"Model": {
"type": "string",
"description": "user's vehicle model"
},
"VIN": {
"type": "string",
"description": "user's vehicle vin"
},
"LastName": {
"type": "string",
"description": "user's last name"
}
}
}AI Evy
09/28/2025, 4:16 AMAI Evy
09/28/2025, 4:16 AMAI Evy
09/28/2025, 4:16 AMAI Evy
09/28/2025, 4:16 AMbohraz
09/28/2025, 4:21 AMAI Evy
09/28/2025, 4:21 AMAI Evy
09/28/2025, 4:21 AMAI Evy
09/28/2025, 4:21 AMAI Evy
09/28/2025, 4:21 AM