Hi everyone,
# general-english
i
Hi everyone, I'm currently experimenting with the new Google Calendar tools—specifically Check Availability and Create Event. I’m curious whether these tools can automatically detect the caller’s time zone and schedule an event accordingly, aligning it with the recipient’s Google Calendar (who, in my case, is based in Mountain Time). I have a client for whom I’ve already built several voice workflows using VAPI. The use case involves scheduling calls across different U.S. time zones, and I’m wondering if this functionality can be handled directly through the Google Calendar tools, or if I still need to implement backend logic in Make.com or n8n to manage time zone conversions. Has anyone tested this? Would love to hear your experience. Thanks! https://cdn.discordapp.com/attachments/1211484481848873020/1368864851530612736/image.png?ex=6819c63c&is=681874bc&hm=148bb54eaccb9c225bf60cab514b254823b00d07431e44f4f276903ed3bed6b3&
s
Copy code
json
{
      name: 'Test Assistant',
      model: {
        provider: 'openai',
        model: 'gpt-4',
        messages: [],
        tools: [
          {
            type: GOOGLE_CALENDAR_CHECK_AVAILABILITY_TOOL,
            function: {
              name: GOOGLE_CALENDAR_CHECK_AVAILABILITY_TOOL,
              description: 'Calendar availability check function',
              parameters: {
                type: 'object',
                properties: {
                  startDateTime: {
                    type: 'string',
                    description: customStartDateTimeDesc,
                  },
                  endDateTime: {
                    type: 'string',
                    description: 'End date time',
                  },
                  customParam: {
                    type: 'string',
                    description: 'Custom parameter that should be ignored',
                  },
                },
                required: ['startDateTime', 'endDateTime', 'customParam'],
              },
            },
            metadata: {
              calendarId: 'primary',
              timeZone: 'UTC',
            },
          },
        ],
      },
    }
You are supposed to pass the time zone explicitly when you are defining or creating the tool through metadata property time zone.
i
s
Yes it has to be done using API.
2 Views