Google Drive company knowledge base RAG assistant workflow
This n8n workflow watches company Google Drive folders for new or updated handbooks, policies and operational guides. Files are split recursively, embedded with Google Gemini and stored inside Pinecone. When staff ask a question through chat, the AI assistant queries the vector store and replies strictly from current company documents.
- Catalogue ID
- #1141
- Functional nodes
- 15
- Connections
- 13
- Trigger
- googleDriveTrigger, chatTrigger
- AI layer
- AI-assisted
Business problem solved
Internal procedures, technical guides and policy sheets sit scattered across dozens of Drive folders. Staff lose time hunting for the latest version, and answering clients from an outdated document creates costly mistakes.
Trigger
Two Google Drive triggers watch created and updated files, while a chat trigger handles team questions.
Connected systems
- Google Drive
- Pinecone vector store
- Google Gemini
- Internal chat interface
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow steps
- 01
Drive document change detection
Whenever a company file is uploaded or updated in the watched folder, the workflow downloads the fresh document.
- 02
Recursive chunking and Gemini embeddings
The document loader and character splitter divide text cleanly before Google Gemini generates vector embeddings.
- 03
Pinecone vector indexing
Vectors are written to Pinecone alongside file metadata so answers remain traceable to source documents.
- 04
Grounded chat retrieval
Staff questions query the Pinecone vector tool with buffered chat memory to deliver concise, source-backed answers.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its 15 functional nodes and 13 connections.
Production layer added by ALTAI
During live deployment, ALTAI adds stale-vector deletion on file updates, department-level access filters, mandatory source citations and an indexing error queue.
Google Drive company docs RAG workflow Frequently asked questions
In production, our hardening step deletes prior vectors tied to that file ID before indexing the new version so answers reflect only the latest document.
Yes. Folder and department metadata filters are enforced during retrieval so restricted documents stay visible only to authorised staff.
The assistant declines to invent an answer, states that no source document covers the topic and logs the gap for your team.
Yes. The same ingestion and retrieval pipeline can target self-hosted PostgreSQL pgvector or Qdrant.
Related n8n workflows
Notion to Supabase live RAG sync workflow
Deletes old vectors whenever a Notion page changes, re-indexes fresh chunks into Supabase pgvector and serves up-to-date retrieval Q&A.
Natural language to SQL for PostgreSQL workflow
Caches your PostgreSQL schema locally, generates SQL through a local Ollama model and executes valid queries with built-in error protection.
Google Drive PDF and image to CSV workflow
Watches a Google Drive folder for PDFs and scanned images, routes by file type, extracts fields with Gemini and exports clean CSV files.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms