> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync Data from Notion

Dify datasets support importing from Notion and setting up **synchronization** so that data updates in Notion are automatically synced to Dify.

<Info>
  Notion connects through the **Notion** data source plugin. See [Connect the Notion Data Source](#connect-the-notion-data-source) below.
</Info>

### Authorization Verification

1. When creating a knowledge base and selecting the data source, choose **Sync from Notion** and follow the prompts to connect.
2. Alternatively, you can go to **Settings -- Data Source** and connect Notion on its card.

### Import Notion Data

After completing the authorization verification, go to the create dataset page, click **Sync from Notion Content**, and select the authorized pages you need to import.

<Frame>
  ![Completing the Authorization Verification, Go to the Create Dataset Page, Click](https://assets-docs.dify.ai/2025/04/f9199ff4747b5aaff563e226412723d0.png)
</Frame>

### Chunking and Cleaning

Next, choose a [chunking mode](/en/3.6.x/use/knowledge/create-knowledge/chunking-and-cleaning-text) and [indexing method](/en/3.6.x/use/knowledge/create-knowledge/setting-indexing-methods) for your knowledge base, then save it and wait for the automatically processing. Dify not only supports importing standard Notion pages but can also consolidate and save page attributes from database-type pages.

<Note>
  Images and files cannot be imported, and data from tables will be converted to text.
</Note>

<Frame>
  ![\_Note](https://assets-docs.dify.ai/2025/04/723f7782853698598726d09997383747.png)
</Frame>

### Synchronize Notion Data

If your Notion content has been updated, you can sync the changes by clicking the **Sync** button for the corresponding page in the document list of your knowledge base. Syncing involves an embedding process, which will consume tokens from your embedding model.

<Frame>
  ![If Your Notion Content Has Been Updated, You Can Sync the Changes by Clicking](https://assets-docs.dify.ai/2024/12/af7cabd98c3aac392819d9041cc408de.png)
</Frame>

### Connect the Notion Data Source

Notion connects through the **Notion** data source plugin (`langgenius/notion_datasource`). If the Notion card does not appear under **Settings -- Data Source**, install the plugin from the Dify Marketplace first.

The Notion card offers two credential options:

* **OAuth**: click **Add OAuth** and complete the authorization in the Notion window that opens.
* **API key**: create an internal integration on the Notion [integration settings page](https://www.notion.so/my-integrations), copy the secret under **Secrets**, then click **Add API Key** on the Notion card and paste it. For details on Notion integrations, refer to the [official Notion documentation](https://developers.notion.com/guides/get-started/authorization).
