automation
2 min read

RAG Methods n8n Workflows

Ready-to-import n8n workflows showing the 4 RAG methods to connect AI agents with your data.

n8nragai-agentsautomationworkflows

RAG Methods n8n Workflows

Ready-to-import n8n workflow demonstrating the 4 RAG methods for connecting AI agents to your data.

What's Included

  • RAG_N8N.json - Complete n8n workflow with all 4 methods
  • sales_january_2026.csv - Sample data to test with

The 4 RAG Methods

  1. Filters - Simple exact-match searches
  2. SQL Queries - Calculations and aggregations
  3. Full Context - Complete document reading
  4. Vector Database - Semantic search for large datasets

Quick Setup

  1. Download and extract the ZIP file
  2. Open your n8n instance
  3. Go to Workflows > Import from File
  4. Select RAG_N8N.json
  5. Add your OpenAI API key
  6. Test with the included CSV data

Sample Questions

Try these with the included sales data:

  • "How many Laptop Pro did we sell?"
  • "Show me sales from January 15th"
  • "What's the total revenue for Wireless Mouse?"
  • "Which product sold the most units?"

When to Use Each Method

MethodBest For
FiltersSimple lookups by name, ID, or date
SQLTotals, averages, rankings
Full ContextSummaries, short documents
VectorsLarge knowledge bases, FAQs

Ready to download?

Get instant access to this free resource