# AI document search in Supabase: ask questions about PDFs and texts via chat
This workflow automates information extraction and analysis from files (PDF, text) stored in Supabase using AI. Users can ask questions via chat, and the system retrieves relevant content snippets to generate contextual answers — eliminating manual searching and reading.
## Who it´s for
- Document specialists who need fast access to file-based information
- Support teams using knowledge bases built on uploaded PDFs and text files
- Developers implementing AI-powered document search without complex infrastructure
- Project managers automating access to reports and internal documents
## What the automation does
- Detects new or existing files in Supabase Storage (PDF, text)
- Extracts and chunks content for downstream processing
- Generates vector embeddings using OpenAI and stores them in Supabase Vector Store
- Triggers on incoming chat messages or manual execution
- Retrieves relevant document snippets based on user queries and generates natural language responses
- Dynamically updates the knowledge base when new files are added
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on LangChain and HTTP API
- Integrations with Supabase, OpenAI, and PDF parser
- Basic text instructions for launch and adaptation
## Requirements for setup
- n8n instance with external API access
- Supabase project with Storage and Vector Store enabled
- OpenAI API key with access to embedding models
- Chat interface or test tool to trigger the workflow
## Benefits and outcomes
- Saves time on searching through documents
- Delivers accurate answers based on actual file content
- Automatically indexes new documents upon upload
- Simplifies knowledge access for new employees and clients
- No need for external knowledge bases or file-linked LLM agents
- Scalable solution built on open technologies
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet