Skip to main content

Connecting Google Drive to Knowledge Management

The Google Drive knowledge integration syncs documents from your Google Shared Drives into the Rezolve.ai Knowledge Base. The Virtual Agent can then use them to answer questions and link back to the file in Google Drive.

This page covers the Google Drive-specific setup. For the wizard, sync status, bounced files, and other functions that all integrations share, see Knowledge Integrations.

Shared Drives only

Only Shared Drives are supported. Files in a user's My Drive or Shared with me can't be synced. Move them to a Shared Drive first.


Prerequisites

  • A Google Workspace account with Shared Drives.
  • Access to a Google Cloud project where you can enable APIs and create a service account.
  • Permission to add members to the Shared Drives you want to sync, as a Shared Drive manager.
  • Knowledge Management admin access in the Rezolve.ai console.

Step 1: Create a service account

  1. In the Google Cloud console, select or create a project.
  2. Go to APIs & Services → Library, search for Google Drive API, and click Enable.
  3. Go to IAM & Admin → Service Accounts → + Create service account. Enter a name, for example rezolve-kb-sync, and click Done. It doesn't need any project roles.
  4. Open the service account, go to Keys → Add key → Create new key, choose JSON, and click Create. Store the downloaded key file securely.

From the JSON key file, you'll need:

JSON keyRezolve.ai field
client_emailService Account Email
token_uriToken URI (normally https://oauth2.googleapis.com/token)
private_keyPrivate Key, including the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- lines
note

Domain-wide delegation is not needed. The service account reads only the Shared Drives it's a member of.


Step 2: Give the service account access to your Shared Drives

For each Shared Drive you want to sync:

  1. In Google Drive, open the Shared Drive and click Manage members.
  2. Add the service account's email address, for example rezolve-kb-sync@my-project.iam.gserviceaccount.com.
  3. Give it the Viewer role, then click Send. If your organization blocks sharing with external addresses, allow it first.

Step 3: Create the Google Drive integration

  1. In the Rezolve.ai console, go to Knowledge Management → Knowledge Integrations.
  2. Click Add Integrations and select Google Drive.

3a. Connection setup

Enter a Title for the integration. Then either choose an existing Google Drive connection or select Create New Connection and enter these details:

FieldDescriptionExample
NameA descriptive name for the connectionCompany Shared Drives
Service Account Emailclient_email from the key filerezolve-kb-sync@my-project.iam.gserviceaccount.com
Token URItoken_uri from the key filehttps://oauth2.googleapis.com/token
Private Keyprivate_key from the key file-----BEGIN PRIVATE KEY-----...

3b. Content selection

Content is organized into one or more content sets. In each content set:

  1. Browse the Shared Drives the service account can access.
  2. Tick a whole drive, or expand it and tick specific folders.
    • Selections are crawled recursively, including all sub-folders.
    • A folder inside a ticked drive is already covered.
  3. To limit who can get answers from this content set, open the menu, turn on Restrict Access, and choose Restrict by Audience.

3c. Configuration

Under Sync Details, set the Frequency (daily, weekly, or monthly), Start Time, Timezone, and Schedule Start Date. Optionally turn on Subscribe to Sync Reports and add User Subscribers. Then click Save.


What gets ingested

File typeHandling
Google DocsExported as PDF, including images
Google SlidesExported as PowerPoint
Google SheetsNot ingested. They appear in Bounced Files as not supported.
Google Forms, Drawings, SitesNot ingested
Uploaded files.pdf, .doc, .docx, .txt, .md, .ppt, .pptx, .msg, and archives (.zip, .rar, .7z)

Excel, CSV, image, and video files are not ingested. Files in the trash are ignored.

Limits

LimitDefault
Maximum file size25 MB. Google also limits exports of Docs and Slides to about 10 MB.
Archive contentsUp to 10 files and 50 MB uncompressed
Retries per fileA file that fails 3 times is skipped until it's resolved in Bounced Files

Answers link to the file in Google Drive using its standard view link.


Sync behavior

BehaviorDetails
First syncFull ingestion of the selected drives and folders
Later syncsIncremental. A file is re-ingested when its modified time changes.
Deleted or moved filesRemoved from the Knowledge Base on the next sync
ThrottlingRate-limit and temporary server errors are retried automatically

Access control

Access comes from the Audience set on each content set. Google Drive sharing permissions are not inherited: every user in the audience can get answers from every file in the content set. Use separate content sets with narrower audiences for restricted content.


Troubleshooting

SymptomLikely causeResolution
"No Shared Drives found"The service account isn't a member of any Shared DriveAdd the service account to the Shared Drives (Step 2)
Connection fails to authenticateWrong email, or an incomplete private keyPaste the full private_key value including the BEGIN and END lines
My Drive files don't appearOnly Shared Drives are supportedMove the files to a Shared Drive
A folder's files are missing after a syncGoogle throttled the requests and the folder was skippedClick Sync Now again, or schedule the sync outside business hours
Google Sheets in Bounced FilesSpreadsheets aren't supportedExport the content to PDF or a Google Doc
File bounced for size limitFile is over 25 MB, or a Doc is too large to exportSplit the file

Next Steps