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

# Google Drive

> Train your chatbot on documents from Google Drive.

Connect Google Drive to train your chatbot on Docs, Sheets, Slides, and
uploaded files, including files in Shared Drives.

## Connect and sync

<Steps>
  <Step title="Open the connector">
    In your chatbot's sidebar, open **Files & Data Sources** → **Add Files**
    and choose **Google Drive**.
  </Step>

  <Step title="Authorize SiteGPT">
    Select **Connect Account** and sign in with Google. SiteGPT requests read
    access so it can list and fetch the files you choose.
  </Step>

  <Step title="Pick files and sync">
    Select files and confirm with **Sync Selected Files**. Training status
    appears live in the list.
  </Step>
</Steps>

## What syncs from Drive

* Google Docs, Sheets, and Slides are converted to text automatically.
* Uploaded files in supported formats (PDF, DOC/DOCX, TXT, CSV, and similar)
  are extracted like direct uploads.
* Images, audio, and video are skipped.
* Shared Drives are supported. You can sync files others shared with you as
  long as your account can open them.

## Keeping it in sync

Drive files do not update in SiteGPT automatically. When a document changes,
select it in **Files & Data Sources** and use **Resync**, or resync in bulk.

To refresh from the command line or a cron job of your own, use the
[CLI](/docs/cli/knowledge): `sitegpt knowledge documents resync --chatbot <chatbot-id> <document-id>`.

## Disconnecting

To revoke SiteGPT's access, visit
[myaccount.google.com/permissions](https://myaccount.google.com/permissions)
and remove SiteGPT. Trained content stays in your chatbot until you delete it
from the list.

<AccordionGroup>
  <Accordion title="A file fails to train">
    Open the row to see the error. The usual causes are unsupported formats
    (image-only PDFs, media files) and files your account can no longer open.
  </Accordion>

  <Accordion title="Very large files">
    Files are subject to the same per-file size limit as
    [direct uploads](/docs/content/files). Split very large documents, or contact
    support if you regularly need bigger files.
  </Accordion>
</AccordionGroup>
