Can't use the "Calendar check" tool for my assista...
# support
m
I'm using the following prompt in my assistant but getting the error message attached: If the prospect wants to schedule the meeting with you on the phone follow these steps: - Ask the prospect what day and time works best for a meeting (in PST). - Use the getCurrentDateTime tool to retrieve the current date and time. - Use the CheckCalendar tool to verify availability for the proposed date and time (assumed to be in PST). The summary for this will be: "Check calendar availability". The start time will be the one provided by the prospect and the end time will be time provided by the prospect plus 20 minutes.     • If the time is available, use the Create_event tool to schedule a 20-minute meeting with marvin@plugg.tech as the invitee.     • If the time is not available, politely ask the prospect to suggest a different time and repeat the availability check. - Once scheduled, let the prospect know that the time has been reserved and they will receive an email within 24 hours with all the meeting details. How can I fix it? https://cdn.discordapp.com/attachments/1361184940133187646/1361184940649218268/image.png?ex=67fdd5c3&is=67fc8443&hm=ed3e412fbc7137431bc8e95fe9a1d5c4650a8cac1a729e4dcecd4437b7343718&
v
I can see you're having an issue with the Calendar check tool. Looking at your error message, it seems that while your assistant is correctly formatting the start and end times (they appear in the "Received data" section), they're not being properly passed to the CheckCalendar tool. Could you share more information about: 1. How is your CheckCalendar tool configured? Specifically, what parameters are defined in your tool configuration? 2. Are you using a custom webhook or integration for the Calendar check functionality? If so, could you share details about how it's set up? 3. Have you tried explicitly formatting the date/time parameters in your prompt? For example, adding specific instructions about how the assistant should format the dates when calling the tool. This would help me understand whether this is an issue with how the tool is configured, how the parameters are being passed, or how the webhook/integration is processing them.
m
@Vapi I went to the provider keys and connected my google calendar by signng in. That's the only integration I'm using. This is the way it looks in the "tools" section. https://cdn.discordapp.com/attachments/1361184940133187646/1361187905145671790/image.png?ex=67fdd886&is=67fc8706&hm=661faca59fdc4d7ed0474560013319c10d4e88c669ffe9f0aba146b4853ac962&
@Vapi Support Bot Look at my previous response
v
Thanks for sharing those details about your Google Calendar integration! Looking at your tool configuration, I notice a potential mismatch between your prompt and the actual tool names. In your prompt, you're referring to the tool as
CheckCalendar
, but in your tools section, it's named
google_calendar_check_availability_tool
. This naming mismatch could be causing the issue. Could you try updating your prompt to use the exact tool name? For example, change:
Copy code
Use the CheckCalendar tool to verify availability
to:
Copy code
Use the google_calendar_check_availability_tool to verify availability
Also, I notice you're using a tool called
Create_event
in your prompt. Is this tool also configured in your tools section with that exact name? If not, you'll need to update that reference as well (it might be
google_calendar_tool
based on what I can partially see in your screenshot). One more thing - could you check if the
google_calendar_check_availability_tool
has specific parameter requirements? Sometimes these tools expect parameters with specific names like
startDateTime
and
endDateTime
(exactly as shown in your error message) rather than "Start time" and "End time".
m
How do I set up those parameters @Vapi Support Bot (startdatetime and enddatetime?
v
Hi there! 👋 I see you're having trouble with the Calendar check tool in your assistant. Based on the error message and the information you've shared, I can help with some of the issues. Unfortunately, I don't have specific information about the exact interface for setting up the parameters for the Google Calendar integration. However, I can help with the naming mismatch and parameter formatting issues that are likely causing your error. Here's what you need to fix: 1. Update the tool names in your prompt to match exactly what's in your tools section:
Copy code
- Use the getCurrentDateTime tool to retrieve the current date and time.
   - Use the google_calendar_check_availability_tool to verify availability for the proposed date and time (assumed to be in PST).
   - If the time is available, use the google_calendar_tool to schedule a 20-minute meeting with marvin@plugg.tech as the invitee.
2. Make sure your parameters are named correctly. The error message indicates that the tool is expecting parameters named
startDateTime
and
endDateTime
, but your received data shows "Start time" and "End time". You need to modify your prompt to ensure the assistant uses the exact parameter names expected by the tool:
Copy code
Use the google_calendar_check_availability_tool to verify availability for the proposed date and time (assumed to be in PST). The summary for this will be: "Check calendar availability". The startDateTime will be the one provided by the prospect and the endDateTime will be time provided by the prospect plus 20 minutes.
3. Ensure proper date formatting. According to the information I found, you should make sure the date and time are formatted correctly. The format in your error message (
2023-10-24T14:00:00-07:00
) looks correct, but you might want to explicitly instruct the assistant on how to format dates:
Copy code
Format all dates and times in ISO 8601 format (YYYY-MM-DDTHH:MM:SS-07:00 for PST).
These changes should help resolve the issue with the missing parameters. Is there anything else you'd like me to help with? Sources: - [Discord conversation about tool naming and parameters](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1343641783367766088) - [Information about date and time formatting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325196797102260304) - [Troubleshooting 500 errors](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1328923059905630238)
s
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
3 Views