joesturdy
08/25/2025, 1:27 PMAI Evy
08/25/2025, 1:27 PMAI Evy
08/25/2025, 1:27 PMAI Evy
08/25/2025, 1:27 PMeventID property definition in the properties section, even though it's listed in the required array [(1) ]() .
Here's what needs to be fixed:
json
{
"type": "object",
"required": [
"eventID",
"new_datetime",
"end_datetime"
],
"properties": {
"eventID": {
"type": "string",
"description": "The unique identifier for the event"
},
"new_datetime": {
"type": "string",
"description": "New date and time in ISO format (YYYY-MM-DDTHH:MM:SS, e.g., '2025-03-15T14:00:00') "
},
"end_datetime": {
"type": "string",
"description": "End date and time in ISO format (YYYY-MM-DDTHH:MM:SS format, e.g., '2025-03-15T14:30:00') "
}
}
}
The Retell documentation shows that parameters should be defined using JSON schema format, and one common mistake is not properly defining all required properties . Also, avoid including $schema or title fields at the top level as these can cause issues with Retell's custom function validation [(2) ]() .AI Evy
08/25/2025, 1:27 PMjoesturdy
08/25/2025, 1:28 PMAI Evy
08/25/2025, 1:28 PMAI Evy
08/25/2025, 1:28 PMAI Evy
08/25/2025, 1:28 PMAI Evy
08/25/2025, 1:28 PM"type": "object" at the top level [(1) ]()
- All required properties properly listed in the required array
- Each property defined in the properties section with appropriate type and description
- No extra fields like $schema or title that could cause validation issues [(3) ]()
The schema follows the JSON schema format used by Retell AI, which is based on the same format used by OpenAI's function calling [(1) ]() [(4) ]() . Your datetime format specification using ISO format is also appropriate for date/time parameters [(1) ]() .
This should work without any issues when saving your custom function in Retell AI [(5) ]() .joesturdy
08/25/2025, 1:29 PMAI Evy
08/25/2025, 1:29 PMAI Evy
08/25/2025, 1:29 PM"type": "object" at the top level [(1) ]()
- All required properties properly listed in the required array
- Each property defined in the properties section with appropriate type and description
- Clear ISO 8601 format specification for datetime parameters
The schema follows the JSON schema format used by Retell AI for defining custom function parameters [(1) ]() [(2) ]() . One common mistake that causes validation issues is not adding "type": "object" to the top level of the JSON schema, which you've correctly included .
This should work without any issues when saving your custom function in Retell AI.AI Evy
08/25/2025, 1:29 PMAI Evy
08/25/2025, 1:29 PM