Skip to main content
Connect Google Drive to Airweave to make your files and documents searchable by AI agents.

What Gets Synced

The Google Drive connector syncs:
  • Drives - Shared drives (Team Drives)
  • Files - All file types from My Drive and Shared Drives
  • Folders - Folder structure and metadata

Authentication

This connector uses OAuth 2.0 with custom credentials. You’ll need to:
  1. Create a Google Cloud project
  2. Enable the Google Drive API
  3. Configure OAuth consent screen
  4. Create OAuth credentials
  5. Provide Client ID and Client Secret

Configuration

Include Patterns (Optional)

Filter which files to sync using path patterns:
  • my_folder/* - All files in my_folder
  • my_folder/my_file.pdf - Specific file
  • Leave empty to sync all files

Setup

1

Create Google Cloud OAuth App

Follow Google’s OAuth setup guide to create OAuth credentials for Google Drive.
2

Add Required Scopes

In your OAuth consent screen, add these scopes:
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.readonly
  • https://www.googleapis.com/auth/drive.metadata
3

Add Google Drive Connection

In Airweave, click Add SourceGoogle Drive, then enter your Client ID and Client Secret.
4

Authorize Access

Complete the OAuth flow to grant Airweave access to your Google Drive.

Supported Entities

Google Drive Files

Files with full metadata. Key fields:
  • File name and description
  • Created/modified timestamps
  • Parent folders
  • Sharing settings
  • File type and size

Shared Drives

Team/shared drive metadata. Key fields:
  • Drive name and color
  • Organization unit
  • Created timestamp

Implementation Details

View Source Code

Explore the Google Drive connector implementation on GitHub
For detailed OAuth setup instructions, see the Gmail connector documentation which uses the same Google Cloud project setup.