Notion knowledge base AI assistant
Needs changesWhat this workflow does
This AI workflow has 8 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model, HTTP Request and Notion. It also calls api.notion.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- Get database details (Notion): work with database
- Format schema (Edit Fields (Set)): sets 6 fields: sessionId, action, chatInput…
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Search notion database, Search inside database record); memory: Window Buffer Memory
Services it uses
HTTP calls to: api.notion.com
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- HTTP Request Tool (legacy) in Search notion database, Search inside database record: replace with HTTP Request node connected to the AI Agent's Tool input.
- AI Agent v1 (old agent modes) in AI Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| HTTP Request Tool (legacy) Search notion database, Search inside database record | HTTP Request node connected to the AI Agent's Tool input |
| AI Agent v1 (old agent modes) AI Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - Notion
n8n-nodes-base.notion - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger
From the author
Who is this for This workflow is perfect for teams and individuals who manage extensive data in Notion and need a quick, AI-powered way to interact with their databases. If you're looking to streamline your knowledge management, automate searches, and get…