AutomationMart
Home/Browse/AI agent to chat with files in Supabase Storage
n8n

AI agent to chat with files in Supabase Storage

n8nn8n22 modulesv1.0
OpenAIGoogle Drive

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 anyo

At a glance

AI agent to chat with files in Supabase Storage is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, Google Drive
Modules
22
Price
Free
Version
v1.0
AI agent to chat with files in Supabase Storage workflow diagram

About this workflow

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. - Converting documents into vectorized data for contextual information retrieval. - Storing and querying vectorized data from a Supabase vector store. 1. File Extraction and Processing: Automates handling of multiple file formats (e.g., PDFs, text files), and extracts document content. 2. Vectorized Embeddings Creation: Generates embeddings for processed data to enable AI-driven interactions. 3. Dynamic Data Querying: Allows users to query their document repository conversationally using a chatbot. Setup N8N Workflow 1. Fetch File List from Supabase: - Use Supabase to retrieve the stored file list from a specified bucket. - Add logic to manage empty folder placeholders returned by Supabase, avoiding incorrect processing. 2. Compare and Filter Files: - Aggregate the files retrieved from storage and compare them to the existing list in the Supabase files table. - Exclude duplicates and skip placeholder files to ensure only unprocessed files are handled. 3. Handle File Downloads: - Download new files using detailed storage configurations for public/private access. - Adjust the storage settings and GET requests to match your Supabase setup. 4. File Type Processing: - Use a Switch node to target specific file types (e.g., PDFs or text files). - Employ relevant tools to process the content: - For PDFs, extract embedded content. - For text files, directly process the text data. 5. Content Chunking: - Break large text data into smaller chunks using the Text Splitter node. - Define chunk size (default: 500 tokens) and overlap to retain necessary context across chunks. 6. Vector Embedding Creation: - Generate vectorized embeddings for the processed content using OpenAI's embedding tools. - Ensure metadata, such as file ID, is included for easy data retrieval. 7. Store Vectorized Data: - Save the vectorized information into a dedicated Supabase vector store. - Use the default schema and table provided by Supabase for seamless setup. 8. AI Chatbot Integration: - Add a chatbot node to handle user input and retrieve relevant document chunks. - Use metadata like file ID for targeted queries, especially when multiple documents are involved. Testing - Upload sample files to your Supabase bucket. - Verify if files are processed and stored successfully in the vector store. - Ask simple conversational questions about your documents using the chatbot (e.g., "What does Chapter 1 say about the Roman Empire?"). - Test for accuracy and contextual relevance of retrieved results.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Reconcile expenses and optimize tax deductions with OpenAI GPT‑4.1‑mini and Gmail

How It Works This workflow streamlines financial operations for accounting teams, finance departments, and tax professionals managing business expenses. It addresses the challenge of reconciling expenses with revenue data, accurately categorizing deductions, and ensuring tax compliance across complex transactions. The system triggers on schedule to fetch expense receipts and revenue data from financial systems simultaneously. An AI-powered receipt matching agent uses OpenAI models to intelligent

Free

Create Viral 😎 AI celebrity selfies 📸 with Nano Banana Pro & upload to Instagram

This workflow automates the creation of AI-generated viral selfie images with celebrities using Nano Banana Pro Edit via RunPod, generates engaging social media captions, and publishes the content to Instagram via Postiz. It starts with a form submission where the user provides an image URL, a custom prompt, and an aspect ratio. | START | RESULT | |------|--------| | ![image](

Free

Create a speech-to-text API with OpenAI GPT4o-mini transcribe

Description This template provides a simple and powerful backend for adding speech-to-text capabilities to any application. It creates a dedicated webhook that receives an audio file, transcribes it using OpenAI's gpt-4o-mini model, and returns the clean text. To help you get started immediately, you'll find a complete, ready-to-use HTML code example right inside the workflow in a sticky note. This code creates a functional recording interface you can use for testing or as a foundation for your

Free

Convert new files in Google Drive to PDF using Plumsail Documents

Automatically convert new files in Google Drive to PDF using Plumsail Documents. The result files will be saved back to the cloud storage. Find the supported file formats [here](https://plumsail.com/docs/documents/v1.x/scenario/actions/make-convert-to-pdf.html).

Free

🧠 Build AI agents with Think-Plan-Act architecture using Llama-4 reasoning

A plug-and-play n8n workflow that adds LLM-powered reasoning, planning, and action to your automations — with prompts, schemas, and full agent logic included. Ever wish your n8n flows could think before they act? Now they can. Say hello to the ultimate agent-based upgrade: "Think → Plan → Act" – fully automated. Fully intelligent.⚡ 🧩 What Is This? This product is a ready-to-use AI-powered workflow template for n8n, featuring a smart “Thinking Agent” that: 🧠 Analyzes tasks 📋 Generates a step-by-s

Free

AI-powered candidate screening and evaluation workflow using OpenAI and Airtable

Who is this for? This workflow is ideal for: HR professionals and recruiters who want to automate and enhance the hiring process Organizations seeking AI-driven, consistent, and data-backed candidate evaluations Hiring managers using Airtable as their recruitment database --- What problem is this workflow solving? Screening candidates manually is time-consuming, inconsistent, and difficult to scale. This workflow solves that by: Automating resume intake and AI evaluation Matching candidates

Free

CYBERPULSE AI GRC: automated ISO 42001 compliance evaluation

Description Automatically evaluates and maps AI governance responses to ISO 42001:2023 clause requirements using AI-powered logic. Designed for GRC consultants, audit teams, and AI-focused security programs to reduce time spent on manual clause interpretation and alignment. Who’s It For: GRC Consultants handling AI governance controls Internal Auditors preparing for ISO 42001 audits Security teams implementing AI assurance frameworks Organizations adopting Responsible AI principles How It Works:

Free

📄✨ Easy WordPress content creation from PDF docs + human in the loop Gmail

Easy WordPress Content Creation from PDF Docs + Human in the Loop Gmail This n8n workflow automates the process of transforming PDF documents into engaging, SEO-friendly WordPress blog posts. It incorporates AI-powered text analysis, automatic image generation, and a human review step to ensure quality before publishing. 🚀 How It Works 🗂️ PDF Upload & Text Extraction - Users upload a PDF document through a form trigger. - The workflow extracts text from the uploaded file, ensuring compatibilit

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free