docs/guides/dataset/add_data_source/add_notion.md
Connecting your Notion workspace to RAGFlow allows you to ingest and sync your notes, databases, and documents directly into your dataset. Once configured, RAGFlow fetches data from the specified Notion pages to provide context for your RAG applications.
Before you begin, ensure you have:
To allow RAGFlow to access your Notion data, you must first create an internal integration in the Notion developer portal to generate a secret token.
By default, an integration has no access to any pages in your workspace. You must explicitly share the pages you want RAGFlow to index.
:::tip NOTE If you share a parent page, all its nested child pages and databases will automatically be accessible to the integration. :::
The Root Page Id tells RAGFlow where to start indexing. You can find this in the URL of your Notion page.
https://www.notion.so/workspace-name/Page-Title-11a047149aef80578303e705001bb90e?).Once you have your token and ID, add the connector within the RAGFlow interface.
| Field | Description | Required |
|---|---|---|
| Name | A unique label for this data source (e.g., Engineering Wiki). | Yes |
| Notion Integration Token | The "Internal Integration Secret" copied from your Notion developer portal. | Yes |
| Root Page Id | The 32-character ID of the top-level page you want to sync. | No |
Once configuration is complete, click Confirm to save your changes.
RAGFlow validates the connection immediately.
Credentials alone do not trigger indexing. You must link the data source to a specific dataset: