exotic-emerald•6mo ago
How to intergrate google calendar tools
when creating an assistant (one for each of my users) using the API. how do I give it the ability to read/write events from their google calendar assuming they've already been authenticated using OAuth
15 Replies
To enable each assistant to read/write Google Calendar events for a user (after OAuth), add the Google Calendar tools to the assistant's configuration and ensure the correct OAuth credentials are used. Example payload:
Note: You must ensure the assistant uses the right user's OAuth token for calendar actions. The docs do not specify how to programmatically associate tokens per assistant, so you may need to manage this mapping in your backend.
See Google Calendar integration docs Source: - Google Calendar Integration Documentation
See Google Calendar integration docs Source: - Google Calendar Integration Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
exotic-emeraldOP•6mo ago
@Vapi Support Bot could you give me a step by step?
Step-by-step to enable Google Calendar read/write for each assistant:
1. In the Vapi Dashboard, connect Google Calendar under Provider Keys.
2. Create the Google Calendar tools ("Create Event" and "Check Availability") in the Tools section.
3. When creating each assistant via the API, include these tools in the
tools array:
4. Important: You must ensure your backend maps each assistant to the correct user's OAuth token for calendar actions, as the docs do not specify a built-in way to do this programmatically.
For more details, see the Google Calendar integration documentation.
Source:
- Google Calendar Integration Documentationexotic-emeraldOP•6mo ago
@Vapi Support Bot how do I do step 4?
optimistic-gold•6mo ago
@Vapi Support Bot how do I do step 4?
To handle step 4, you need to store each user's OAuth token in your backend and map it to their assistant. When your assistant needs to access Google Calendar, retrieve the correct token and use it for API calls. For example:
Note: Vapi does not provide a built-in way to associate tokens per assistant, so this mapping and secure storage must be managed in your backend logic.
Source:
- Google Calendar Integration Documentation
Hey VapiUser, checking if this is resolved/solved for you?
exotic-emeraldOP•6mo ago
@Shubham Bajaj sent you a dm
To integrate Google Calendar tools for each assistant and enable them to read/write events for individual users, you should:
1. Connect Google Calendar in the Vapi Dashboard under Provider Keys.
2. Create the Google Calendar tools (like "Create Event" and "Check Availability") in the Tools section.
3. When creating each assistant via the API, include these tools in the
4. Store each user's OAuth token in your backend and map it to their assistant. When an assistant needs to access Google Calendar, your backend should retrieve the correct token for that user and use it for the API call. For example: Note: Vapi does not provide a built-in way to associate tokens per assistant, so this mapping and secure storage must be managed in your backend logic. If you need to handle token storage, retrieval, or refreshing, you'll need to implement those details according to your backend's requirements. Source: - Google Calendar Integration Documentation
2. Create the Google Calendar tools (like "Create Event" and "Check Availability") in the Tools section.
3. When creating each assistant via the API, include these tools in the
tools array of the assistant's configuration.4. Store each user's OAuth token in your backend and map it to their assistant. When an assistant needs to access Google Calendar, your backend should retrieve the correct token for that user and use it for the API call. For example: Note: Vapi does not provide a built-in way to associate tokens per assistant, so this mapping and secure storage must be managed in your backend logic. If you need to handle token storage, retrieval, or refreshing, you'll need to implement those details according to your backend's requirements. Source: - Google Calendar Integration Documentation
stormy-gold•5mo ago
Our users will not see vapi dashboard. There is no way they can put their google account in provider keys. Right?
Hence the confusion in this is how can we use credentials on the api to pass in the users credentials for google calendar
You are correct: Based on the documentation, there is currently no way for end-users to connect their Google accounts to Vapi via the API—connection must be done through the Vapi Dashboard under Provider Keys.
Would you like guidance on how to implement your own OAuth flow and token management in your backend to enable this for your users?
See Google Calendar integration docs for reference.
Source:
- Google Calendar Integration Documentation
stormy-gold•5mo ago
I have gone through the documents and api references.
I know there has to be a way for us to integrate the internal google calendar tool.
I just need to know what parameters I have to pass in the credentials and exactly how to go with the connection of google calendar through the api.
Vapi does not support passing user-specific Google Calendar credentials via the API. All Google Calendar tool actions use the account connected in the Vapi Dashboard under Provider Keys. If you need per-user calendar access, you must implement your own OAuth flow and interact with the Google Calendar API directly from your backend, using the user's token.
There are no API parameters for injecting user credentials into Vapi's built-in Google Calendar tools.
See official documentation for details. Source: - Google Calendar Integration Documentation
See official documentation for details. Source: - Google Calendar Integration Documentation
stormy-gold•5mo ago
Here, it allows us to send credentials - what credentials are we supposed to pass here?

Vapi does not currently support passing user-specific Google Calendar credentials via the API using the
See official documentation for details. Source: - Google Calendar Integration Documentation Vapi does not support passing user-specific Google Calendar credentials via the API.
The
If you need per-user calendar access, you must implement your own OAuth flow and interact with the Google Calendar API directly from your backend.
See official documentation for details. Source: - Google Calendar Integration Documentation
credentials or authorizationId fields. All Google Calendar actions use the account connected in the Vapi Dashboard under Provider Keys. If you need per-user access, you must handle OAuth and Google Calendar API calls in your own backend, not through Vapi's built-in tools.
There is no documented way to use credentials or authorizationId for Google Calendar integration at this time.See official documentation for details. Source: - Google Calendar Integration Documentation Vapi does not support passing user-specific Google Calendar credentials via the API.
The
credentials and authorizationId fields are not documented for use with Google Calendar user tokens—all calendar actions use the account connected in the Vapi Dashboard under Provider Keys.If you need per-user calendar access, you must implement your own OAuth flow and interact with the Google Calendar API directly from your backend.
See official documentation for details. Source: - Google Calendar Integration Documentation