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 accessdocuments.readonly- Google Docsspreadsheets.readonly- Google Sheetscalendar.readonly- Calendar eventsgmail.readonly- Email threads
Synced Content
| Service | Content Types | Indexed Fields |
|---|---|---|
| Drive | Files, Folders | Name, Content, Metadata |
| Docs | Documents | Title, Body, Comments |
| Sheets | Spreadsheets | Title, Content, Formulas |
| Slides | Presentations | Title, Slides, Notes |
| Calendar | Events | Title, Description, Attendees |
| Gmail | Threads | Subject, 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
