Google Drive Data Source

Prerequisites

Before connecting Google Drive documents into Agent Factory, you need to create a Service Account and link it to the Google Drive documents.

If you use a personal Gmail account, follow the steps below:

If you are trying to connect to a corporate Gmail account, follow the steps below:

In Admin console:

  1. Create a Service Account in the same workspace and domain wide delegation is enabled in IAM
  2. Go to Workspace AdminSecurityAPI ControlsDomain-wide delegation
  3. Add Client ID (service account’s OAuth client ID) and the corresponding scopes. See Google Drive API Scopes. Suggested scope is https://www.googleapis.com/auth/drive.readonly.
  4. Confirm that corporate user user@company.com exists and has Google Drive access.

Configure a Google Drive Data Source

You can integrate Google Drive documents with Agent Factory to enable your team to search and retrieve information from your organizational content.

  1. Pick Google Drive as the data source type when creating a new source.

  2. Provide a clear source name + short description so it’s recognizable later.

  3. Drop your Google Account email, this email must also be linked to the service account associated with the Google Drive documents you are planning to ingest.

  4. Choose between the two Service account access type depending on your scenario:
    • Standard: Access files shared with the service account only
    • Domain-Wide Delegation enabled: Can impersonate users in Google Workspace
  5. Drop the Service account JSON generated in Prerequisites.

  6. Set the optional filters to reduce irrelevant content before indexing:
    • Folder-level include/exclude
    • Exclude file extensions
    • URL filters
  7. Set the crawl frequency (in days) to control how often the agent revisits this endpoint, and use crawl depth to control how many layers of content you want the agent to crawl.

  8. Provide a Proxy URL if access requires an enterprise proxy.