---
title: นำเข้าหน้าของ Notion
slug: th/user-guides/notion
createdAt: 2024-06-25T12:54:30.377Z
---

คล้ายกับ Confluence คุณยังสามารถผสานรวม AI กับหน้าภายนอกของ Notion ได้เช่นกัน คุณต้องตั้งค่าข้อมูลยืนยันตัวตนและ URL สำหรับพื้นที่ Notion ที่เราจะดึงเอกสารเข้ามา

## การตั้งค่า

1. สร้าง [Notion integration ](https://www.notion.so/my-integrations)และบันทึกรหัสลับสำหรับ Internal Integration อย่างปลอดภัย ซึ่งเรียกอีกอย่างว่า `NOTION_INTEGRATION_TOKEN`
2. เพิ่มการเชื่อมต่อกับ integration ใหม่ของคุณในหน้าหรือฐานข้อมูลของคุณ วิธีทำคือ เปิดหน้า Notion ของคุณ ไปที่ Settings มุมขวาบน และเลื่อนลงไปที่ `Add connections` แล้วเลือก integration ใหม่ของคุณ
3. ดึงค่า `PAGE_ID` หรือ `DATABASE_ID` สำหรับหน้าที่คุณต้องการโหลด ตัวเลขฐานสิบหก 32 หลักใน URL คือ ID เช่น:

:::BlockQuote
PAGE\_ID ของ: [https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4](https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4) คือ [`b34ca03f219c4420a6046fc4bdfdf7b4`](https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4)
:::

![](https://api.archbee.com/api/optimize/bNBm7nPJgXjbjLyfbHNh2/lAN9qJDGGMl_mEB_1kFXJ_aiext-notion-light.png "นำเข้าหน้า Notion")

