AI Agent To Chat With Files In Supabase Storage

Replace Storage name, database ID and credentials.

Workflow Structure (22 nodes)
100%
Langchain.chat Trigger
When chat message received
Langchain.lm Chat Open Ai
OpenAI Chat Model1
Langchain.embeddings Open Ai
Embeddings OpenAI2
Langchain.agent
AI Agent
Langchain.vector Store Supabase
Supabase Vector Store
Langchain.tool Vector Store
Vector Store Tool1
Langchain.lm Chat Open Ai
OpenAI Chat Model2
Manual Trigger
When clicking ‘Test workflow’
Supabase
Get All Files
Aggregate
Aggregate
Http Request
Get All files
Split In Batches
Loop Over Items
If
If
Http Request
Download
Switch
Switch
Extract From File
Extract Document PDF
Merge
Merge
Supabase
Create File record2
Langchain.embeddings Open Ai
Embeddings OpenAI
Langchain.vector Store Supabase
Insert into Supabase Vectorstore
Langchain.document Default Data Loader
Default Data Loader
Langchain.text Splitter Recursive Character Text Splitter
Recursive Character Text Splitter
Node Types:
http
default
logic
trigger
transform
Requires credentials

Prerequisites

Required Credentials (2)

OpenAI

Used by: Embeddings OpenAI, OpenAI Chat Model1 +2 more

Docs

Supabase

Used by: Get All files, Create File record2 +4 more

Docs

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~45 min
Score: 70/100
Conditional Logic
Loops
5 Integrations

When to Use This Workflow

AI-Powered Content Creation

Automate content generation, summarization, or analysis using AI capabilities.

Save hours of manual work while maintaining quality and consistency.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "meta": {
    "instanceId": "6a2a7715680b8313f7cb4676321c5baa46680adfb913072f089f2766f42e43bd"
  },
  "nodes": [
    {
      "id": "f577f6bd-b1a4-48ec-9329-7bccc3fc1463",
      "name": "Get All files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        -100
      ],
      "parameters": {
        "url": "=https://yqtvdcvjboenlblgcivl.supabase.co/storage/v1/object/list/private",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n \"prefix\": \"\",\n \"limit\": 100,\n \"offset\": 0,\n \"sortBy\": {\n \"column\": \"name\",\n \"order\": \"asc\"\n }\n}",
        "sendBody": true,
        "specifyBody": "json",
...

Workflow Details

Nodes
33
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)

Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...

Http-request
Vectorstorepinecone
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
17 nodesEvent
Curated

Advanced AI Demo (Presented at AI Developers #14 meetup)

![h](https://i.postimg.cc/9XLvL5dL/slide-sf-talk.pngfull-width)

Slack
Textsplitterrecursivecharactertextsplitter
Embeddingsopenai
Documentdefaultdataloader
39 nodesEvent
Curated

OpenAI Personal Shopper with RAG and WooCommerce

Replace the URL and Collection name with your own

Chat
Memorybufferwindow
Toolcalculator
Lmchatopenai
25 nodesEvent
Curated

BambooHR AI-Powered Company Policies and Benefits Chatbot

STEP 1: Retrieve company policies and load them into a vector store

Documentdefaultdataloader
Embeddingsopenai
Textsplitterrecursivecharactertextsplitter
Memorybufferwindow
50 nodesEvent
Curated

Build a Tax Code Assistant with Qdrant, Mistral.ai and OpenAI

Step 1. Download the Tax Code PDF [Read more about handling Zip Files](https://docs.n8n.io/integrations/builtin/core-nod...

Embeddingsmistralcloud
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
Http-request
38 nodesEvent
Curated

Building RAG Chatbot for Movie Recommendations with Qdrant and Open AI

Tool, calling Qdrant's recommendation API based on user's request, transformed by AI agent

Github
Embeddingsopenai
Documentdefaultdataloader
Textsplittertokensplitter
27 nodesEvent
Curated