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

# Notion

> Train your chatbot on pages from your Notion workspace.

Connect Notion to train your chatbot on pages and databases from your
workspace.

## Connect and sync

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

  <Step title="Authorize SiteGPT">
    Select **Connect Account**. Notion asks you to choose which pages SiteGPT
    may access. Only the pages you grant are visible to SiteGPT.
  </Step>

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

## What syncs from Notion

* Text content: headings, paragraphs, lists, toggles, quotes, callouts,
  tables, and code blocks.
* Database entries are imported as individual documents.
* Images are skipped. Embedded files come through as links, not their
  contents.

## Keeping it in sync

Notion pages do not update in SiteGPT automatically. When a page 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, open Notion's **Settings & Members** →
**Connections** and remove SiteGPT. Content that is already trained stays in
your chatbot until you delete it from the list.

<AccordionGroup>
  <Accordion title="A page I need is not listed">
    SiteGPT can only see pages you granted during authorization. Reconnect
    the account and add the missing pages to the grant.
  </Accordion>

  <Accordion title="A database imported with too little text">
    Databases import their entries' properties and content. Entries that are
    mostly empty produce little training text. Consider writing the knowledge
    into a regular page instead.
  </Accordion>
</AccordionGroup>
