# Answers questions on PDFs via chat using OCR, Qdrant, and Gemini
This workflow automates information retrieval from scanned PDF documents using a RAG system built on n8n, Mistral OCR, and Google Gemini. A user asks a question via chat — the system finds the relevant passage in stored documents and returns a precise answer. Ideal for contracts, internal policies, and unstructured document archives.
## Who it´s for
- Document specialists needing fast access to scanned content
- Legal and finance teams processing large volumes of PDFs
- Developers building custom RAG solutions for clients
- Companies digitizing internal knowledge from unstructured documents
## What the automation does
- On trigger (chat message, manual, or workflow execution), fetches PDFs from Google Drive
- Extracts text using Mistral OCR
- Splits text into chunks and generates embeddings via OpenAI Embeddings
- Stores vectors in Qdrant for semantic search
- On receiving a chat question, retrieves relevant context from Qdrant
- Generates a response using Google Gemini and sends it back
- Supports batch processing of multiple documents from a Google Drive folder
## What´s included
- Ready-to-use n8n workflow
- Trigger logic: chat_message, manual_trigger, execute_workflow_trigger
- Integrations with Google Drive, Mistral AI, Qdrant, Google Gemini
- Basic textual guide for setup and adaptation
## Requirements for setup
- n8n instance with HTTP API and LangChain support
- Google Drive API access
- Mistral AI API key (OCR)
- Running Qdrant instance (local or cloud)
- Google Gemini API key
- Environment configured for OpenAI Embeddings
## Benefits and outcomes
- Automatic digitization and indexing of scanned documents
- Fast information lookup without manual PDF review
- High answer accuracy through RAG and vector search
- Time savings for legal, finance, and support staff
- Scalability: supports hundreds of documents
- Flexibility: can serve as backend for chatbots
## 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