---
title: Importer des pages Notion
slug: importer-des-pages-notion
docTags: 
createdAt: 2024-06-25T12:54:30.377Z
---

Comme pour Confluence, vous pouvez également intégrer l’IA avec des pages Notion externes. Vous devez définir des informations d’identification et l’URL d’un espace Notion à partir duquel nous ingérerons la documentation.

## Configuration

1. Créez une [intégration Notion ](https://www.notion.so/my-integrations)et enregistrez en toute sécurité le Internal Integration Secret, également connu sous le nom de `NOTION_INTEGRATION_TOKEN`
2. Ajoutez une connexion à votre nouvelle intégration sur votre page ou base de données. Pour ce faire, ouvrez votre page Notion, allez à Settings en haut à droite et faites défiler jusqu’à `Ajouter des connexions` et sélectionnez votre nouvelle intégration.
3. Obtenez le `PAGE_ID` ou le `DATABASE_ID` pour la page que vous souhaitez charger. L’identifiant de 32 caractères hexadécimaux dans le chemin de l’URL représente l’ID. par exemple :

:::BlockQuote
Le PAGE\_ID de : [https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4](https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4) est [`b34ca03f219c4420a6046fc4bdfdf7b4`](https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4)
:::

![](https://api.archbee.com/api/optimize/bNBm7nPJgXjbjLyfbHNh2/lAN9qJDGGMl_mEB_1kFXJ_aiext-notion-light.png "Importer des pages Notion")

