docs/content/Guides/Integrations/google-drive-connector.mdx
import { Callout } from 'nextra/components' import { Steps } from 'nextra/components'
Connect your Google Drive account to upload and process files directly as an external knowledge base. Supports Google Workspace files (Docs, Sheets, Slides), Office files, PDFs, text files, CSVs, images, and more. Authentication is handled via Google OAuth 2.0 with automatic token refresh.
http://localhost:3000)http://localhost:7091/api/connectors/callback?provider=google_drivehttps://yourdomain.com/api/connectors/callback?provider=google_driveAdd to your backend .env file:
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
Add to your frontend .env file:
VITE_GOOGLE_CLIENT_ID=your-google-client-id
| Variable | Description | Required |
|---|---|---|
GOOGLE_CLIENT_ID | OAuth Client ID from GCP Credentials | Yes |
GOOGLE_CLIENT_SECRET | OAuth Client Secret from GCP Credentials | Yes |
VITE_GOOGLE_CLIENT_ID | Same Client ID, used by the frontend to show the Google Drive option | Yes |
Restart your application, then go to the upload section in DocsGPT and select Google Drive as the source. You'll be redirected to Google to sign in, then can browse and select files to process.
</Steps>VITE_GOOGLE_CLIENT_ID is set in the frontend .env, then restart.?provider=google_drive. Ensure the Google Drive API is enabled.