Company RAG and data queries

Google Drive company knowledge base RAG assistant workflow

Short answer

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

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

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

Workflow steps

  1. 01

    Drive document change detection

    Whenever a company file is uploaded or updated in the watched folder, the workflow downloads the fresh document.

  2. 02

    Recursive chunking and Gemini embeddings

    The document loader and character splitter divide text cleanly before Google Gemini generates vector embeddings.

  3. 03

    Pinecone vector indexing

    Vectors are written to Pinecone alongside file metadata so answers remain traceable to source documents.

  4. 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

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.

Frequently asked

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.

Mert Can Gundogdu
The founder takes the call, not a sales team
Next step

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

Chat on WhatsApp