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

# Google Drive

> Connect Google Drive and sync documents into your chatbot's knowledge base.

Import files from your Google Drive. Authenticate via Google OAuth, browse your folders, and select files to sync.

## Connecting Google Drive

<Info>
  Google Drive is connected **per-user**, not per-chatbot. Connect once on the Integrations page.
</Info>

<Steps>
  <Step title="Go to Integrations page">
    Navigate to **Integrations** in the sidebar.
  </Step>

  <Step title="Click Add on Google Drive">
    You'll be redirected to Google's OAuth consent screen.
  </Step>

  <Step title="Sign in and authorize">
    Sign in with your Google account and grant FIFE.BOT read access to your Drive files.
  </Step>

  <Step title="Redirect back">
    After authorization, you're redirected back to the Integrations page. Your Google Drive connection appears with your email.
  </Step>
</Steps>

## Adding Google Drive as a Knowledge Source

<Steps>
  <Step title="Open Knowledge Base tab">
    Go to your chatbot → **Knowledge Base** tab.
  </Step>

  <Step title="Click Add Source → Google Drive">
    If you have one connection, it's selected automatically. If multiple, pick one.
  </Step>

  <Step title="Browse and select">
    A file browser shows your Google Drive folders and files. Navigate to the content you want and select files.
  </Step>

  <Step title="Save">
    Selected files are downloaded, parsed, chunked, and embedded.
  </Step>
</Steps>

## Supported File Types

Google Drive sync supports the same formats as document upload:

* **Google Docs** — exported as text
* **PDF files**
* **Word documents** (.docx)
* **Text files** (.txt)

## Auto-Sync

Google Drive sources are automatically re-synced on a schedule. If you update a file in Drive, the changes are picked up during the next sync cycle.

## Managing Connections

On the **Integrations** page:

* **Rename** a Google Drive connection
* **Disconnect** — revokes access and stops all syncs

## Routing Instructions

Add source-specific context for Google Drive files.

**Example:**

> "These are product specification sheets. Include model numbers and compatibility information when referencing this source."

## Troubleshooting

| Issue                       | Solution                                                                       |
| --------------------------- | ------------------------------------------------------------------------------ |
| OAuth failed                | Clear browser cookies and try again. Make sure pop-ups are allowed.            |
| Files not visible           | Check that the files are accessible by the Google account you authorized       |
| Sync errors                 | Your Google OAuth token may have expired. Disconnect and reconnect.            |
| Google Sheets not supported | Only Docs, PDFs, DOCX, and TXT are synced. Sheets are not currently supported. |
