Chat with Internal Documents: Ollama RAG + Supabase + Google Drive

RAG-powered AI agent for chatting with internal docs from Google Drive. Uses Ollama for embeddings/generation and Supabase Vector DB for semantic search with memory.

n8n
Chat with Internal Documents: Ollama RAG + Supabase + Google Drive

This n8n workflow creates a conversational AI interface to query internal documents using Retrieval-Augmented Generation (RAG). It automatically ingests files from a Google Drive folder, supporting PDFs, Excel, Google Docs, and text files. Content is extracted, preprocessed, split into chunks, embedded via Ollama, and stored in Supabase Vector DB for efficient semantic retrieval. Old embeddings are purged on updates for accuracy.

The chat agent, triggered by webhook or interface, uses Ollama LLM to process user queries. It calls a custom tool to search the vector store, fetching relevant document chunks. Responses are grounded in retrieved context, ensuring accuracy within provided texts. PostgreSQL stores conversation memory for context-aware continuity, enabling multi-turn chats.

Benefits include hands-free document search, real-time updates, and reduced manual effort. Ideal for marketing teams handling business directories, sales docs, or research files—quickly answer queries like 'What are our key partners?' without sifting through folders. Scalable for knowledge bases, support bots, or internal Q&A, saving hours weekly.

$24.99
Last updated October 17, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Marketing workflows

More from Ivan Volkov

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.