Skip to content
FlowHubFluxonLab
A
AI Automationfree

AI Agent To Chat With Files In Supabase Storage

by Mark Shcherbakovadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentDDefault Data LoaderEmbeddings OpenAIEmbeddings OpenAIHTTP RequestHTTP RequestOpenAI Chat ModelOpenAI Chat ModelRecursive Character Text SplitterRecursive Character Text SplitterSupabaseSupabaseSupabase Vector StoreSupabase Vector StoreVector Store Question Answer ToolVector Store Question Answer Tool
Share Post Share
HRGet All filesDDDefault Data LoaderDefault Data Lo…TSRecursive Character Text SplitterRecursive Chara…EFExtract Document PDFExtract Documen…Embeddings OpenAIEmbeddings Open…Create File record2Create File rec…IfIfGet All FilesHRDownloadSILoop Over ItemsMaWhen clicking ‘Test workflow’When clicking ‘…AgAggregateChWhen chat message receivedWhen chat messa…OpenAI Chat Model1OpenAI Chat Mod…Embeddings OpenAI2Embeddings Open…OpenAI Chat Model2OpenAI Chat Mod…TVVector Store Tool1Vector Store To…SwSwitchVSInsert into Supabase VectorstoreInsert into Sup…MeMergeAgAI AgentVSSupabase Vector StoreSupabase Vector…1234567891011121314151617
1/5
FLOWS
STEPS · 17
Run manually by an operator

Video Guide I prepared a detailed guide explaining how to set up and implement this scenario, enabling you to chat with your documents stored in Supabase using n8n. Youtube Link Who is this for? This workflow is ideal for researchers, analysts, business owners, or anyone managing a large collection of documents. It's particularly beneficial for those who need quick contextual information retrieval from text-heavy files stored in Supabase, without needing additional services like Google Drive. What problem does this workflow solve? Manually retrieving and analyzing specific information from large document repositories is time-consuming and inefficient. This workflow automates the process by vectorizing documents and enabling AI-powered interactions, making it easy to query and retrieve context-based information from uploaded files. What this workflow does The workflow integrates Supabase with an AI-powered chatbot to process, store, and query text and PDF files. The steps include: Fetching and comparing files to avoid duplicate processing. Handling file downloads and extracting content based on the file type.

Tags

n8nreference-onlyagentdocument-default-data-loaderembeddings-open-ailm-chat-open-aisupabasetext-splitter-recursive-character-text-splittertool-vector-storevector-store-supabase
Connects
AAI AgentDDefault Data LoaderembeddingsopenaiEmbeddings OpenAIWHTTP RequestopenaichatmodelOpenAI Chat ModelrecursivecharactertextsplitterRecursive Character Text Splitter
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes22
AddedDec 10, 2024

Related workflows

See all AI Automation
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
binaryinputloaderembeddingsopenaigoogledriveopenaichatmodel
free

Ask questions about a PDF using AI

The workflow first populates a Pinecone index with vectors from a Bitcoin whitepaper. Then, it waits for a manual chat message. When received, the chat message is turned into a vector and compared to the vectors in Pinecone. The most similar vectors are retrieved and passed to OpenAI for generating a chat response. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by David Roberts