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

# Notion

## Integrating Notion as a Data Source

This guide describes how to integrate Notion as a data source within your project. Integrating Notion allows you to fetch and pull documents from your Notion workspace into our system, enabling indexing and easy access.

### Tutorial

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwdzwyuBszBNWGUXL29Dw%2Fuploads%2FSAyveTB3JMrMjeLwk4Mc%2FNotion%20Datasource%20Tutorial.mp4?alt=media&token=a9006673-4d54-4b18-9ba6-a9874c7d28ea>" %}
Notion Integration
{% endembed %}

#### Step-by-Step Guide

Follow these instructions to add Notion as a data source:

1. **Navigate to the Correct Project**
   * From the navigation bar, select the project where you wish to add the Notion data source.
2. **Access Data Sources**
   * On the navigation menu, select **Data Sources**.
3. **Initiate the Add Source Process**
   * Click the **Add Source** button.
4. **Select Notion**
   * Choose **Notion** from the list of available data sources.
5. **Authorize Notion Access**
   * You will be prompted to authorize your Notion account.
   * Sign in with your Notion credentials and grant the requested permissions.
6. **Set Permissions and Select Pages**
   * Ensure you review and confirm the required permissions.
   * Proceed by clicking **Select Pages**.
7. **Choose Documents**
   * Select the checkboxes next to each Notion document you wish to fetch.
   * After selection, click **Allow Access**.
8. **Completion**
   * After successful authorization and document selection, you'll be redirected back to our application.
   * Your newly added Notion data source with the selected files will now be visible under **Data Sources**.

#### Automatic Document Fetching

Our application supports auto-fetch functionality, which periodically fetches and updates your selected Notion documents. You can enable or disable this feature within the settings of your Notion data source after it has been successfully integrated.

<figure><img src="/files/JQ48tk2NJdmLMpIbdpfC" alt=""><figcaption></figcaption></figure>

***

For further assistance or troubleshooting, please contact our support team.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bodt.io/data-source/notion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
