Extract Google Drive Documents and Build a Searchable Knowledge Base in Supabase
Workflow Description
Automates loading files from Google Drive, splitting them into processable text chunks, generating vector embeddings with OpenAI, and storing them in Supabase to create an intelligent search engine queryable through a chat interface.
How it works
- 1.Automatically load documents from Google Drive
- 2.Split text into manageable chunks
- 3.Generate vector embeddings using OpenAI
- 4.Store data in Supabase database
- 5.Respond to user queries based on loaded documents
Use cases
- Build an intelligent knowledge system that answers questions about company documents
- Convert a Google Drive document library into a searchable knowledge base
Requirements
- Google Drive account containing documents to process
- API keys for OpenAI and Supabase
- Direct connection between n8n and Google, OpenAI, and Supabase services
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (21)
Google Drive
Google Drive
Default Data Loader
Document Default Data Loader
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Question and Answer Chain
Chain Retrieval Qa
OpenAI Chat Model
OpenAI
Vector Store Retriever
Retriever Vector Store
Recursive Character Text Splitter1
Text Splitter Recursive Character Text Splitter
Customize Response
Set
When chat message received
Chat Trigger
Retrieve by Query
Vector Store Supabase
Embeddings OpenAI Retrieval
OpenAI
Embeddings OpenAI Insertion
OpenAI
Placeholder (File/Content to Upsert)
Set
Embeddings OpenAI Upserting
OpenAI
Insert Documents
Vector Store Supabase
Retrieve Rows from Table
Supabase
Sticky Note4
Sticky Note
Update Documents
Vector Store Supabase