> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuralfactory.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive

> Connect Google Drive as a datasource for your knowledge base.

# Google Drive Integration

Neural Factory can connect to Google Drive to index documents from your organization's Drive folders. Agents can then search and cite content stored in Google Drive.

## Prerequisites

* A Google Workspace account with Drive access
* An administrator must authorize the Google Drive connection
* The Drive folder must be accessible with the configured credentials

## Connecting Google Drive

<Steps>
  <Step title="Open the knowledge base">
    Navigate to **Knowledge Bases** and open the knowledge base where you want to add Google Drive content.
  </Step>

  <Step title="Add a Google Drive datasource">
    Click **Add Datasource** and select **Google Drive** from the datasource type options.
  </Step>

  <Step title="Authenticate">
    Complete the Google OAuth flow to grant Neural Factory read access to your Google Drive.
  </Step>

  <Step title="Select a folder">
    Browse your Google Drive and select the folder you want to index. All documents within the folder (including subfolders) will be indexed.
  </Step>

  <Step title="Configure sync settings">
    Choose sync behavior:

    * **Manual** — Only syncs when you trigger it
    * **Automatic** — Periodically checks for new or updated files
  </Step>

  <Step title="Save and sync">
    Click **Save** to create the datasource. The initial sync begins and indexes all documents in the selected folder.
  </Step>
</Steps>

## Supported content

* Google Docs (exported as text)
* Google Sheets (exported as structured data)
* Google Slides (exported as text)
* Uploaded files in standard formats (PDF, DOCX, XLSX, TXT, PPTX)

## Troubleshooting

* **Authentication errors** — Re-authorize the Google Drive connection if credentials have expired.
* **Missing files** — Ensure files are in the selected folder and in a supported format. Trashed files are not indexed.
* **Permission issues** — The authenticated account must have at least read access to the folder.
