AutomationMart
Home/Browse/Smarter RAG agents with enriched retrieval and modular workflows
n8n

Smarter RAG agents with enriched retrieval and modular workflows

n8nn8n24 modulesv1.0
GmailSlackNotionOpenAIGoogle DriveTelegramLinkedInGeminiHugging Face

An extendable RAG template to build powerful, explainable AI assistants — with query understanding, semantic metadata, and support for free-tier tools like Gemini, Gemma and Supabase. Description This workflow helps you build smart, production-ready RAG agents that go far beyond basic document Q&A. It includes: ✅ File ingestion and chunking ✅ Asynchronous LLM-powered enrichment ✅ Filterable metadata-based search ✅ Gemma-based query understanding and generation ✅ Cohere re-ranking ✅ Me

At a glance

Smarter RAG agents with enriched retrieval and modular workflows is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack, Notion, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Notion, OpenAI, Google Drive, Telegram
Modules
24
Price
Free
Version
v1.0
Smarter RAG agents with enriched retrieval and modular workflows workflow diagram

About this workflow

An extendable RAG template to build powerful, explainable AI assistants — with query understanding, semantic metadata, and support for free-tier tools like Gemini, Gemma and Supabase. Description This workflow helps you build smart, production-ready RAG agents that go far beyond basic document Q&A. It includes: ✅ File ingestion and chunking ✅ Asynchronous LLM-powered enrichment ✅ Filterable metadata-based search ✅ Gemma-based query understanding and generation ✅ Cohere re-ranking ✅ Memory persistence via Postgres Everything is modular, low-cost, and designed to run even with free-tier LLMs and vector databases. Whether you want to build a chatbot, internal knowledge assistant, documentation search engine, or a filtered content explorer — this is your foundation. ⚙️ How It Works This workflow is divided into 3 pipelines: 📥 Ingestion - Upload a PDF via form - Extract text and chunk it for embedding - Store in Supabase vector store using Google Gemini embeddings 🧠 Enrichment (Async) - Scheduled task fetches new chunks - Each chunk is enriched with LLM metadata (topics, usecase, risks, audience level, summary, etc.) - Metadata is added to the vector DB for improved retrieval and filtering 🤖 Agent Chat - A user question triggers the RAG agent - Query Builder transforms it into keywords and filters - Vector DB is queried and reranked - The final answer is generated using only retrieved evidence, with references - Chat memory is managed via Postgres 🌟 Key Features - Asynchronous enrichment → Save tokens, batch process with free-tier LLMs like Gemma - Metadata-aware → Improved filtering and reranking - Explainable answers → Agent cites sources and sections - Chat memory → Persistent context with Postgres - Modular design → Swap LLMs, rerankers, vector DBs, and even enrichment schema - Free to run → Built with Gemini, Gemma, Cohere, Supabase (free tier-compatible) 🔐 Required Credentials |Tool|Use| |-|-|-| |Supabase w/ PostreSQL|Vector DB + storage| |Google Gemini/Gemma|Embeddings & LLM| |Cohere API|Re-ranking| |PostgreSQL|Chat memory| 🧰 Customization Tips - Swap extractFromFile with Notion/Google Drive integrations - Extend Metadata Obtention prompt to fit your domain (e.g., financial, legal) - Replace LLMs with OpenAI, Mistral, or Ollama - Replace Postgre Chat Memory with Simple Memory or any other - Use a webhook instead of a form to automate ingestion - Connect to Telegram/Slack UI with a few extra nodes 💡 Use Cases - Company knowledge base bot (internal docs, SOPs) - Educational assistant with smart filtering (by topic or level) - Legal or policy assistant that cites source sections - Product documentation Q&A with multi-language support - Training material assistant that highlights risks/examples - Content Generation 🧠 Who It’s For - Indie developers building smart chatbots - AI consultants prototyping Q&A assistants - Teams looking for an internal knowledge agent - Anyone building affordable, explainable AI tools 🚀 Try It Out! Deploy a modular RAG assistant using n8n, Supabase, and Gemini — fully customizable and almost free to run. 1. 📁 Prepare Your PDFs - Use any internal documents, manuals, or reports in PDF format. - Optional: Add Google Drive integration to automate ingestion. 2. 🧩 Set Up Supabase - Create a free Supabase project - Use the table creation queries included in the workflow to set up your schema. - Add your supabaseUrl and supabaseKey in your n8n credentials. > 💡 Pro Tip: Make sure you match the embedding dimensions to your model. This workflow uses Gemini text-embedding-04 (768-dim) — if switching to OpenAI, change your table vector size to 1536. 3. 🧠 Connect Gemini & Gemma - Use Gemini/Gemma for embeddings and optional metadata enrichment. - Or deploy locally for lightweight async LLM processing (via Ollama/HuggingFace). 4. ⚙️ Import the Workflow in n8n - Open n8n (self-hosted or cloud). - Import the workflow file and paste your credentials. You’re ready to ingest, enrich, and query your document base. 💬 Have Feedback or Ideas? I’d Love to Hear This project is open, modular, and evolving — just like great workflows should be :). If you’ve tried it, built on top of it, or have suggestions for improvement, I’d genuinely love to hear from you. Let’s share ideas, collaborate, or just connect as part of the n8n builder community. 📧 ascuncia.es@gmail.com 🔗 Linkedin

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create and update Airtable records using ChatpGPT completions via a custom webhook

Streamline Airtable record management by using ChatGPT to generate content. Trigger updates via a custom webhook for dynamic data handling.

Free

Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram automation

The AI Viral Video Factory: From Concept to Content in Minutes This n8n workflow is a fully automated pipeline that takes a creative concept and transforms it into a polished, platform-ready short-form video. It ideates, generates video and audio using AI, merges them, and publishes the final content to your social media accounts! ✨ Core Features - Automated Ideation: Leverages GPT-4 to generate unique, trend-aware ASMR video concepts, complete with captions and hashtags. - AI-Powered Visuals:

Free

Generate text, image, and video-to-video clips with WAN 2.6 via KIE.AI

This n8n template provides a comprehensive suite of WAN 2.6 video generation capabilities through the KIE.AI API. The workflow includes three independent video generation workflows: text-to-video, image-to-video, and video-to-video. Each workflow can be used independently to create videos from different input types, making it perfect for content creators, marketers, and video production teams. Use cases are many: Create videos from text descriptions without any input media, transform static imag

Free

Automate image portfolio organization with GPT-4o Vision, Google Drive and Notion

Overview This template is ideal for photographers, graphic designers, and creative professionals who manage large volumes of visual assets. It is also perfect for Digital Asset Managers looking for a customizable, automated solution to organize files without manual tagging. What it does When a new image is uploaded to a designated "Inbox" folder in Google Drive, the workflow performs the following actions: - AI Analysis: Uses GPT-4o to analyze the image content, generating a descript

Free

Get Slack messages for new FormCrafts responses

Every time a new form is submitted in FormCrafts, a message will be sent to the specified channel or chat in Slack. The template expects your form to have at least the following fields: 1. First Name 2. Last Name 3. Email 4. How Can We Help? The template uses this [sample form](https://formcrafts.com/a/mrvcsfa).

Free

Generate & edit images with Gemini AI: storage & email delivery pipeline

AI Image Generator with Nano Banana: Automated Creation and Delivery For content creators, agencies, and SaaS developers who need automated AI image generation and editing with professional delivery workflows. Overview This template demonstrates intelligent workflow routing based on user input type, leveraging Google's Gemini 2.5 Flash image model for both generative and editing tasks. The workflow includes complete file handling, cloud storage integration, and professional email notification wi

Free

Tailor your Google Docs CV to any job using Ollama and Groq

CV Keyword Optimizer An AI-powered n8n workflow that automatically tailors your resume to any job description by injecting relevant keywords — without touching your formatting, layout, or design. --- How It Works Architecture Why Two AI Models? | Step | Model | Why | |------|-------|-----| | Keyword Extraction | Ollama llama3.1:8b (local) | Free, private, no API costs. Reasoning about which keywords actually matter for ATS | | Text Rewriting | Groq llama-3.3-70b-versatile (cloud) | Larger model

Free

✨ Vision-based AI agent scraper - with Google Sheets, ScrapingBee, and Gemini

Important Notes: Check Legal Regulations: This workflow involves scraping, so ensure you comply with the legal regulations in your country before getting started. Better safe than sorry! Workflow Description: 😮‍💨 Tired of struggling with XPath, CSS selectors, or DOM specificity when scraping ? This AI-powered solution is here to simplify your workflow! With a vision-based AI Agent, you can extract data effortlessly without worrying about how the DOM is structured. This workflow leverages a vi

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free