Google calendar tool issues
# support
b
Hi I'm having an issue with the Google calendar tool. It looks like it called the tool, but checked the wrong date and time. The agent said it booked the meeting, but no invite or event was scheduled. 7c0e72ef-1845-43b6-a814-d890103c583b
v
The issue is likely related to timezone handling. Try adding the current date and time in your system prompt using dynamic variables:
Copy code
### Current Date and Time
Current date: {{ "now" | date: "%B %d, %Y", "America/New_York"}}
Current time: {{ "now" | date: "%I:%M %p", "America/New_York"}}
Day of week: {{ "now" | date: "%A", "America/New_York"}}
Replace "America/New_York" with your actual timezone to ensure the Google Calendar tool uses the correct date and time. Sources: - [Discord discussion about date/time issues](https://discord.com/channels/1211482211119796234/1325196797102260304) - [Discord discussion about dynamic variables](https://discord.com/channels/1211482211119796234/1341859467884498976)
b
That worked. However, a calendar event was only created internally. How do I get it to send to the prospect?
That worked. However, a calendar event was only created internally. How do I get it to send to the prospect? @Vapi Support Bot
v
To send calendar invites to prospects, ensure your function call includes the attendee's email address in the parameters. When configuring your custom tool, make sure the payload includes:
Copy code
json
{
  "attendees": [
    {"email": "prospect@example.com", "name": "Prospect Name"}
  ],
  "sendNotifications": true
}
This tells Google Calendar to send an invitation email to the external attendee. Source: - [Discord discussion about function call parameters](https://discord.com/channels/1211482211119796234/1336345690393149452)
b
I'm using the google_calendar_tool There is no section to edit parameters @Vapi Support Bot
v
I understand you're using the google_calendar_tool and can't find a way to edit parameters to include attendee information. Could you describe how you're currently implementing or calling the google_calendar_tool in your Vapi setup? For example, are you using it through the dashboard, via API calls, or through a specific SDK?
b
@Vapi Support Bot I'm using it through the dashboard here is my assistant d9bc4746-23ca-4320-8533-414a1cf7aea1
v
Based on the information available, direct parameter editing for the google_calendar_tool may be limited in the dashboard. As a workaround, consider deleting and recreating the tool with your desired configuration: 1. Delete your current google_calendar_tool 2. Create a new tool with the same functionality 3. During creation, include the attendee parameters in your configuration If this isn't possible through the dashboard, you may need to use the API to configure these parameters. Source: - [Discord discussion about tool editing](https://discord.com/channels/1211482211119796234/1305244632124227654)
s
checking if this is resolved/solved for you?
3 Views