Ankur
07/17/2025, 8:39 AMChiranjeet Mishra
07/18/2025, 10:20 AMAnkur
07/18/2025, 12:35 PMAnkur
07/19/2025, 6:04 AMChiranjeet Mishra
07/19/2025, 6:06 PMAnkur
07/21/2025, 3:32 AMAnkur
07/23/2025, 7:26 AMChiranjeet Mishra
07/26/2025, 1:46 PMAnkur
07/28/2025, 3:50 AMChiranjeet Mishra
07/31/2025, 6:49 AMauthorizationId is a unique identifier generated during the OAuth2 flow that allows your VAPI assistant to access a user's Google Calendar. Here's how you can obtain it and set up dynamic Google Calendar OAuth with a VAPI assistant:
1. **Set Up OAuth Flow**: Implement OAuth2 on your server to handle user authentication with Google. Store the access and refresh tokens securely.
2. Generate `authorizationId`:
- When a user completes the OAuth2 flow, your server will receive access and refresh tokens.
- Use a service like Nango to manage OAuth connections. After the OAuth flow completes, you'll get a connectionId which acts as your authorizationId.
3. **Configure VAPI Assistant**:
- Provide the authorizationId in the assistant's configuration to allow it to access the specific user's calendar.
- Example API call to set up the assistant with dynamic credentials:
json
{
"assistant": {
"credentials": [
{
"provider": "google.calendar.oauth2-authorization",
"authorizationId": "YOUR_CONNECTION_ID"
}
]
}
}
- This setup will enable the assistant to book meetings and access calendar details specific to each user.
For more detailed guidance, check the VAPI documentation on [Google Calendar Integration](https://docs.vapi.ai/tools/google-calendar).Ankur
08/11/2025, 8:23 AMChiranjeet Mishra
10/11/2025, 8:25 PM