Templates / Document RAG & chat agent: Google Drive to Qdrant with Mistral OCR

Document RAG & chat agent: Google Drive to Qdrant with Mistral OCR

Needs changes

by DIGITAL BIZ TECH ✓ · 2,005 views · created 2025-10-24 · Internal Wiki, AI RAG

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (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 25 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Embeddings OpenAI, OpenAI Chat Model, HTTP Request and Qdrant Vector Store and 2 more. It also calls api.mistral.ai and api.tavily.com over HTTP.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. ai chat agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Web Search, Qdrant Vector Store); memory: Simple Memory
  2. Google Drive: work with file folder
  3. Loop Over each file in gdrive folder (Loop Over Items (Split in Batches)): loops over the items in batches
  4. add metadata (Edit Fields (Set)): sets 5 fields: file_id, file_type, file_title…
  5. Google Drive: download
  6. Mistral Upload (HTTP Request): calls api.mistral.ai (POST)
  7. Mistral Signed URL (HTTP Request): calls an HTTP API
  8. Mistral DOC OCR (HTTP Request): calls api.mistral.ai (POST)
  9. If: checks a condition and branches into true / false
  10. based file name it assign differ metadata (Information Extractor): extracts structured fields from text with AI, with model: Mistral Cloud Chat Model

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

Services it uses

Embeddings OpenAIOpenAI Chat ModelHTTP RequestQdrant Vector StoreGoogle DriveMistral Cloud Chat Model

HTTP calls to: api.mistral.ai, api.tavily.com

Before you upgrade to n8n 3.0

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

  • HTTP Request Tool (legacy) in Web Search : replace with HTTP Request node connected to the AI Agent's Tool input.
  • AI Agent v1 (old agent modes) in ai chat 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
HTTP Request Tool (legacy)
Web Search
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
ai chat 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 (18)

From the author

Knowledge RAG & AI Chat Agent: Google Drive to Qdrant Description This workflow transforms a Google Drive folder into an intelligent, searchable knowledge base and provides a chat agent to query it. It’s composed of two distinct flows: - An ingestion pipeline…

Excerpt from DIGITAL BIZ TECH'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.