AutomationMart
Home/Browse/Create a knowledge base chatbot with OpenAI and Notion for website embedding
n8n

Create a knowledge base chatbot with OpenAI and Notion for website embedding

n8nn8n5 modulesv1.0
NotionOpenAIGemini

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 your stored content. Who's it for This template is perfect for: Support teams who maintain their knowledge

At a glance

Create a knowledge base chatbot with OpenAI and Notion for website embedding is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Notion, OpenAI, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Notion, OpenAI, Gemini
Modules
5
Price
Free
Version
v1.0
Create a knowledge base chatbot with OpenAI and Notion for website embedding workflow diagram

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 your stored content. Who's it for This template is perfect for: Support teams who maintain their knowledge base in Notion Content creators and teams managing documentation in Notion databases Businesses looking to make their Notion workspace conversationally accessible Anyone who wants to turn their Notion content into an interactive AI assistant How it works The workflow combines OpenAI's language model with Notion's database capabilities to create a smart chatbot. When users ask questions, the AI agent automatically determines which Notion pages or database entries are relevant and uses that content to generate helpful responses. The system maintains conversation history for natural, contextual interactions. How to set up 1. Add your credentials: - Configure your Notion API integration in the Set & Get Notion Database node - Set up your OpenAI API credentials in the OpenAI Chat Model node 2. Configure your Notion connection: - Click the Set & Get Notion Database node - Select your Notion database or page containing your knowledge base content - The AI will automatically determine relevant pages - no need to specify individual page IDs 3. Customize the AI model: - Open the OpenAI Chat Model node - Choose your preferred model (GPT-4, GPT-3.5-turbo, etc.) - Adjust token limits if needed 4. Test the chatbot: - Click the Chat button to start a conversation - Ask questions related to your Notion content 5. Optional - Make it public: - Enable public access in the Chat Trigger node - Embed the provided code into your website Requirements - n8n instance (cloud or self-hosted) - Notion workspace with databases or pages you want to query - OpenAI API key with available credits - Notion API integration with proper permissions How to customize the workflow Change the AI Provider: You can replace the OpenAI Chat Model with other providers like Anthropic Claude, Google Gemini, or local models by swapping the language model node. Adjust Context Window: Modify the "Remember Chat History" node to increase or decrease how many previous messages the AI remembers (default is 10 interactions). Update System Instructions: Edit the Smart AI Agent's system message to change how the assistant behaves or add specific instructions for your use case. Connect Multiple Databases: Add additional Notion Database nodes to give the AI access to multiple databases or pages within your workspace. Add More Tools: Extend the AI agent with additional tools like web search, email sending, or integration with other services. Workflow Structure The Smart AI Agent orchestrates the conversation, deciding when to query Notion and how to use the retrieved content in responses. The memory buffer ensures natural conversation flow by maintaining context across interactions.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Generate Discord messages from ChatGPT completions and log them in Google Sheets

Generate Discord messages from OpenAI completions triggered by a Webhook and log them in Google Sheets. Streamline communication and record-keeping with this powerful integration.

Free

Build an All-Source Knowledge Assistant with Claude, RAG, Perplexity, and Drive

Detailed n8n Workflow Description Main Flow The workflow operates through a three-step process that handles incoming chat messages with intelligent tool orchestration: 1. Message Trigger: The When chat message received node triggers whenever a user message arrives and passes it directly to the Knowledge Agent for processing. 2. Agent Orchestration: The Knowledge Agent serves as the central orchestrator, registering a comprehensive toolkit of capabilities: - LLM Proc

Free

Build a knowledge base chatbot with Jotform, RAG Supabase, Together AI & Gemini

Youtube Video: Workflow Pre-requisites Step 1: Supabase Setup First, replace the keys in the "Save the embedding in DB" & "Search Embeddings" nodes with your new Supabase keys. After that, run the following code snippets in your Supabase SQL editor: 1. Create the table to store chunks and embeddings: `sql CREATE TABLE public."RAG" ( id bigserial PRIMARY KEY,

Free

Gmail customer support auto-responder with Ollama LLM and Pinecone RAG

Gmail Customer Support Auto-Responder with Ollama LLM and Pinecone RAG Built by Setidure Technologies Automate intelligent, friendly replies to customer queries using AI, vector search, and Gmail — all without human effort. --- Overview This is a ready-to-deploy smart customer support automation template for businesses that want to reply to emails instantly and accurately with the warmth of a human agent. It uses Gmail, LangChain agents, Ollama-hosted LLMs, and Pinecone vector search to craft

Free

Extract seed-funded startup data with RSS, GPT-4.1-MINI & BrightData to Excel

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. What It Does This workflow automatically discovers recently seed-funded startups by monitoring RSS feeds for funding announcements. It uses Bright Data to scrape full article content, then extracts structured company information using OpenAI (GPT). The data is exported to an Excel sheet on OneDrive, providing sales teams with a real-time list of qualified leads without any manual effort. How It W

Free

AI-powered product research & SEO content automation

AI-Powered Product Research & SEO Content Automation Skip the guesswork and manual effort — this n8n flow automates the entire process of researching your product's online competition and generating high-quality SEO content. Whether you're launching a new product or optimizing existing listings, this workflow leverages real-time web data and AI-driven copywriting to deliver: - 📈 Search-optimized metadata (Title, Description, Keywords) - 🛍️ Engaging product descriptions tailored fo

Free

Scrape & summarize Product Hunt feedback with BrowserAct & Gemini AI

Product Hunt Launch Monitor - Scraping & Summarization of Product Hunt Feedbacks This n8n template provides automated competitive intelligence by scraping and summarizing Product Hunt launch feedback with a specialized AI analyst. This workflow is essential for product managers, marketing teams, and founders who need to quickly gather and distill actionable insights from competitor launches to inform their own product strategy and positioning. --- Self-Hosted Only This Workflow uses a community

Free

Create AI videos with OpenAI scripts, Leonardo images & HeyGen avatars

Short Content Automation 🎬 (AI Video System with Bulk Gen, Avatar & Music Customization) Overview 🎯 The "Short Content" automation is a powerful, all-in-one solution designed to streamline the creation of short videos for social media, marketing, or personal projects. Leveraging cutting-edge AI tools and seamless workflows, this automation handles everything from scriptwriting to video assembly—saving time and effort while delivering professional results. <div <a href="h

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free