Templates / Draft and review grounded support email replies with Gmail, OpenAI and Claude

Draft and review grounded support email replies with Gmail, OpenAI and Claude

Ready for 3.0

by Mina Saad ✓ · 46 views · created 2026-08-31 · Support Chatbot, AI RAG

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 47 nodes and runs manually, when you click “Execute workflow” (plus 4 other triggers). Along the way it connects Google Drive, Postgres, Postgres PGVector Store and Embeddings OpenAI and 2 more.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 4 other triggers).

  1. List KB Files (Google Drive): work with file folder
  2. Normalize Ticket (Code): runs custom JavaScript code
  3. Query Reply Metrics (Postgres): run a query
  4. Fetch Ingest Ledger (Postgres): run a query
  5. Mask PII (Code): runs custom JavaScript code
  6. Format Metrics Email (Code): runs custom JavaScript code
  7. Select New Or Changed (Code): runs custom JavaScript code
  8. Classify Ticket (Basic LLM Chain): sends a prompt to an LLM, with model: Classifier Model; output parser: Classification Schema
  9. Send Metrics Digest (Gmail): uses Gmail
  10. Download KB File (Google Drive): download

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

Services it uses

Google DrivePostgresPostgres PGVector StoreEmbeddings OpenAIGmailOpenRouter Chat Model

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.

Nodes used (18)

From the author

Quick overview This workflow ingests a Google Drive knowledge base into Postgres/pgvector, then drafts and quality-checks support email replies using OpenRouter LLMs and OpenAI embeddings, automatically replying in Gmail only when citations and critic scores…

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