# 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 **Ingest from other sources** 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alhena.gitbook.io/docs/ai-configuration/data-sources/notion-pages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
