Integrasi Notion untuk chatbot dan ejen AI
Tentang integrasi ini
Notion adalah salah satu integrasi paling popular kami untuk chatbot AI.
Menyambungkan chatbot ke Notion membolehkan pembangun mencipta, mengemas kini, dan mencari halaman atau pangkalan data secara terus dari perbualan, menjadikan Notion sebagai pangkalan pengetahuan dinamik dan sistem penyimpanan data untuk aliran kerja chatbot.
Dengan integrasi ini, chatbot boleh menarik maklumat dari Notion untuk menjawab soalan pengguna, menyimpan data pelanggan yang dikumpul semasa perbualan, serta merekod nota mesyuarat, tugasan, atau maklum balas secara automatik. Ini memudahkan sambungan AI perbualan dengan dokumentasi pasukan, pengurusan projek, atau rekod pelanggan.
Integrasi Notion sangat berguna untuk perniagaan yang sudah menggunakan Notion sebagai ruang kerja utama mereka. Daripada menyalin dan menampal maklumat dari perbualan, chatbot akan mengemas kini Notion secara masa nyata.
Ini bermakna pasukan sentiasa mempunyai maklumat pelanggan terkini, tiket sokongan, atau kemas kini tugasan terus di ruang kerja Notion mereka.
Dengan menyambungkan Notion dan chatbot, pembangun dapat mengurangkan kemasukan data secara manual, memastikan maklumat sentiasa tepat, dan menggunakan Notion sebagai input serta output untuk automasi chatbot.
Ciri utama
- Cipta dan kemas kini halaman Notion daripada perbualan chatbot
- Simpan data pelanggan dalam pangkalan data Notion
- Cari kandungan Notion untuk menjana respons chatbot
- Rekod tugasan, nota, dan maklum balas secara automatik
- Segerakkan input chatbot dengan papan pengurusan projek
- Susun maklumat sokongan dalam Notion
- Cetuskan kemas kini Notion daripada aliran kerja chatbot
- Pastikan ruang kerja pasukan sentiasa dikemas kini secara masa nyata
Bagaimana saya boleh sambungkan chatbot ke Notion?
Untuk menyambungkan chatbot ke Notion, anda perlu mengesahkan akaun Notion anda dalam tetapan integrasi platform chatbot. Ini membolehkan chatbot membaca dan menulis ke halaman serta pangkalan data Notion.
Bagaimana saya boleh cipta atau kemas kini halaman Notion melalui perbualan chatbot?
Anda boleh tetapkan chatbot untuk menghantar data perbualan ke Notion menggunakan integrasi ini. Apabila pencetus berlaku—seperti pengguna menghantar maklum balas—chatbot akan mencipta halaman baru atau mengemas kini halaman sedia ada dengan kandungan tersebut.
Bagaimana saya boleh gunakan Notion sebagai pangkalan pengetahuan untuk respons chatbot?
Anda boleh sambungkan chatbot ke pangkalan data Notion yang menyimpan Soalan Lazim, polisi, atau dokumentasi. Chatbot boleh membuat carian dalam pangkalan data itu dan memaparkan kandungan halaman berkaitan sebagai jawapan semasa perbualan.
Bagaimana saya boleh cari kandungan Notion melalui chatbot?
Anda boleh aktifkan carian dengan menghubungkan chatbot ke pangkalan data Notion melalui integrasi. Apabila pengguna bertanya soalan, chatbot akan mencari kata kunci atau entiti dalam Notion dan memberikan maklumat yang sepadan.
Bagaimana saya boleh simpan pelbagai jenis data daripada perbualan ke dalam Notion?
Anda boleh menyimpan input teks seperti nama, emel, maklum balas, dan nota, serta data berstruktur seperti kotak semak, tag, atau medan status. Integrasi ini memadankan pembolehubah chatbot dengan medan pangkalan data Notion.
Bagaimana saya boleh pastikan workspace Notion sentiasa dikemas kini secara automatik dengan input chatbot?
Anda boleh bina aliran kerja di mana peristiwa chatbot mencetuskan kemas kini Notion. Contohnya, apabila pelanggan menghantar permintaan dalam perbualan, chatbot secara automatik akan mencipta atau mengemas kini entri yang sepadan dalam Notion, memastikan ruang kerja sentiasa terkini tanpa usaha manual.
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