Templates / Automated customer support system with Gemini AI, RAG & security guardrails

Automated customer support system with Gemini AI, RAG & security guardrails

Ready for 3.0

by RamS ✓ · 839 views · created 2025-12-07 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 32 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Guardrails, Gmail, Slack and Google Gemini Chat Model and 3 more.

How it runs

Trigger: On Gmail events (plus 2 other triggers).

  1. Guardrails: uses Guardrails, with model: Guard LLM
  2. Knowledge Base Storage (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  3. Orchestrator Agent (AI Agent): runs an AI agent, with model: Reasoning Model for Orchestrator; 5 tools (Slack Tool, Email Reply Tool, Call Resolution Agent, Call Ticket Analyser Agent…); memory: Simple Memory
  4. Log Threats in Airtable (Airtable): create or update
  5. Placeholder 1(Read Note and Setup) (Edit Fields (Set)): sets 3 fields: senderEmail, threadId, query
  6. Email / Ticket Analyser Agent (AI Agent): runs an AI agent, with model: Ticket Analyser LLM; memory: Simple Memory
  7. Clean JSON (Code): runs custom JavaScript code
  8. Placeholder 2(Read Note and Setup) (Edit Fields (Set)): sets 5 fields: senderEmail, threadId, query…
  9. Knowledge worker and Investigator (AI Agent): runs an AI agent, with model: RAG LLM; 1 tool (Knowledge Base Retrieval); memory: Simple Memory
  10. Clean Json (Code): runs custom JavaScript code

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

Services it uses

GuardrailsGmailSlackGoogle Gemini Chat ModelAirtableEmbeddings OpenAISupabase Vector Store

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (16)

From the author

Description This workflow acts as an autonomous Tier 2 Customer Support Agent. It doesn't just answer questions; it manages the entire lifecycle of a support ticket—from triage to resolution with Guardrails to deal with prompt injections, PII information…

Excerpt from RamS'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.