チャットボットおよびAIエージェント向けのNotion連携
この連携について
Notionは、AIチャットボット向けの連携機能の中でも特に人気があります。
チャットボットをNotionに接続することで、会話の中からページやデータベースを直接作成・更新・検索できるようになり、Notionを動的なナレッジベースやチャットボットのワークフロー用データストレージとして活用できます。
この連携により、チャットボットはNotionから情報を取得してユーザーの質問に答えたり、チャット中に収集した顧客データを保存したり、会議メモやタスク、フィードバックを自動で記録できます。これにより、会話型AIとチームのドキュメント管理、プロジェクト管理、顧客記録を簡単につなげることができます。
Notion連携は、すでにNotionを中心的なワークスペースとして利用している企業に特に便利です。チャット内容をコピー&ペーストする代わりに、チャットボットがリアルタイムでNotionを更新します。
つまり、チームは常に最新の顧客インサイトやサポートチケット、タスクの進捗をNotionワークスペース内で把握できます。
Notionとチャットボットを連携させることで、手作業によるデータ入力を減らし、情報の正確性を保ち、Notionをチャットボット自動化の入力・出力の両方として活用できます。
主な機能
- チャットボットの会話からNotionページを作成・更新
- 顧客データをNotionデータベースに保存
- Notionのコンテンツを検索してチャットボットの回答に活用
- タスク、メモ、フィードバックを自動で記録
- チャットボットの入力内容をプロジェクト管理ボードと同期
- サポート情報をNotion内で整理
- チャットボットのワークフローからNotionの更新をトリガー
- チームのワークスペースをリアルタイムで最新状態に保つ
チャットボットをNotionに接続するにはどうすればいいですか?
チャットボットをNotionに接続するには、チャットボットプラットフォームの連携設定でNotionアカウントを認証します。これにより、チャットボットがNotionのページやデータベースを読み書きできるようになります。
チャットボットの会話からNotionページを作成または更新するにはどうすればいいですか?
連携機能を使って、チャットボットが会話データをNotionに送信するよう設定します。たとえば、ユーザーがフィードバックを送信したときなどのトリガーで、チャットボットが新しいページを作成したり、既存のページをその内容で更新したりします。
チャットボットの回答用のナレッジベースとしてNotionを活用するにはどうすればいいですか?
FAQやポリシー、ドキュメントを保存したNotionデータベースにチャットボットを接続できます。チャットボットはそのデータベースを検索し、会話中に該当するページ内容を返答として表示します。
チャットボットを使ってNotionのコンテンツを検索するにはどうすればいいですか?
連携機能を使ってチャットボットをNotionのデータベースに接続し、検索機能を有効にします。ユーザーが質問すると、チャットボットがNotion内のキーワードや項目を検索し、一致する情報を提供します。
チャットのさまざまな種類のデータをNotionに保存するにはどうすればいいですか?
名前やメールアドレス、フィードバック、メモなどのテキスト入力だけでなく、チェックボックスやタグ、ステータスフィールドなどの構造化データも保存できます。連携機能でチャットボットの変数とNotionデータベースのフィールドを対応させます。
チャットボットからの入力でNotionワークスペースを自動的に最新の状態に保つにはどうすればいいですか?
チャットボットのイベントがNotionの更新をトリガーするワークフローを構築します。たとえば、顧客がチャットでリクエストを送信した際に、チャットボットが自動でNotion内の該当エントリを作成・更新し、手作業なしでワークスペースを最新状態に保ちます。
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