AutomationMart
Home/Browse/Document-based RAG chat assistant with Google Drive, Supabase & OpenAI
n8n

Document-based RAG chat assistant with Google Drive, Supabase & OpenAI

n8nn8n32 modulesv1.0
OpenAIGoogle Drive

What is this? This RAG workflow allows you to build a smart chat assistant that can answer user questions based on any collection of documents you provide. It automatically imports and processes files from Google Drive, stores their content in a searchable vector database, and retrieves the most relevant information to generate accurate, context-driven responses. The workflow manages chat sessions and keeps the document database current, making it adaptable for use cases like customer support, i

At a glance

Document-based RAG chat assistant with Google Drive, Supabase & OpenAI is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, Google Drive
Modules
32
Price
Free
Version
v1.0
Document-based RAG chat assistant with Google Drive, Supabase & OpenAI workflow diagram

About this workflow

What is this? This RAG workflow allows you to build a smart chat assistant that can answer user questions based on any collection of documents you provide. It automatically imports and processes files from Google Drive, stores their content in a searchable vector database, and retrieves the most relevant information to generate accurate, context-driven responses. The workflow manages chat sessions and keeps the document database current, making it adaptable for use cases like customer support, internal knowledge bases, or HR assistant etc. How it works 1. Chat RAG Agent - Uses OpenAI for responses, referencing only specific data from the vector store (data that is uploaded on google drive folder). - Maintains chat history in Postgres using a session key from the chat input. 2. Data Pipeline (File Ingestion) - Monitors Google Drive for new/updated files and automatically updates them in vector store - Downloads, extracts, and processes file content (PDFs, Google Docs). - Generates embeddings and stores them in the Supabase vector store for retrieval. 3. Vector Store Cleanup - Scheduled and manual routines to remove duplicate or outdated entries from the Supabase vector store. - Ensures only the latest and unique documents are available for retrieval. 4. File Management - Handles folder and file creation, upload, and metadata assignment in Google Drive. - Ensures files are organized and linked with their corresponding vector store entries. Getting Started - Create and connect all relevant credentials - Google Drive - Postgres - Supabase - OpenAI - Run the table creation nodes first to set up your database tables in Postgres - Upload your documents through Google Drive (or swap out for a different file storage solution) - The agent will process them automatically (chunking text, storing tabular data in Postgres) - Start asking questions that leverage the agent's multiple reasoning approaches Customization (optional) This template provides a solid foundation that you can extend by: - Tuning the system prompt for your specific use case - Adding document metadata like summaries - Implementing more advanced RAG techniques - Optimizing for larger knowledge bases - Note, if you're using a different nodes eg. file storage, vector store etc the integration may vary a little Prerequisites - Google account (google drive) - Supabase account - OpenAI APIs - Postgres account

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create new files in Google Drive from new media responses in VideoAsk

Every time a new response containing media (video or text) is received in VideoAsk, response media files will be instantly uploaded to a new folder in Google Drive. Even though the template configuration looks complicated, you don't have be afraid. It's quite simple to set up and only a few inputs are required from you. The template expects your VideoAsk to collect contact details of the submitter.

Free

Automate YouTube video SEO tagging with GPT and Slack notifications

AI-Powered YouTube Auto-Tagging Workflow (SEO Automation) Watch the demo video below: []( > Supercharge your YouTube SEO with this AI-powered workflow that automatically generates and applies smart, SEO friendly tags to your new videos every week. No more manual tagging, just better discoverability, improved reach, and consistent optimization. Plus, get instant Slack notifications so your team stays updated on every video’s SEO boost. Who’s it for - YouTube creators, channel admins, and marke

Free

AI privacy-minded router: PII detection for privacy, security, & compliance

Modern AI systems are powerful but pose privacy risks when handling sensitive data. Organizations need AI capabilities while ensuring: ✅ Sensitive data never leaves secure environments ✅ Compliance with regulations (GDPR, HIPAA, PCI, SOX) ✅ Real-time decision making about data sensitivity ✅ Comprehensive audit trails for regulatory review The Concept: Intelligent Data Classification + Smart Routing The goal of this concept is to build the foundations of the safe and compliant use of LLMs in Age

Free

💾 Backup automation for n8n workflows to Google Drive (daily or manual)

Backup Automation for n8n Workflows to Google Drive – No Risk, No Stress Hi! I’m Amanda, I build automation workflows for n8n and Make. This ready-to-use workflow is designed to automatically export and back up all your n8n workflows to a designated Google Drive folder, organized by date. It’s perfect for agencies, developers, and teams that want to protect their automation assets — without relying on manual exports or risking losing their work. --- ✅ What this workflow does - Fetches all your

Free

Manage Shopify store via conversational OpenAI assistant with SmartCommerce

Shopify MCP AI Agent Workflow for n8n Overview This n8n workflow showcases a full-featured AI-powered assistant connected to a Shopify store through a custom MCP (Multi-Channel Commerce Platform) Server toolkit. It empowers users to automate comprehensive Shopify store management by leveraging AI to interact conversationally with their data and operations. The workflow can create, fetch, search, update, and delete Shopify products and orders, all triggered via simple chat messages, making day-to

Free

Hacker News to video content

Hacker News to Video Content Overview This workflow converts trending articles from Hacker News into engaging video content. It integrates AI-based tools to analyze, summarize, and generate multimedia content, making it ideal for content creators, educators, and marketers. --- Features 1. Article Retrieval: - Pulls trending articles from Hacker News. - Limits the number of articles to process (configurable). 2. Content Analysis: - Uses OpenAI's GPT model to: - Summarize articles. - Assess t

Free

Generate & enrich LinkedIn leads with Apollo.io, LinkedIn API, Mail.so & GPT-3.5

Note: Now includes an Apify alternative for Rapid API (Some users can't create new accounts on Rapid API, so I have added an alternative for you. But immediately you are able to get access to Rapid API, please use that option, it returns more detailed data). Scroll to bottom for APify setup guide This n8n workflow automates LinkedIn lead generation, enrichment, and activity analysis using Apollo.io, RapidAPI, Google Sheets and Mail.so. Perfect for sales teams, f

Free

Enrich LinkedIn profiles with Apollo and display candidate pages in the browser

Description Automate LinkedIn profile enrichment and transform raw URLs into beautifully formatted candidate profile pages using n8n and the Apollo.io API 🔍. This workflow receives a LinkedIn URL via webhook, fetches enriched person and company data, normalizes the response, and generates a fully styled HTML profile card in real time. Perfect for recruiters, sales teams, and automation builders who want instant profile intelligence without manual research. Deliver structured contact insights, co

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free