Google Drive Integration
'Connect Google Drive to Supervity, authorize access, and use cloud files, folders, file search, and real-time change triggers in operators and workflows.'
This guide explains how to connect Google Drive to Supervity, what capabilities become available after connection, how operators and workflows can access and manage Drive files and folders, and how to manage or remove the integration when needed.
Overview
The Supervity Google Drive integration allows your workspace to securely connect Google Drive as a governed platform capability.
Once connected, operators and workflows can search across cloud files, upload documents and business reports, download assets for parsing or ingestion, organize folder structures, and react in real time to file modifications using push notifications.
With the Google Drive integration, Supervity can:
- Search for files and folders using rich Drive search queries (
qparameter) - Upload files with multipart metadata and content to root or specific folders
- Download binary file content directly (
alt=media) - Create organizational folder structures for projects, clients, or automated runs
- Watch Google Drive or specific folders for changes with real-time push triggers
- Process incoming files automatically as they are uploaded to shared drives
- Provide file contents and metadata as grounded context for AI operators
- Coordinate asset transfers between Google Drive and other connected business systems
All Google Drive access is governed through Supervity's security, permissions, and audit controls.
Why Use the Google Drive Integration?
The Google Drive integration helps your organization:
- Automate file organization by saving generated reports, invoices, and exports directly to Drive
- Trigger workflows automatically whenever new documents or spreadsheets are deposited in a monitored folder
- Discover relevant files and assets using flexible full-text, filename, and MIME-type queries
- Enable AI operators to read and analyze company documents stored in Google Drive
- Synchronize files between cloud storage and enterprise systems (e.g., CRM attachments, ERP logs)
- Ensure safe file handling under strict least-privilege CASA-approved scopes
Prerequisites
Before connecting Google Drive, ensure you have:
- An active Supervity workspace
- A Google account (Google Workspace or personal
@gmail.comaccount)- Permission to authorize third-party applications on your Google account
- Access to the Drive folders and shared drives you intend to search or manage
In Google Workspace domains, administrators can configure third-party app permissions under Google Workspace Admin Console → Security → API Controls.
Adding the Google Drive Integration
Follow these steps to connect Google Drive to Supervity. If you encounter any issues during setup, refer to the Troubleshooting section of this guide.
Step 1: Open Integrations
- Log in to Supervity.
- From the left navigation bar, click the Integrations icon.
This opens the Integrations page, where all available and connected integrations are listed.
Step 2: Select Google Drive
- Locate Google Drive in the available integrations list.
- Click Connect.
Step 3: Authorize Access
You will be redirected to Google's secure OAuth 2.0 authorization screen.
- Select the Google account you wish to connect.
- Review the requested permissions (viewing files, managing files created by Supervity).
- Click Continue (or Allow) to grant Supervity access.
- Supervity uses standard Google OAuth 2.0 with offline access for secure token refresh.
- Your Google password is never shared with or stored by Supervity.
- All tokens are encrypted at rest using AES-256.
Step 4: Complete Connection
After authorization, Google redirects you back to Supervity.
The Google Drive integration will appear as Connected on the Integrations page. Your workspace can now search, upload, download, and monitor Drive files.
Step 5: Start Using Google Drive
Once connected:
- Google Drive actions become available in operator planning and workflow steps.
- Real-time file change triggers can be attached to start workflows on document uploads.
- Operators can query Drive assets and ingest files for downstream processing.
- You can manage, share with teams, or disconnect the integration at any time from the Integrations page.
How Google Drive Works in Supervity
After connection, Google Drive becomes available as a governed platform capability.
Workflows interact with Google Drive via:
- Actions: Query files, upload new documents with parent folder routing, and download binary content.
- Triggers: Push notifications from Google Drive watch channels notify Supervity whenever files change in a watched folder or the entire drive.
- Fan-Out & Enrichment: Batched change notifications fan out into individual file events enriched with file name, MIME type, size, modified timestamp, and download links.
Using Google Drive in Operators
Connected Google Drive capabilities become available to AI operators automatically. Operators determine when cloud files need to be retrieved or stored and invoke Drive actions accordingly.
What Operators Can Do with Google Drive
- Search for documents matching project names, dates, or file extensions
- Read file content to answer user questions or compile summaries
- Upload generated PDFs, spreadsheets, and archives to client folders
- Monitor specific drop folders for incoming customer documents
- Maintain folder hierarchies for multi-tenant or multi-project operations
- Cross-reference Drive files with CRM records, Jira tickets, and Slack messages
Typical Operator Use Cases
| Use Case | Example |
|---|---|
| Inbound Document Processing | Watch an "Incoming Invoices" folder and parse newly uploaded PDF invoices automatically |
| Report Archiving | Save daily analytics exports from PostgreSQL into a dated Google Drive directory |
| Knowledge Base Querying | Search company policy folders for relevant SOP documents to answer employee questions |
| Client Deliverable Uploads | Create a dedicated project folder and upload generated contract documents and assets |
| Backup Coordination | Sync critical spreadsheet data to Google Drive as CSV or XLSX backups |
Features & Prerequisites
For each Google Drive capability available in Supervity, the following describes its functionality and prerequisites.
List Drive Files
Use Case: Search and retrieve file listings matching query filters, sorted by update time or name.
Key Parameters:
q: Drive query string (e.g.,name contains 'Report' and mimeType = 'application/pdf' and trashed = false).pageSize: Number of files to return per page (default: 100).pageToken: Token for pagination.fields: Field selection (e.g.,files(id,name,mimeType,size,modifiedTime,parents)).
Supported Query Syntax Examples:
name contains 'Q3': Match filename substrings.'folderId' in parents: List contents of a specific folder.mimeType = 'application/vnd.google-apps.folder': Find folders only.sharedWithMe = true: Find files shared with the connected account.
Prerequisites:
- Google Drive connected to Supervity
- Read access (
drive.readonlyscope)
Upload Drive File
Use Case: Upload new files with metadata (name, parent folder) and content payloads into Google Drive.
Key Parameters:
name: Target filename (e.g.,"Q3_Summary.pdf").parents: Array of parent folder IDs to place the file inside.mimeType: File content type (or'application/vnd.google-apps.folder'to create a directory).content: Binary or text payload.
Prerequisites:
- Google Drive connected to Supervity
- File write access (
drive.filescope)
Download Drive File
Use Case: Download binary file streams from Google Drive for processing or export.
Key Parameters:
fileId: Unique identifier of the file to download.alt: Set to'media'to stream raw binary contents.
Prerequisites:
- Google Drive connected to Supervity
- Read access (
drive.readonlyscope)
Real-Time Webhook Triggers
Google Drive supports push notification channels so workflows can trigger automatically when files are created or modified.
Available Triggers
| Trigger Event | Catalog Key | Description |
|---|---|---|
| File Changed | google_drive.file_changed | Fires when files are created, updated, or moved in Drive |
Trigger Scoping
You can scope the trigger in two ways:
- Whole Drive (
my_drive): Monitor all file changes across the user's primary Drive. - Specific Folder: Provide a target folder ID to trigger workflows only when files within that specific folder hierarchy change.
Enriched Event Fields
When a file change occurs, Supervity enriches the notification with full metadata:
file_id: Unique Google Drive file IDname: File namemimeType: MIME type (e.g.,'application/pdf','text/csv')size: File size in bytescreatedTime: ISO 8601 creation timestampmodifiedTime: ISO 8601 last modified timestampparents: Parent folder IDswebViewLink: Web link to open the file in Google Driveaction: Change action ('created','updated','trashed')
Self-Loop Prevention
When a Supervity workflow writes or updates a file in Google Drive, the file ID is marked in Supervity's event cache. Inbound change notifications for that file write are recognized as self-generated and filtered out to prevent recursive loops.
Permissions Requested
Supervity only requests the permissions required for enabled Google Drive capabilities.
Depending on the features used in your workspace, permissions may include:
| Permission Type | Purpose |
|---|---|
| User Identity | Verify Google account identity and associate file actions |
| File Discovery | Search for files and folders across personal and shared drives |
| Content Read | Download files and read document contents for processing |
| Content Write | Upload new files, update file contents, copy, and move items |
| Folder Management | Create and organize folder structures in Google Drive |
| Permissions & Sharing | Share files, inspect access permissions, and manage shared links |
Supervity follows least-privilege principles and only accesses data necessary to provide requested functionality.
Authentication & Security
- OAuth 2.0 with CASA Compliance: Configured to adhere to Google Cloud Application Security Assessment (CASA) standards.
- Encrypted Credentials: Refresh tokens and secrets are encrypted with AES-256-GCM.
- Timing-Safe Push Handshake: Watch notifications verify Google channel tokens with constant-time equality checks.
- Full Execution Logging: All Drive file reads, uploads, and downloads are logged with caller identity, timestamp, and result.
Troubleshooting
Issue: Cannot Find a File Uploaded to a Shared Drive
Cause: Shared drives (formerly Team Drives) require explicit parameter flags
(supportsAllDrives=true and includeItemsFromAllDrives=true) when querying.
Resolution:
- Ensure queries on shared drive items include shared drive parameters.
- Verify that the connected Google account has "Contributor" or "Content Manager" access to the target shared drive.
Issue: Trigger Fires on Every File Instead of Specific Folder
Cause: The trigger was configured without specifying a folder ID, defaulting
to whole-drive monitoring (my_drive).
Resolution:
- In the workflow trigger settings, select or enter the specific folder ID you want to monitor.
- The folder ID can be found in the Google Drive URL when navigating to the
folder (
https://drive.google.com/drive/folders/<folderId>).
Issue: File Delete Operation Not Available
Cause: Deleting existing Drive files created by other apps requires the
unrestricted https://www.googleapis.com/auth/drive scope, which is
intentionally excluded to maintain CASA security compliance.
Resolution: Supervity supports creating, updating, and managing files
created by the application (drive.file). For enterprise archiving, files can
be organized into designated archive folders rather than permanently deleted.
Frequently Asked Questions
Q: Can Supervity watch multiple folders simultaneously?
Yes. You can attach multiple google_drive.file_changed triggers across
different folders to distinct workflows.
Q: Can I create new folders dynamically?
Yes. Calling google_drive_upload_file with
mimeType: "application/vnd.google-apps.folder" creates a new directory and
returns its fileId.
Q: Does Supervity download large files efficiently?
Yes. google_drive_download_file streams file binaries using alt=media,
suitable for documents, images, and data archives.
Support
If you need assistance with the Google Drive integration, visit the Support page.
Support Hours
- Monday to Friday, 9:00 AM – 6:00 PM IST
- Requests submitted outside business hours will be addressed on the next business day
First Response SLA
- All support requests receive an initial response within 24 business hours
Contact Information
| Contact Type | Details |
|---|---|
| Support | Support & Contact |
| Sales Inquiries | [email protected] |
| Contact Form | https://www.supervity.ai/contact-us |
| Website | https://www.supervity.ai |
| Privacy Policy | https://supervity.ai/privacy-policy |
| Terms of Service | https://www.supervity.ai/terms-of-service |
| Acceptable Use Policy | https://supervity.ai/acceptable-use-policy |
When Contacting Support, Please Provide
- Workspace name
- Google account used for authorization
- Target folder or file ID (if applicable)
- Relevant workflow or operator information
- Error messages or screenshots when available
This helps the support team investigate and resolve issues more quickly.