Turn your file storage into a searchable chat. Team members ask a question and get answers pulled from your own documents. Great for support and operations that keep files in Supabase.
The flow lists files in a Supabase bucket, compares them with a files table, and skips duplicates. New items are downloaded and routed by type. Text files go straight to processing while PDFs are extracted first. Content is split into chunks of about 500 tokens with overlap to keep context. OpenAI embeddings are created and stored in a Supabase vector store with file_id metadata. A chat trigger listens for questions and an AI agent pulls the top 8 matching chunks to answer in plain language.
You need a Supabase project with storage and a vector store table, plus an OpenAI API key. Update the Supabase URLs, bucket path, and credentials in the nodes. Expect faster answers, less manual search, and scalable knowledge across many files. Use it for policy search, help desk articles, onboarding guides, and sales materials that need quick, accurate answers.