> For the complete documentation index, see [llms.txt](https://alhena.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alhena.gitbook.io/docs/ai-configuration/data-sources/notion-pages.md).

# Notion Pages

Alhena AI can connect to your Notion workspace to train your AI on your team's documentation, wikis, and knowledge bases stored in Notion.

## Setup Steps

1. Go to **AI Settings > Knowledge Base**
2. Click **Add external source** and choose **Notion**
3. Click **Connect Notion** to authorize the integration
4. Complete the OAuth flow to grant Alhena AI access to your workspace
5. Select which pages Alhena AI should have access to during the Notion authorization

## How It Works

Once connected, Alhena AI:

* Ingests content from the Notion pages you've shared with the integration
* Keeps your AI's knowledge updated as you update your Notion content
* Only accesses pages you explicitly grant permission to during setup

## Managing the Connection

After connecting, you can view your connected workspace in the Notion integration settings. To disconnect:

1. Go to **AI Settings > Knowledge Base**
2. Click on the Notion integration
3. Click **Disconnect Notion** to remove the connection

## Permissions

During the OAuth flow, Notion will ask you to select which pages Alhena AI can access. You can grant access to:

* Specific pages
* Entire databases
* Full workspace (if desired)

Only grant access to content you want your AI to learn from.

## Public Notion Pages

For public Notion pages that don't require authentication, you can also add them directly as URLs in your knowledge base without connecting your workspace. Simply add the public Notion URL as a [website data source](/docs/ai-configuration/data-sources/websites.md).
