Google Calendar integration
# support
m
Use case: I want to log in a user (in my SaaS) using Google Calendar and then create a voice assistant using Vapi that helps book meetings in the user’s calendar. The Vapi Create Assistant API (https://docs.vapi.ai/api-reference/assistants/create) has the option to connect dynamic credentials (using GoogleCalendarOAuth2AuthorizationCredential), which requires an authorizationId. What is this authorizationId, and how do I obtain it? I have set up custom OAuth with Google Calendar in my app and am getting access/refresh tokens for each user. How do I get the authorizationId from those tokens, or is there another way?
h
You can’t use your own Google OAuth tokens directly with Vapi. The
authorizationId
must come from a Google Calendar credential created in the Vapi dashboard. Vapi doesn’t support injecting per-user tokens via API. If you need per-user calendar access, handle booking in your backend using your own tokens, and trigger it from the assistant via a tool call.
c
checking if this is resolved/solved for you?
m
same issue
not yet, please review the other thread "Error while working with the dynamic Google Calendar"
c
We are closing this thread. If you have any additional questions regarding this topic, please create a new support ticket.
2 Views