Templates / 🤖 AI powered RAG chatbot for your docs + Google Drive + Gemini + Qdrant

🤖 AI powered RAG chatbot for your docs + Google Drive + Gemini + Qdrant

Needs changes

by Joseph LePage ✓ · 86,572 views · created 2025-02-23 · Internal Wiki, AI RAG

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

What this workflow does

This AI workflow has 35 nodes and runs when a chat message arrives (plus 2 other triggers). Along the way it connects Qdrant Vector Store, Google Gemini Chat Model, Google Drive and Embeddings OpenAI and 3 more.

How it runs

Trigger: When a chat message arrives (plus 2 other triggers).

  1. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Qdrant Vector Store); memory: Window Buffer Memory
  2. Google Folder ID (Edit Fields (Set)): sets 1 field: folder_id
  3. Update Chat History (Google Docs): update
  4. Respond to User (Edit Fields (Set)): sets 1 field: output
  5. Find File Ids in Google Drive Folder (Google Drive): work with file folder
  6. File Id List (Summarize): summarizes / groups the items
  7. Qdrant Collection Name (Edit Fields (Set)): sets 1 field: qdrant_collection_name
  8. Merge: merges the data from its input branches
  9. Merge: merges the data from its input branches
  10. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches

…plus 13 more steps. See the full node list below.

Services it uses

Qdrant Vector StoreGoogle Gemini Chat ModelGoogle DriveEmbeddings OpenAIOpenAI Chat ModelTelegramGoogle Docs

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • LangChain Code (legacy) in Delete Qdrant Points by File ID: no direct replacement.
  • AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
LangChain Code (legacy)
Delete Qdrant Points by File ID
No direct replacement
AI Agent v1 (old agent modes)
AI Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (23)

From the author

🤖 AI-Powered RAG Chatbot with Google Drive Integration This workflow creates a powerful RAG (Retrieval-Augmented Generation) chatbot that can process, store, and interact with documents from Google Drive using Qdrant vector storage and Google's Gemini AI.…

Excerpt from Joseph LePage'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.