Tích hợp Notion cho chatbot và AI agent
Về tích hợp này
Notion là một trong những tích hợp phổ biến nhất của chúng tôi dành cho chatbot AI.
Kết nối chatbot với Notion cho phép người xây dựng tạo, cập nhật và tìm kiếm trang hoặc cơ sở dữ liệu trực tiếp từ cuộc trò chuyện, biến Notion thành cả kho kiến thức động và hệ thống lưu trữ dữ liệu cho quy trình chatbot.
Với tích hợp này, chatbot có thể lấy thông tin từ Notion để trả lời câu hỏi của người dùng, lưu trữ dữ liệu khách hàng thu thập trong cuộc trò chuyện, và tự động ghi chú cuộc họp, nhiệm vụ hoặc phản hồi. Điều này giúp dễ dàng kết nối AI hội thoại với tài liệu nhóm, quản lý dự án hoặc hồ sơ khách hàng.
Tích hợp Notion đặc biệt hữu ích cho các doanh nghiệp đã sử dụng Notion làm không gian làm việc trung tâm. Thay vì phải sao chép và dán thông tin từ cuộc trò chuyện, chatbot sẽ cập nhật Notion theo thời gian thực.
Điều đó có nghĩa là các nhóm luôn có thông tin khách hàng mới nhất, phiếu hỗ trợ hoặc cập nhật nhiệm vụ ngay trong không gian làm việc Notion của mình.
Bằng cách kết nối Notion và chatbot, người xây dựng có thể giảm việc nhập liệu thủ công, đảm bảo thông tin chính xác và sử dụng Notion như cả đầu vào lẫn đầu ra cho tự động hóa chatbot.
Tính năng chính
- Tạo và cập nhật trang Notion từ cuộc trò chuyện với chatbot
- Lưu trữ dữ liệu khách hàng trong cơ sở dữ liệu Notion
- Tìm kiếm nội dung Notion để hỗ trợ phản hồi chatbot
- Tự động ghi lại nhiệm vụ, ghi chú và phản hồi
- Đồng bộ dữ liệu chatbot với bảng quản lý dự án
- Tổ chức thông tin hỗ trợ bên trong Notion
- Kích hoạt cập nhật Notion từ quy trình chatbot
- Giữ không gian làm việc nhóm luôn được cập nhật theo thời gian thực
Làm thế nào để kết nối chatbot với Notion?
Để kết nối chatbot với Notion, bạn xác thực tài khoản Notion của mình trong phần cài đặt tích hợp của nền tảng chatbot. Điều này cho phép chatbot đọc và ghi vào các trang, cơ sở dữ liệu của Notion.
Làm sao để tạo hoặc cập nhật một trang Notion từ cuộc trò chuyện với chatbot?
Bạn cấu hình chatbot để gửi dữ liệu cuộc trò chuyện sang Notion thông qua tích hợp. Khi có một sự kiện kích hoạt—như người dùng gửi phản hồi—chatbot sẽ tạo trang mới hoặc cập nhật trang hiện có với nội dung đó.
Làm thế nào để sử dụng Notion làm kho kiến thức cho phản hồi của chatbot?
Bạn có thể kết nối chatbot với cơ sở dữ liệu Notion lưu trữ các câu hỏi thường gặp, chính sách hoặc tài liệu. Chatbot sẽ truy vấn cơ sở dữ liệu đó và trả về nội dung trang phù hợp trong cuộc trò chuyện.
Làm sao để tìm kiếm nội dung Notion thông qua chatbot?
Bạn bật tính năng tìm kiếm bằng cách liên kết chatbot với cơ sở dữ liệu Notion qua tích hợp. Khi người dùng đặt câu hỏi, chatbot sẽ tra cứu từ khóa hoặc thực thể trong Notion và cung cấp thông tin phù hợp.
Làm thế nào để lưu các loại dữ liệu khác nhau từ cuộc trò chuyện vào Notion?
Bạn có thể lưu các trường nhập liệu văn bản như tên, email, phản hồi, ghi chú, cũng như dữ liệu có cấu trúc như hộp kiểm, thẻ hoặc trường trạng thái. Tích hợp sẽ ánh xạ biến của chatbot với trường trong cơ sở dữ liệu Notion.
Làm sao để tự động cập nhật workspace Notion bằng dữ liệu từ chatbot?
Bạn xây dựng quy trình làm việc để các sự kiện của chatbot kích hoạt cập nhật Notion. Ví dụ, khi khách hàng gửi yêu cầu trong cuộc trò chuyện, chatbot sẽ tự động tạo hoặc cập nhật mục tương ứng trong Notion, giúp không gian làm việc luôn mới mà không cần thao tác thủ công.
The Notion Integration for Botpress Studio allows you to do the following things:
## Migrating from version `0.x` or `1.x` to `2.x`
Version `2.0` of the Notion integration adds OAuth support, which is now the default configuration option.
If you previously created a Notion integration in the Notion developer portal and wish to keep using this integration, please select the manual configuration option and follow the instructions below.
Otherwise, select the automatic configuration option and click the authorization button, then follow the on-screen instructions to connect your Botpress chatbot to Notion.
## Configuration
### Automatic configuration with OAuth (recommended)
This is the simplest way to set up the integration. To set up the Notion integration using OAuth, click the authorization button and follow the on-screen instructions to connect your Botpress chatbot to Notion. This method is recommended as it simplifies the configuration process and ensures secure communication between your chatbot and Notion.
When using this configuration mode, a Botpress-managed Notion application will be used to connect to your Notion account. Actions taken by the bot will be attributed to this application, not your personal Notion account.
### Manual configuration with a custom Notion integration
#### Step 1 - Create Integration
Create a Notion integration [Create an integration - Notion Developers](https://developers.notion.com/docs/create-a-notion-integration)
#### Step 2 - Give access to Notion Assets
Give your integration access to all the pages and databases that you want to use with Botpress
#### Step 3 - Configure your Bot
Give your integration access to all the pages and databases that you want to use with Botpress. [Share a database with your integration - Notion Developers](https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration)
You need a token to get your newly created Notion Integration _(not the same as Botpress Studio's Notion Integration)_ connected with Botpress Studio:
- `Auth Token` - You'll find this by going to your integration under `https://www.notion.so/my-integrations`. Once you click on your integration, go to the "Secrets" section and find the "Internal Integration Secret" field. Click "Show" then "Copy". Paste the copied token under `Auth Token` field for Notion integration under the "Integrations" tab for your bot.
With that you just need to enable your integration and you can start expanding your Bot's capabilities with Notion.
## Usage
The following actions require you to know the Ids of the Notion entities your bot will work with. All notion entities (pages, databases, etc) have and id that can be found in the URL when you visit those in your Notion account in a Browser,or by getting the link by clicking on the "Copy Link" item in the (...) menu. See [Get a Database Id - Notion Developers](https://developers.notion.com/docs/create-a-notion-integration#step-3-save-the-database-id) for more information
### Add Comment to a Discussion
This action allows you to add a comment to an existing discussion. Use this for replying to a comment.
### Add Comment to a Page
You can add page level comments with this action.
### Get a Database
This allows you to get the details of a Database. This is ideally used with the `Add Page to a Database` action. In addition to the response from the Notion API ([Retreive a Database - Notion Developers](https://developers.notion.com/reference/retrieve-a-database)), this action also returns a optimized `structure` property (technically a type decleration) that can be used as an input for an AI task to instruct it to generate a payload for adding or updating a page in a Notion Database based on a user input.
### Add Page to a Database
This action should ideally be used in tandem with `Get a Database` that returns the structure of the Database that you can use to instruct an [AI task](https://botpress.com/docs/cloud/generative-ai/ai-task-card/) to generate a payload. See [Working with Databases - Notion Developers](https://developers.notion.com/docs/working-with-databases) for more info.
### Delete a block
You can delete the following entities:
- a page in a database
- a page
- a block