Skip to main content

Notion AI assistant generator

Workflow preview

Workflow preview
100%
Notion AI assistant generator preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Internal Wiki automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.notion, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.outputparserautofixing, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.switch

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Max Tkacz.

Original n8n.io source

1.1 Workflow description

Title
Notion AI assistant generator
Workflow name
Notion AI assistant generator

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 with that specific database structure.

Set Up

Watch this quick set up video 👇

Key Features

  • Instant Assistant Generation: Enter a Notion database URL, and the workflow produces an AI assistant configured to the database schema.
  • Advanced Querying: The assistant performs flexible queries, filtering records by multiple fields (e.g., tags, names). It can also search inside Notion pages to pull relevant content from specific blocks.
  • Schema Awareness: Understands and interacts with various Notion column types like text, dates, and tags for accurate responses.
  • Reference Links: Each query returns direct links to the exact Notion pages that inform the assistant’s response, promoting transparency and easy access.
  • Self-Validation: The workflow has logic to check the generated assistant, and if any errors are detected, it reruns the agent to fix them.

Ideal for

  • Product Managers: Easily access and query product data across Notion databases.
  • Support Teams: Quickly search through knowledge bases for precise information to enhance support accuracy.
  • Operations Teams: Streamline access to HR, finance, or logistics data for fast, efficient retrieval.
  • Data Teams: Automate large dataset queries across multiple properties and records.

How It Works

This AI assistant leverages two HTTP request tools—one for querying the Notion database and another for retrieving data within individual pages. It’s powered by the Anthropic LLM (or can be swapped for GPT-4) and always provides reference links for added transparency.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Notion

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 3 - Return success to chat

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Auto-fixing Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserAutofixing - outputParserAutofixing
Config choices
Version 1

Block 5 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.2

Block 6 - Set schema for eval

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Return error to chat

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Anthropic Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.2

Block 9 - standardize schema

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Simplify properties object

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 12 - Set input data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Set schem for rerun

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Add feedback prompt

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Check for WF JSON errors

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.1

Block 19 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Generate Workflow Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 21 - Anthropic Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.2

Block 22 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 23 - Valid n8n workflow JSON?

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1

Block 24 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Notion AI assistant generator
Complexity advanced
Nodes 24
Categories Internal Wiki, AI Chatbot
Author Max Tkacz
Published 16 Sept 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2415/2415.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Notion AI assistant generator do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI Chatbot use case.