Skip to main content

Chat with your business knowledge base using Google Gemini and Qdrant

Workflow preview

Workflow preview
100%
Chat with your business knowledge base using Google Gemini and Qdrant preview
Open on n8n.io

1. Workflow Overview

This comprehensive Retrieval Augmented Generation (RAG) system enables businesses to effectively manage and query their knowledge base. Use...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.embeddingsgooglegemini, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-qdrant.qdrant, @n8n/n8n-nodes-langchain.chattrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nguyễn Thiệu Toàn (Jay Nguyen).

Original n8n.io source

1.1 Workflow description

Title
Chat with your business knowledge base using Google Gemini and Qdrant
Workflow name
Chat with your business knowledge base using Google Gemini and Qdrant

This comprehensive Retrieval-Augmented Generation (RAG) system enables businesses to effectively manage and query their knowledge base. Users can seamlessly upload documents via a web form, automatically segment and chunk the content, generate high-quality embeddings with Google Gemini, and store them securely within a Qdrant vector database. Outdated documentation can be instantly pruned by category to ensure absolute data reliability, while an advanced AI Agent powers an interactive chatbot that responds to user inquiries utilizing only your verified data infrastructure.

If your enterprise requires an agile, data-isolated customer support or internal operations assistant without the risk of AI hallucinations, this workflow is the definitive blueprint.

How it works

  • Data Upload Phase: The Upload Document form trigger accepts multi-format files and assigns a descriptive metadata category. The Recursive Character Text Splitter breaks down raw content into logical chunks with configured token overlaps, passes them to Embeddings Google Gemini for vector calculations, and commits them to the Qdrant database via the Insert to Vector Store pipeline.
  • Vector Management Phase: The Delete Document form trigger captures requests to update specific corporate data groups. The Delete from Vector Store node uses specialized filter parameters (metadata.fileGroup) to purge target documentation segments synchronously, avoiding database pollution or overlapping information before executing an updated re-upload.
  • Context Generation Phase: When a user initiates a chat message through the Chat Trigger, the Set Context node immediately instantiates application constants including brand definitions, bot naming variables, and fallback support channels.
  • AI Execution & Response Phase: The AI Agent receives the consolidated session payload and cross-references the user request directly against the Knowledge Base tool. Qdrant evaluates vector similarities, retrieves the top 5 highly relevant text chunks, and passes them to the Google Gemini Chat Model to render a hyper-focused response based solely on the injected data, while managing context history through Simple Memory.

How to use

  1. Install Prerequisites: Open your n8n workspace settings, navigate to Community Nodes, and add n8n-nodes-qdrant to support raw REST API point manipulations.
  2. Assign Credentials: Connect your Google Gemini (googlePalmApi) credentials to all embedding and language model sub-nodes, and authenticate your Qdrant API / Qdrant REST API profiles within the vector storage instances.
  3. Configure Environment Context: Open the Set Context configuration node and update key variables (bot_name, company_name, support_email) to inherit your business properties.
  4. Define Database Collections: Input your exact target Qdrant collection name within all 3 operational Qdrant infrastructure nodes, ensuring it is indexed properly by matching fields (e.g., metadata.fileGroup under a keyword schema).
  5. Set Categories & Activate: Customize the drop-down menu parameters inside the form trigger nodes to map exactly to your organizational document categories, toggle the workflow to active, and begin executing secure enterprise text analytics.

Requirements

  • n8n Version: Built and validated on production-grade environments running n8n 2.9.4+. (Upgrading your instances regularly ensures complete engine and tool schema compliance).
  • Community Plugin: n8n-nodes-qdrant installed and validated on your n8n core deployment instance.
  • Vector DB Instance: A cloud-hosted or self-hosted active Qdrant cluster instance with open REST/gRPC endpoints.
  • AI Access: Valid enterprise api access keys for the Google Gemini developer platform ecosystem.

Customizing this workflow

  • Interchange AI Models: Easily swap out the Google Gemini Chat Model and embedding sub-nodes to route traffic to alternative large language models such as OpenAI (GPT-4o), Anthropic Claude, or self-hosted Ollama backends.
  • Scale Vector Databases: Replace the Qdrant connection infrastructure nodes with native n8n vectors such as Pinecone, Supabase pgvector, Milvus, or Weaviate to suit existing technical stacks.
  • Production Handoff UI: Detach the default testing Chat Trigger layout interface and link the input node matrix directly to production chat webhooks including Telegram, Slack, WhatsApp, or standard commercial web embed interfaces.

About the Author

Created by: Nguyễn Thiệu Toàn (Jay Nguyen)

Email: [email protected]

Website: nguyenthieutoan.com

Company: GenStaff (genstaff.net)

Socials (Facebook / X / LinkedIn): @nguyenthieutoan

Official Template Page: n8n.io/creators/nguyenthieutoan

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 - Main Overview

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

Block 2 - Section 1

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

Block 3 - Section 2

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

Block 4 - Section 3

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

Block 5 - Warning Set Context

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

Block 6 - Author Message

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

Block 7 - Upload Document

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.5

Block 8 - Insert to Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1.3

Block 9 - Embeddings Google Gemini

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

Block 10 - Default Data Loader

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

Block 11 - Recursive Character Text Splitter

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

Block 12 - Delete Document

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.5

Block 13 - Delete from Vector Store

Type / Role
n8n-nodes-qdrant.qdrant - qdrant
Config choices
Version 1

Block 14 - When chat message received

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

Block 15 - Set Context

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

Block 16 - AI Agent

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

Block 17 - Google Gemini Chat Model

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

Block 18 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.4

Block 19 - Knowledge Base

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1.3

Block 20 - Embeddings Google Gemini1

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

Block 21 - Create fileGroup Index

Type / Role
n8n-nodes-qdrant.qdrant - qdrant
Config choices
Version 1

3. Summary Table

Workflow Chat with your business knowledge base using Google Gemini and Qdrant
Complexity advanced
Nodes 21
Categories Support Chatbot, AI RAG
Author Nguyễn Thiệu Toàn (Jay Nguyen)
Published 17 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15778/15778.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 Chat with your business knowledge base using Google Gemini and Qdrant do?

This comprehensive Retrieval Augmented Generation (RAG) system enables businesses to effectively manage and query their knowledge base. Use...

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 Support Chatbot, AI RAG use case.