kevinstonepdx
07/30/2025, 9:05 PMAI Evy
07/30/2025, 9:05 PMAI Evy
07/30/2025, 9:05 PMjson
{
"type": "object",
"properties": {
"phone_number": {
"type": "string",
"description": "The phone number to send SMS to"
},
"SMS_text": {
"type": "string",
"description": "The SMS message text to send"
}
},
"required": [
"phone_number",
"SMS_text"
]
}
2. HTTP Method Limitation
Parameter definitions are only available for POST, PATCH, and PUT requests . If you're using GET or DELETE methods, parameters won't be sent in the request body.
3. Common Schema Mistakes
A frequent issue is not adding "type": "object" to the top level of the JSON schema . This can cause the function to fail saving or not pass parameters correctly.
4. Prompt Instructions
Ensure your prompt explicitly instructs the LLM when and how to use both parameters [(2) ]() . For example:
When sending an SMS, call the send_sms function with both the phone_number and SMS_text parameters.
5. Request Body Structure
When the function is called, Retell sends the parameters in the args object within the request body [(1) ]() [(2) ]() :AI Evy
07/30/2025, 9:05 PMjson
{
"name": "your_function_name",
"call": {...},
"args": {
"phone_number": "value",
"SMS_text": "value"
}
}
Troubleshooting Steps:
1. Verify both parameters are in your JSON schema with proper types and descriptions
2. Check that you're using POST, PATCH, or PUT method
3. Ensure "type": "object" is at the top level of your schema
4. Update your prompt to explicitly mention using both parameters
5. Test that your webhook endpoint is correctly parsing the args object
If the issue persists after checking these items, you might want to examine the actual request payload being sent to your webhook to see which parameters are included.AI Evy
07/30/2025, 9:05 PMAI Evy
07/30/2025, 9:05 PM