Templates / Notion AI assistant generator

Notion AI assistant generator

Needs changes

by Max Tkacz ✓ · 50,195 views · created 2024-09-16 · Internal Wiki, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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.

  1. Notion: work with database
  2. standardize schema (Edit Fields (Set)): sets 5 fields: inputDatabase.id, inputDatabase.url, inputDatabase.public_url…
  3. Return error to chat (Edit Fields (Set)): sets 2 fields: sessionId, output
  4. Simplify properties object (Code): runs custom JavaScript code
  5. Set input data (Code): runs custom JavaScript code
  6. Generate Workflow Agent (AI Agent): runs an AI agent, with model: Anthropic Chat Model; output parser: Auto-fixing Output Parser
  7. Set schema for eval (Edit Fields (Set)): sets 3 fields: searchNotionDBJsonBody, generatedWorkflow, inputDatabase
  8. Check for WF JSON errors (Switch): routes items into 1 branches
  9. Add feedback prompt (Edit Fields (Set)): sets 1 field: feedbackPrompt
  10. 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

NotionAnthropic Chat Model

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.0Replace 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)

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…

Excerpt from Max Tkacz's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.