Extract Google Drive Documents and Build an Intelligent Knowledge Base in Supabase
Workflow Description
This automation retrieves documents from Google Drive, splits content into manageable text chunks, generates AI-powered embeddings via OpenAI, and stores them in Supabase for precise retrieval through a chat interface.
How it works
- 1.Monitor Google Drive folders and automatically extract new documents
- 2.Split document content into coherent text segments using recursive character splitter
- 3.Generate intelligent embeddings for segments via OpenAI and store in Supabase Vector Store
- 4.Answer user queries through a chat interface based on the stored knowledge base
Use cases
- Create an intelligent assistant that answers employee questions based on company documents stored in Google Drive
- Automate extraction from contracts and reports, converting them into a searchable knowledge base
Requirements
- Google Drive account with documents to be processed
- OpenAI API key for generating embeddings and answering queries
- Supabase database configured to store intelligent embeddings
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