Michael P
08/10/2024, 3:11 AMVapi
08/10/2024, 3:12 AMVapi
08/10/2024, 3:12 AMtrue or false). If the AI assistant is reporting an issue, the problem might not be with the response format itself, but rather with one of the following:
1. The AI assistant might not be receiving the response due to a network or communication issue.
2. There could be an error in the way the AI assistant is parsing or interpreting the response.
3. The AI assistant might be expecting additional information in the response that is not being provided.
4. The Google auth token might be invalid or expired, causing the calendar check to fail.
To further diagnose the issue, you may need to check the logs or error messages from the AI assistant's side to see why it's having problems checking availability. If you have access to the AI assistant's code or configuration, verify that it's correctly handling the JSON response from your tool. If the issue persists, please ask support for more info on this.Michael P
08/10/2024, 3:14 AMcheck_availability tool and call it with the token ({{token}}), a start datetime (start), and an end datetime (end) in ISO 8601 format. " Should I be specifying anything about the return structure? Note the token is a dynamic variable and I have confirmed that it is correct, so it's not part of the problem. The problem is specifically in the return structure.Vapi
08/10/2024, 3:15 AMcheck_availability tool. However, if the AI assistant is having trouble with the return structure, it might be expecting a different format or additional information.
In your server response, you're returning a JSON object with a "results" array that contains an object with a "result" key. If the AI assistant is not recognizing this structure, you might need to adjust the response to match the expected format of the AI assistant.
Here are a few things you could consider specifying or checking:
1. Ensure that the AI assistant is expecting the "results" array to contain an object with a "result" key.
2. Check if the AI assistant requires the "result" key to be nested within another object or expects a different key name.
3. Verify if the AI assistant needs any additional metadata in the response, such as a status code or message.
4. Confirm that the AI assistant is correctly parsing the JSON response and that there are no issues with data types (e.g., expecting a string "true" instead of a boolean true).
If you have access to the documentation or schema that the AI assistant is using to parse the response, review it to ensure your server's response structure aligns with those expectations. If the problem persists, you may need to consult the support or documentation for the AI assistant to determine the exact expected format.Shubham Bajaj
08/10/2024, 5:50 PMMichael P
08/10/2024, 6:35 PMKarthick Annamalai
08/11/2024, 6:14 PMShubham Bajaj
08/12/2024, 3:28 PM