AutomationMart
Home/Browse/Index Google Drive files into a Supabase vector store with OpenAI embeddings
n8n

Index Google Drive files into a Supabase vector store with OpenAI embeddings

n8nn8n26 modulesv1.0
OpenAIGoogle Drive

Full walkthrough video: Author: Cole Medin Who it's for This workflow is for developers, data engineers, and knowledge management teams who need to automatically ingest documents stored in Google Drive into a searchable vector database — supporting RAG (retrieval-augmented generation) pipelines or semantic search applications. How it works 1. One-time setup: A chat trigger runs SQL queries to create the required Postgres tables (documents, documentmetadata, documentrows) and the vector similari

At a glance

Index Google Drive files into a Supabase vector store with OpenAI embeddings 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
26
Price
Free
Version
v1.0
Index Google Drive files into a Supabase vector store with OpenAI embeddings workflow diagram

About this workflow

Full walkthrough video: Author: Cole Medin Who it's for This workflow is for developers, data engineers, and knowledge management teams who need to automatically ingest documents stored in Google Drive into a searchable vector database — supporting RAG (retrieval-augmented generation) pipelines or semantic search applications. How it works 1. One-time setup: A chat trigger runs SQL queries to create the required Postgres tables (documents, documentmetadata, documentrows) and the vector similarity match function in Supabase/Postgres. 2. Trigger: Two Google Drive triggers detect newly created or updated files in a watched folder and pass them into a batch loop. 3. Clean old data: For each file, stale document rows and vector embeddings are deleted from Supabase before re-processing. 4. Metadata upsert & download: Document metadata (ID, title, URL) is upserted into Postgres, then the file binary is downloaded from Google Drive. 5. Route by file type: A Switch node directs each file to the correct extractor — PDF, Word/Office document, Excel spreadsheet, or CSV. 6. Tabular data storage: Excel and CSV rows are inserted as raw JSONB records into Postgres and aggregated into a summary. 7. Embedding & storage: All extracted text (documents, PDFs, tabular summaries) is chunked with a character text splitter, embedded via OpenAI, and inserted into the Supabase vector store. How to set up - [ ] Connect Google Drive OAuth2 credentials to the two trigger nodes and the download node - [ ] Add Supabase credentials to the delete and vector store insert nodes - [ ] Add Postgres credentials to all Postgres nodes (table creation, metadata upsert, schema update, row insert) - [ ] Set your OpenAI API key in the OpenAI Embeddings node - [ ] Run the setup flow once via the chat trigger to create all database tables and the vector match function - [ ] Set the Google Drive folder ID to watch in both trigger nodes - [ ] Tune the Character Text Splitter chunk size and overlap to fit your document sizes Requirements - Google Drive account (OAuth2) - Supabase project with pgvector extension enabled - Postgres database (can be the Supabase Postgres instance) - OpenAI API key How to customize - Add file types: Extend the Switch node with additional branches (e.g., PowerPoint, plain text) and pair each with an appropriate extractor. - Swap the embedding model: Replace text-embedding-3-small with a larger OpenAI model or an alternative provider (e.g., Cohere, Mistral) in the embeddings node. - Connect a RAG chatbot: Pipe the Supabase vector store into an AI Agent or chain node to build a document Q&A assistant on top of the ingested files.

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

Auto-follow-up for canceled Calendly meetings with GPT-4, Loom & Asana

This n8n workflow automatically detects canceled meetings from Calendly, uses GPT to write a friendly follow-up message, and sends it via Gmail, complete with a personalized Loom video link. It also creates an Asana task to remind your team to follow up manually if needed. Ideal for B2B consultants, agencies, and sales teams who want to salvage missed opportunities and stay top-of-mind with prospects after no-shows. ⸻ Who it’s for Sales teams, consultants, and agencies who rely on sche

Free

Manage Google Calendar via WhatsApp with GPT-4 virtual assistant

How it works • Allows users to manage their Google Calendar via WhatsApp using natural language • Handles event creation, updates, deletions, availability checks, and agenda overviews • AI agent interprets the user’s message and triggers the appropriate calendar action • Responses are sent back to the user via WhatsApp, with confirmation or schedule info Set up steps • Set up a WhatsApp Business Cloud account and configure your webhook • Connect your Google Calendar using n8n credentials • Depl

Free

Create Facebook ads copy with Google Sheets and ChatGPT: BAB formula

Master Facebook Ads copywriting using the Before After Bridge (BAB) formula with Google Sheets and ChatGPT. Simplify your content creation process and boost your ad campaigns' success.

Free

Turn your portfolio into an AI assistant with OpenAI, Claude, Pinecone and Gmail

Deploy a personal AI assistant that answers recruiter questions about your skills and projects, then automatically emails your CV as a PDF attachment when requested. Upload your portfolio documents (resume, project writeups, case studies) to a Google Drive folder — the workflow chunks them into 600-character segments, embeds them with OpenAI, and stores them in Pinecone. A webhook-powered AI Agent (Claude Sonnet 4.5) retrieves the most relevant evidence using Pinecone + Cohere reranking, detects

Free

✨🤖Automate Multi-Platform Social Media Content Creation with AI

Automate Multi-Platform Social Media Content Creation with AI Who is this for? Social Media Managers and Digital Marketers seeking to streamline content production across 7+ platforms (X/Twitter, Instagram, LinkedIn, Facebook, TikTok, Threads, YouTube Shorts) using AI-powered automation. What problem does this solve? Creating platform-optimized content at scale while maintaining brand consistency across multiple channels, reducing manual work by 80% through AI generation an

Free

Extract specific website data with form input, Gemini 2.5 flash and Gmail

What this workflow does This workflow creates an automated web scraper that accepts form submissions, extracts specific data from any website using AI, and emails the results back to you. Step by step: 1. Web Scraper Form Submission provides a web form interface where users submit a URL and specify what data to extract 2. Get HTML from Source URL fetches the complete HTML content from the provided website 3. HTML Extractor processes the raw HTML and extracts the body content

Free

Build enterprise RAG system with Google Gemini file search & retell AI voice

Enterprise RAG System with Google Gemini File Search + Retell AI Voice Agent Build a complete enterprise-grade RAG pipeline using Google Gemini’s brand-new File Search API, combined with a powerful Retell AI voice agent (JARVIS) as the conversational front end. This workflow is designed for AI automation agencies, SMBs, enterprise teams, and internal AI copilots. --- 📌 Who Is This For? - Enterprise teams building internal search copilots - AI automation agencies delivering RAG products to clie

Free

Auto-generate Facebook posts from video insights using Dumpling AI + GPT-4o

What this workflow does This workflow automatically turns new technical video uploads into short, engaging Facebook post drafts—complete with a suggested image—and saves the results to Google Sheets for quick review or publishing. It’s designed to help you repurpose tutorial or demo videos into ready-to-use social content without any manual writing or design effort. What problem is this workflow solving? Manually writing Facebook posts for every new tutorial or product video takes time, espe

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