Connect AI Squared to Google Drive

This guide will help you configure the Google Drive Connector in AI Squared to access your Google Drive files.

Prerequisites

Before initiating the Google Drive connector setup, ensure you have created or have access to a Google cloud account.

Step-by-Step Guide to Connect to Google Drive.

Step 1: Create Service Account

  1. Navigate to the Service Accounts page in your Google Cloud console.
  2. Choose an existing project or create a new one.
  3. Click + Create service account, enter its name and description, then click Create and Continue.
  4. Assign appropriate permissions, recommending the Editor role, then click Continue.

Step 2: Generate a Key

  1. Access the API Console > Credentials page, select your service account’s email.
  2. In the Keys tab, click + Add key and select Create new key.
  3. Choose JSON as the Key type to download your authentication JSON key file. Click Continue.

Step 3: Enable the Google Drive API

  1. Navigate to the API Console > Library page.
  2. Verify that the correct project is selected at the top.
  3. Find and select the Google Drive API.
  4. Click ENABLE.

Step 4: Configure Google Drive connector

Before proceeding, ensure you have the JSON file downloaded during the previous steps. Enter the following information during connector setup: Credentials
  • type: Type of account to use for authentication. Select service_account.
  • project_id: Obtained from downloaded JSON.
  • private_key_id: Obtained from downloaded JSON.
  • private_key: Obtained from downloaded JSON.
  • client_email: Obtained from downloaded JSON.
  • client_id: Obtained from downloaded JSON.
  • auth_uri: Obtained from downloaded JSON.
  • token_uri: Obtained from downloaded JSON.
  • auth_provider_x509_cert_url: Obtained from downloaded JSON.
  • client_x509_cert_url: Obtained from downloaded JSON.
  • universe_domain: Obtained from downloaded JSON.
Options
  • Folder: The folder to read files from. If not specified, reads from root folder.
  • Read from Subfolders: When enabled, it reads files from subfolders in the specified folder.
  • File type: Type of files to read.
  • document_type: The type of document to parse. Supported: invoices/receipts.
  • fields: List of fields to extract from the documents.

Step 5: Test the Google Drive connection

  1. Save the configuration settings.
  2. Test the connection to Google Drive to ensure everything is setup correctly.
  3. Run a test query or check the connection status to verify successful connectivity.
Your Google Drive connector is now configured.

Supported sync modes

ModeSupported (Yes/No/Coming soon)
Incremental syncYES