Create a powerful Retrieval-Augmented Generation (RAG) system using a comprehensive n8n workflow. Analyze uploaded files with Llama Parser, index data in Pinecone, and deploy a Gemini-powered chatbot for Q&A.
Download this n8n workflow template and start using it instantly.




















This sophisticated n8n workflow provides a complete solution for taking unstructured document input and transforming it into an interactive, queryable knowledge base. The process is initiated by an n8n trigger (form submission) where users upload files. The workflow leverages LlamaIndex's powerful cloud parser to convert files into structured Markdown. Following this, Google Gemini models perform translation and deep analysis, ensuring the content is clean and well-structured.
Critically, the analyzed content is chunked and vectorized using Mistral Embeddings before being stored in a Pinecone vector database. This indexing process establishes the knowledge base for the second half of the solution: the Retrieval-Augmented Generation (RAG) Chatbot. The user receives an email containing both the analysis summary and a link to the dedicated n8n chatbot interface, allowing immediate, context-aware interaction with their uploaded documents. This complex interaction demonstrates the power of the n8n node ecosystem for end-to-end AI automation.
This n8n workflow operates in two distinct, interconnected phases:
To deploy this advanced n8n workflow, follow these steps:
samuraichamploo), environment, and API key.This n8n workflow utilizes many specialized and custom nodes to achieve complex AI functionality:
On form submission4 (n8n trigger): Initiates the document processing flow, collecting files and the user's contact email.
split the binary item (Code n8n node): A crucial custom script that iterates through the binary data provided by the form trigger and separates the uploaded files for individual processing.
Parsing the document (HTTP Request n8n node): Uploads the file to the LlamaIndex Cloud parsing service using multipart-form-data and Bearer Token authorization.
Google Gemini Chat Model (Langchain n8n node): Multiple instances (e.g., 5, 6, 2, 3) are used throughout the n8n workflow, serving as the core LLM for translation, complex analysis, and generating RAG responses.
Analyzer Agent (AI Agent n8n node): Instructed with detailed system messages to perform comprehensive analysis, structuring, and duplication checks on the parsed document content.
Convert to File (n8n node): Used to convert the final analyzed text into a binary file format, suitable for attaching to the outgoing email via the Gmail n8n node.
Embeddings Mistral Cloud (Langchain n8n node): Responsible for generating high-quality vector representations (embeddings) of the document chunks.
Pinecone Vector Store (Langchain n8n node): Manages the persistent storage and retrieval of vector embeddings into the specified Pinecone index (samuraichamploo).
Recursive Character Text Splitter (Langchain n8n node): Prepares large documents for vector storage by breaking them into optimal, overlapping chunks.
When chat message received (n8n trigger): The webhook n8n trigger for the live chatbot interface, initiating the RAG query process.
Deploy a robust doctor appointment scheduler using this n8n workflow. It leverages Telegram for instant chat, Google Gemini for transcription, and Google Sheets for availability tracking and booking, all managed by a powerful n8n node agent.

Automate doctor appointments, online payments (Stripe), reminders, and cancellations using a conversational AI built with a robust n8n workflow. Integrate WhatsApp and Google Sheets for seamless management.

Schedule and automate Docker Registry cleanup using this powerful n8n workflow. Automatically remove old image tags and execute crucial garbage collection commands via SSH.

Use this powerful n8n workflow to automate complex document parsing, utilizing Mistral OCR for extraction, structured data generation via specialized AI agents, and automated delivery through Telegram. A comprehensive n8n template for data processing.

Deploy a custom AI Document Q&A chatbot on Telegram using this powerful n8n workflow. Integrates Google Gemini, Supabase vector storage, and advanced RAG capabilities. Explore n8n templates for AI.









































