This workflow corresponds to n8n.io template #6500 — we link there as the canonical source.
This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "889783dd-88c8-4344-ab75-26ff93abbc03",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-416,
528
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "de6ea262-83f6-4411-bd3a-a594f52e4967",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-128,
528
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0dfc989d-7dd2-4b9c-b0d9-245e28a90c68",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
224,
528
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "55c51c3f-8c2e-41e5-a956-c5f5f936b21b",
"name": "Sticky Note",
"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": "Start Chat Conversation",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-384,
144
],
"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": "Remember Chat History",
"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
}
],
"connections": {
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Smart AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Remember Chat History": {
"ai_memory": [
[
{
"node": "Smart AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Start Chat Conversation": {
"main": [
[
{
"node": "Smart AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Set & Get Notion Database": {
"ai_tool": [
[
{
"node": "Smart AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This workflow creates an AI chatbot that uses your Notion database as a knowledge base and allows for website embedding (e.g., as a customer support chatbot). The AI agent can automatically query your Notion pages and databases to provide accurate, contextual responses based on…
Source: https://n8n.io/workflows/6500/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Generate Sql Queries From Schema Only Ai Powered. Uses lmChatOpenAi, memoryBufferWindow, noOp, mySql. Chat trigger; 29 nodes.
Generate SQL queries from schema only - AI-powered. Uses lmChatOpenAi, memoryBufferWindow, noOp, mySql. Chat trigger; 29 nodes.
Generate SQL queries from schema only - AI-powered. Uses lmChatOpenAi, memoryBufferWindow, noOp, mySql. Chat trigger; 29 nodes.
This workflow is a modification of the previous template on how to create an SQL agent with LangChain and SQLite.
This n8n template provides a powerful AI-powered chatbot that acts as your personal Spotify DJ. Simply tell the chatbot what kind of music you're in the mood for, and it will intelligently create a cu