> ## 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.

# OneDrive

> Train your chatbot on files from Microsoft OneDrive.

Connect OneDrive to train your chatbot on documents from a personal OneDrive
or a Microsoft 365 account.

## Connect and sync

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

  <Step title="Authorize SiteGPT">
    Select **Connect Account** and sign in with Microsoft. SiteGPT requests
    read access and does not store your Microsoft credentials.
  </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 OneDrive

* Word, Excel, and PowerPoint files are converted to text automatically.
* Other supported formats (PDF, TXT, CSV, and similar) are extracted like
  direct uploads.
* Images, audio, and video are skipped.
* Microsoft 365 Business shared libraries are supported when your account can
  open them.

## Keeping it in sync

OneDrive 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

Remove SiteGPT from your Microsoft account's app permissions
([account.live.com/consent/Manage](https://account.live.com/consent/Manage)
for personal accounts, or via your Microsoft 365 admin). Trained content
stays in your chatbot until you delete it from the list.
