Notion AI assistant generator
Needs changesWhat this workflow does
This AI workflow has 18 nodes and runs when a chat message arrives. Along the way it connects Notion and Anthropic Chat Model.
How it runs
Trigger: When a chat message arrives.
- Notion: work with database
- standardize schema (Edit Fields (Set)): sets 5 fields: inputDatabase.id, inputDatabase.url, inputDatabase.public_url…
- Return error to chat (Edit Fields (Set)): sets 2 fields: sessionId, output
- Simplify properties object (Code): runs custom JavaScript code
- Set input data (Code): runs custom JavaScript code
- Generate Workflow Agent (AI Agent): runs an AI agent, with model: Anthropic Chat Model; output parser: Auto-fixing Output Parser
- Set schema for eval (Edit Fields (Set)): sets 3 fields: searchNotionDBJsonBody, generatedWorkflow, inputDatabase
- Check for WF JSON errors (Switch): routes items into 1 branches
- Add feedback prompt (Edit Fields (Set)): sets 1 field: feedbackPrompt
- Valid n8n workflow JSON? (Text Classifier): classifies text into categories with AI, with model: Anthropic Chat Model
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Generate Workflow 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 |
|---|---|
| AI Agent v1 (old agent modes) Generate Workflow 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 (10)
- Notion
n8n-nodes-base.notion - Edit Fields (Set)
n8n-nodes-base.set - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Code
n8n-nodes-base.code - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - AI Agent
@n8n/n8n-nodes-langchain.agent - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier
From the author
This n8n workflow template lets teams easily generate a custom AI chat assistant based on the schema of any Notion database. Simply provide the Notion database URL, and the workflow downloads the schema and creates a tailored AI assistant designed to interact…