
Google Drive to Supabase Knowledge Base Automation
Automatically syncs documents from a Google Drive folder to a Supabase knowledge base. New or updated files are processed and added to the database, keeping your content current without manual updates.
Available Resources
π Google Drive to Supabase Knowledge Base Automation
Turn your documents into a searchable, AI-ready knowledge base β effortlessly.
Build a powerful backend for AI assistants, document Q&A bots, or internal tools using this ready-to-deploy n8n automation. It connects Google Drive to Supabase and brings structure, scalability, and intelligence to your docs.
π§ What This Automation Does
This workflow bridges your cloud storage with vector search technology to power modern AI tools:
- π Ingests documents from your Google Drive
- π§ Processes content with OpenAI or Gemini
- π¦ Stores data in a Supabase vector database
- π Automatically updates when documents change β no duplication
- π Handles new documents as theyβre added
- π Modular setup β easy to expand for other file types (Word, HTML, etc.)
π οΈ Setup Instructions
Hereβs how to get everything connected and running:
1οΈβ£ Connect Google Drive to n8n
To allow n8n to read your files:
- π Set up a Google OAuth app
- π Connect it to your n8n instance
- ποΈ Use the Google Drive node to access documents
πΊ Video Guide: How to connect Google Drive to n8n (5 min)
π Docs: Google Drive Node β n8n
2οΈβ£ Set Up Supabase + pgvector
Supabase stores your documents in vector format, enabling semantic search:
- π Create a free Supabase account
- βοΈ Set up a project
- π§© Enable the pgvector extension
π Docs:
- Getting Started with Supabase
- How to Enable pgvector
3οΈβ£ Add Your OpenAI (or Gemini) API Key
An LLM is used to convert text into embeddings:
- π οΈ Create an OpenAI API key (or use Gemini)
- π Add the key to n8nβs credentials section under βOpenAIβ
πΊ Video: Connect OpenAI with n8n
π Docs: OpenAI Credentials in n8n
4οΈβ£ Import and Run the Workflow
Everythingβs pre-built and ready to deploy:
- π₯ Load the provided n8n workflow
- π Connect all credentials (Drive, Supabase, OpenAI)
- βοΈ Choose mode: , , or
- β Click Test Workflow β you're done!
π‘ Use Cases
This automation is ideal for projects that need scalable, AI-enhanced document handling:
- π€ AI Assistants with memory from internal docs
- π¬ Chatbots with document-aware replies
- ποΈ Voice interfaces that pull context dynamically
- π οΈ Customer support tools with embedded knowledge
β Key Benefits
- π§© No-code friendly β powered by n8n
- β‘ Fast setup β get going in minutes
- π Searchable knowledge β vector-powered for accuracy
- π Always up-to-date β syncs as docs change
- π LLM-compatible β works with OpenAI, Gemini & more
- π§± Fully modular β extend to more formats and platforms