Google Workspace Integration

Connect Google Drive, Docs, Calendar, and Gmail to Metalogue

Google Workspace Integration

Connect your Google Workspace to index Drive files, Docs, Sheets, Calendar events, and Gmail.

Quick Start

const connector = await client.createConnector({
  connector_type: 'google_workspace',
  display_name: 'Company Google Workspace',
});

// OAuth flow required
const authUrl = await client.getOAuthUrl('google_workspace');
// Redirect user to authUrl

Authentication

OAuth 2.0 is required. Metalogue handles token refresh automatically.

Required Scopes

  • drive.readonly - Google Drive access
  • documents.readonly - Google Docs
  • spreadsheets.readonly - Google Sheets
  • calendar.readonly - Calendar events
  • gmail.readonly - Email threads

Synced Content

ServiceContent TypesIndexed Fields
DriveFiles, FoldersName, Content, Metadata
DocsDocumentsTitle, Body, Comments
SheetsSpreadsheetsTitle, Content, Formulas
SlidesPresentationsTitle, Slides, Notes
CalendarEventsTitle, Description, Attendees
GmailThreadsSubject, Body, Attachments

Configuration

{
  "settings": {
    "services": ["drive", "docs", "sheets", "calendar", "gmail"],
    "shared_drives": true,
    "include_trashed": false,
    "gmail_labels": ["INBOX", "SENT"],
    "calendar_days_ahead": 30
  }
}

Team Drives

Support for shared drives:

{
  "settings": {
    "shared_drives": ["0ALxxxxxxxx", "0AMxxxxxxxx"],
    "include_all_shared_drives": false
  }
}

Example Queries

// Find documents about Q4 planning
const results = await client.query({
  text: 'Q4 2026 planning budget',
  filters: {
    connector_type: 'google_workspace',
    document_type: 'doc'
  }
});

Rate Limits

  • Drive API: 20,000 queries/day
  • Gmail API: 1,000,000 queries/day
  • Automatic quota management

Next Steps