myst.c
06/22/2025, 9:16 PMAI Evy
06/22/2025, 9:16 PMAI Evy
06/22/2025, 9:16 PM"type": "object" at the top level [(1) ]() [(2) ]() .
One common mistake is not adding "type": "object", to the top level of the JSON schema . Here's the correct format for your parameter schema:
javascript
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": [
"city"
]
}
The key points to fix this error:
1. Ensure your JSON schema starts with "type": "object"
2. Remove any unnecessary fields like "$schema" and "title" - they are not needed by Retell [(3) ]()
3. Follow the OpenAI Function Calling Guide format for parameter definitions [(1) ]() [(2) ]()
If you're still having issues, try clicking one of the examples in the Retell dashboard and update accordingly . The parameters should be modeled off of the OpenAI function calling format, not a full JSON schema with metadata [(4) ]() .AI Evy
06/22/2025, 9:16 PMAI Evy
06/22/2025, 9:16 PMmyst.c
06/29/2025, 2:15 AMAI Evy
06/29/2025, 2:15 AMAI Evy
06/29/2025, 2:15 AM- {{user_age}} > 18
- {{current_time}} > 9 AND {{current_time}} < 18
- {{user_location}} == "New York"
- {{user_location}} != "New York"
- "New York, Los Angeles" CONTAINS {{user_location}}
- "New York, Los Angeles" NOT CONTAINS {{user_location}}
- {{user_age}} < 18 OR {{user_location}} == "New York"
The key requirement is that you can only use variables that are passed in as dynamic variables for equation conditions . If you need to use information extracted by the LLM during the call, you would need to use prompt conditions instead .
Note that string comparisons (==, Contains, Not Contains, and Not Equal) do not require numerical input, while other comparison operators require numerical input and will always evaluate to false if the input is not a number .AI Evy
06/29/2025, 2:15 AMAI Evy
06/29/2025, 2:15 AM