Query Live Data with AI-Powered Retrieval and Generation
Workflow Description
Automation that continuously ingests live data from Supabase and Notion, chunks content intelligently, generates semantic embeddings via OpenAI, stores them in a vector database, and answers user queries with accurate, contextual responses using an LLM.
How it works
- 1.Automatically fetch and load live data from Supabase and Notion sources
- 2.Split documents into optimized chunks for semantic processing
- 3.Generate and store vector embeddings using OpenAI in a Vector Store
- 4.Process incoming queries and retrieve the most relevant data chunks
- 5.Generate contextual answers using retrieval-augmented generation chains
Use cases
- Answer employee questions against a continuously updated company knowledge base
- Build intelligent search that understands meaning rather than keyword matching
- Generate summaries and insights from live Notion documentation and database records
Requirements
- OpenAI API key for embeddings and chat completions
- Active connections to Supabase and Notion with read permissions
- Vector database backend (Supabase Vector Store) for storing 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 (34)
Embeddings OpenAI
OpenAI
Token Splitter
Text Splitter Token Splitter
Loop Over Items
Split In Batches
Question and Answer Chain
Chain Retrieval Qa
Vector Store Retriever
Retriever Vector Store
OpenAI Chat Model
OpenAI
When chat message received
Chat Trigger
Schedule Trigger
Schedule Trigger
Sticky Note
Sticky Note
Limit
Limit
Limit1
Limit
Delete old embeddings if exist
Supabase
Get page blocks
Notion
Default Data Loader
Document Default Data Loader
Sticky Note1
Sticky Note
Input Reference
No Op
Notion Trigger
Notion
Get updated pages
Notion
Sticky Note23
Sticky Note
Sticky Note24
Sticky Note
Sticky Note25
Sticky Note
Sticky Note26
Sticky Note
Sticky Note27
Sticky Note
Sticky Note28
Sticky Note
Supabase Vector Store1
Vector Store Supabase
Sticky Note30
Sticky Note
Sticky Note31
Sticky Note
Supabase Vector Store
Vector Store Supabase
Sticky Note32
Sticky Note
Sticky Note29
Sticky Note
Sticky Note33
Sticky Note
Sticky Note34
Sticky Note
Sticky Note35
Sticky Note
Concatenate to single string
Summarize