# Notion

This loader collects data from Notion pages.

## Configuration

### Notion pages

These are the pages that this agent will use as its source of content. You can add as many as you like from a single workspace. If a page has nested pages, the nested pages will be read as separate documents.

{% hint style="warning" %}
If you configure a Notion page that links to a separate Notion page, we will try to read it as well. To allow Katara to read the linked page, you must also include that page in your integration's access.
{% endhint %}

### Integration secret

The integration secret is a code that allows Katara to access your Notion pages.

#### Creating an integration secret

To create a secret, follow these steps:

1. Go to [the integrations page](https://www.notion.so/profile/integrations) and click "New integration"
2. Give the integration a name, select the associated workspace you want to get data from, and create the integration.
3. In the dialog that appears, click "Configure integration settings"
4. To allow Katara to access the pages you configure in the Katara platform, you must also add these pages to the integration. To do so, go to the "Access" tab, and select the same pages you configured the agent to use.
5. Return to the "Configuration" tab, and copy the "Internal Integration Secret". This is the code to use for the "Integration secret" on the Katara platform.

{% hint style="success" %}
Your secrets are safe with us. We encrypt secrets end-to-end, so no one but Katara can use them.
{% endhint %}

### Tags

Tags are applied to all future data collected by this agent, which can be used later for filtering.


---

# 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://docs.katara.ai/about/agents/loaders/notion.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.
