Templates / Adaptive email auto-responder with GPT-4, RAG and human feedback loop

Adaptive email auto-responder with GPT-4, RAG and human feedback loop

Needs changes

by LeeWei ✓ · 119 views · created 2025-09-21 · Ticket Management, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 29 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Embeddings OpenAI, Supabase Vector Store, OpenAI Chat Model and Google Sheets and 1 more.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. If: checks a condition and branches into true / false
  2. If: checks a condition and branches into true / false
  3. Get Dynamic Prompt (Google Sheets): uses Google Sheets
  4. Get Dynamic Prompt (Google Sheets): uses Google Sheets
  5. Original Reply (Markdown): converts between Markdown and HTML
  6. Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
  7. Edit Fields (Edit Fields (Set)): sets or maps fields
  8. Markdown: converts between Markdown and HTML
  9. Switch: routes items into branches
  10. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Supabase Vector Store); output parser: Auto-fixing Output Parser

…plus 7 more steps. See the full node list below.

Services it uses

Embeddings OpenAISupabase Vector StoreOpenAI Chat ModelGoogle SheetsGmail

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (17)

From the author

⚙️ Self Learning Agent: AI-Powered Email Auto-Responder that Improves with Feedback 🧑‍💻 Author: LeeWei --- Overview of the n8n Workflow This n8n workflow builds a self-improving AI agent for handling email responses. It integrates Gmail for incoming…

Excerpt from LeeWei's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.