OpenAIとNotionを使用して、ウェブサイトに埋め込める知識ベースチャットボットを作成する
これはSupport Chatbot, AI RAG分野の自動化ワークフローで、9個のノードを含みます。主にNotionTool, Agent, ChatTrigger, LmChatOpenAi, MemoryBufferWindowなどのノードを使用。 OpenAIとNotionを使ってウェブサイトに埋め込める知識ベースチャットボットを作成
- •Notion API Key
- •OpenAI API Key
{
"meta": {
"instanceId": "cba9e349b601c19a1409b9fd06680aff0a77829be13c8aad9a858d4cea7ff290",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "889783dd-88c8-4344-ab75-26ff93abbc03",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-416,
528
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "de6ea262-83f6-4411-bd3a-a594f52e4967",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-128,
528
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0dfc989d-7dd2-4b9c-b0d9-245e28a90c68",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
224,
528
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "55c51c3f-8c2e-41e5-a956-c5f5f936b21b",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-288,
-112
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e8b9d000-d0ac-4574-9db8-7f286dcf5b58",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-336,
368
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "6d3f259c-2d95-4d52-b270-c7f0bfb41a69",
"name": "チャット会話を開始",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-384,
144
],
"webhookId": "cf1de04f-3e38-426c-89f0-3bdb110a5dcf",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "93e69333-6752-4dc7-85e7-76e2a3140a9e",
"name": "Smart AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-128,
144
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "683ce86c-ee1c-4809-a775-d949a3795354",
"name": "チャット履歴を記憶",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-16,
368
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "c0c049f9-81f4-47a4-ad8f-e6a9f1049a99",
"name": "Set & Get Notion Database",
"type": "n8n-nodes-base.notionTool",
"position": [
320,
368
],
"parameters": {},
"typeVersion": 2.2
}
],
"pinData": {},
"connections": {
"e8b9d000-d0ac-4574-9db8-7f286dcf5b58": {
"ai_languageModel": [
[
{
"node": "93e69333-6752-4dc7-85e7-76e2a3140a9e",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"683ce86c-ee1c-4809-a775-d949a3795354": {
"ai_memory": [
[
{
"node": "93e69333-6752-4dc7-85e7-76e2a3140a9e",
"type": "ai_memory",
"index": 0
}
]
]
},
"6d3f259c-2d95-4d52-b270-c7f0bfb41a69": {
"main": [
[
{
"node": "93e69333-6752-4dc7-85e7-76e2a3140a9e",
"type": "main",
"index": 0
}
]
]
},
"c0c049f9-81f4-47a4-ad8f-e6a9f1049a99": {
"ai_tool": [
[
{
"node": "93e69333-6752-4dc7-85e7-76e2a3140a9e",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - サポートチャットボット, AI RAG検索拡張
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Gegenfeld
@gegenfeldWe at Gegenfeld are an EdTech platform dedicated to delivering high-quality on-demand courses and interactive training sessions for professional development at all skill levels. With our commitment to "Accelerate your future," we empower professionals to enhance their expertise through engaging, industry-focused learning experiences. On n8n, we share some of the workflows used in our interactive training to provide deeper insights and practical applications.
このワークフローを共有