# AI agent to answer questions on documents from Supabase and Google Drive
This automation enables an AI assistant that answers user queries based on the content of uploaded documents. Ideal for companies and professionals who need fast access to information in large volumes of text — contracts, medical records, technical documentation.
## Who it´s for
- Companies handling large document volumes and needing rapid information retrieval.
- Lawyers analyzing contracts and legal documents.
- Medical institutions automating patient record processing.
- Developers building AI assistants for internal document workflows.
## What the automation does
- On file upload to Google Drive or Supabase, triggers text extraction via LlamaParse.
- Content is embedded using OpenAI and stored in Supabase Vector Store.
- On receiving a user message (via webhook), a LangChain-based agent activates, using the vector store as a knowledge base.
- The agent generates accurate answers through semantic search over documents.
- Supports PDF, DOCX, PPTX, and other formats compatible with LlamaParse.
## What´s included
- Ready-to-use n8n workflow.
- Trigger logic: file created/updated in Google Drive, HTTP webhook received.
- Integrations with Supabase, Google Drive, OpenAI, and LlamaParse API.
- Basic textual setup and adaptation guide.
## Requirements for setup
- n8n instance with external API access.
- Supabase account with vector extension enabled.
- OpenAI API key with access to embedding models.
- LlamaParse API key.
- Google Drive account with read access to target folder.
## Benefits and outcomes
- Speeds up document information retrieval without manual scanning.
- Enables complex contextual questions about file content.
- Automatically updates knowledge base when new files are added.
- Handles multiple formats via LlamaParse.
- Suitable for integration into support systems, legal or medical software.
- Reduces errors in interpreting contracts and regulations.
## 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