Notion Loader
The notion
loader is a HelperAI loader that allows you to load data from a notion page into the HelperAI Knowledge Base.
Each sub-page in the Notion page will be converted into a HelperAI Knowledge Base record.
The provided Notion page should have the following page structure:
Main Page (Provied this page's id to the loader)
|-- Sub-Page 1
|-- Sub-Page 2
|-- Sub-Page 3
|-- ...
Please note that only the titles and content of sub-pages will be loaded by the loader. Therefore, any direct inline content on the main page will be ignored.
Loader Properties
Property | Type | Description |
---|---|---|
notionToken | string | Notion integration token |
notionPageId | string | The Notion page ID to load data from. Each sub-page in the Notion page will be converted into a HelperAI Knowledge Base record. |
Example
In this example, we will start by getting the Notion integration token and the Notion page ID.
Get Notion Integration Token
- Go to Notion's My Integrations page.
- Click on the
+ Create New Integration
button.
- In the
Associate a Workspace
section, select the workspace you want to associate with the integration. - In the
Name
section, enter a name for your integration. For example: "HelperAI Integration". - Click the
Submit
button. - You will be redirected to the integration page. Click on the
Internal Integration Token
button to copy the integration token to the clipboard.
Grant Page Access to the Integration
-
Go to the Notion page (the main page) you want to load data from.
-
Click the
...
button in the top right corner of the page, and selectAdd Connection
from the dropdown menu. -
Select the integration you created in the previous step. For example: "HelperAI Integration".
Get Notion Page ID
-
Go to the Notion page you want to load data from.
-
Click the
Share
button in the top right corner of the page. -
Click the
Copy Link
button to copy the page url to the clipboard. -
The copied url ends with the Notion page ID. For example, if the url is
https://www.notion.so/helperai/MY-KNOWLEDGE-7966917701234d19ad2452a23e3b0eb1?pvs=4
, then the Notion page ID is7966917701234d19ad2452a23e3b0eb1
.
If your URL has query parameters like
?pvs=4
at the end, please be sure to ignore them as they are not part of the page ID. In summary, any string after the?
can be disregarded.
Updated 12 months ago