https://retellai.com/?utm_source=discord&utm_medium=seo logo
does this json look clean: { "type": "object", "...
# ❓・ai-evy-support
j
@AI Evy does this json look clean: { "type": "object", "required": [ "eventID", "new_datetime", "end_datetime" ], "properties": { "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') " } } }
a
Thanks for tagging me @joesturdy. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Your JSON schema looks mostly good but has one issue - you're missing the
eventID
property definition in the
properties
section, even though it's listed in the
required
array [(1) ]() . Here's what needs to be fixed:
Copy code
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) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] custom function Error with VALID JSON Schema](https://discord.com/channels/1186424376300679209/1310169696582111274) ​
j
@AI Evy what about this one: { "type": "object", "required": [ "new_datetime", "end_datetime" ], "properties": { "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') " } } }
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] custom function Error with VALID JSON Schema](https://discord.com/channels/1186424376300679209/1310169696582111274) [[4] MASTER THE FUTURE OF VOICE AI - Never Miss Another Appointment](

https://www.youtube.com/watch?v=Fpw3Yrg3JoY▾

) [[5] JSON Schema not saving in custom functions](https://discord.com/channels/1186424376300679209/1319363416296657039) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer This JSON schema looks clean and properly formatted for Retell AI custom functions [(1) ]() [(2) ]() . You've correctly structured it with: - The required
"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) ]() .
j
@AI Evy and what about this one: { "type": "object", "required": [ "date_time_min", "date_time_max" ], "properties": { "date_time_min": { "type": "string", "description": "Minimum date and time to check in ISO 8601 format (YYYY-MM-DDTHH:MM:SS, e.g., '2025-03-15T09:00:00') " }, "date_time_max": { "type": "string", "description": "Maximum date and time to check in ISO 8601 format (YYYY-MM-DDTHH:MM:SS, e.g., '2025-03-15T17:00:00') " } } }
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer This JSON schema looks clean and properly formatted for Retell AI custom functions [(1) ]() [(2) ]() . Your schema follows the correct structure with: - The required
"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.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.