AI Agents

Connect Google Drive with Supabase

21 nodes 218 126 Automatic trigger
Download

Workflow Description

Advanced template integrating Google Drive documents with AI-powered Supabase database. Automatically loads files, splits them into manageable chunks, creates vector embeddings via OpenAI, and stores them in Supabase for intelligent querying and data-backed answers.

How it works

  1. 1.Activate trigger upon receiving a chat query from the user interface
  2. 2.Fetch documents from the specified Google Drive folder
  3. 3.Load and analyze document content using default data loader
  4. 4.Split text into balanced chunks using recursive character splitter
  5. 5.Convert chunks into numerical embeddings via OpenAI API
  6. 6.Store vectors and document metadata in Supabase for fast retrieval

Use cases

  • Build an automated Q&A system based on company documents stored in Drive
  • Create an intelligent search engine delivering precise results from large text databases
  • Automate processing and semantic classification of legal or technical documents
  • Empower customer support with self-service powered by updated company documentation

Requirements

  • Active Google Cloud account with Drive API enabled and folder access permissions
  • Supabase account with valid API key and prepared database
  • Valid OpenAI API key for embedding generation and intelligent responses
  • n8n workflow with internet connection and sufficient permissions for third-party integrations

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Google Drive Document Default Data Loader LLM Chain OpenAI Vector Store Text Splitter Chat Trigger Supabase

Details

Trigger Automatic trigger
Nodes 21
Apps 8
Views 218
Downloads 126

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (21)

/

Google Drive

Google Drive

#1

Default Data Loader

Document Default Data Loader

#2

Sticky Note

Sticky Note

#3

Sticky Note1

Sticky Note

#4

Sticky Note2

Sticky Note

#5

Sticky Note3

Sticky Note

#6

Question and Answer Chain

Chain Retrieval Qa

#7

OpenAI Chat Model

OpenAI

#8

Vector Store Retriever

Retriever Vector Store

#9

Recursive Character Text Splitter1

Text Splitter Recursive Character Text Splitter

#10

Customize Response

Set

#11

When chat message received

Chat Trigger

#12

Retrieve by Query

Vector Store Supabase

#13

Embeddings OpenAI Retrieval

OpenAI

#14

Embeddings OpenAI Insertion

OpenAI

#15

Placeholder (File/Content to Upsert)

Set

#16

Embeddings OpenAI Upserting

OpenAI

#17

Insert Documents

Vector Store Supabase

#18

Retrieve Rows from Table

Supabase

#19

Sticky Note4

Sticky Note

#20

Update Documents

Vector Store Supabase

#21