Templates / Send AI-generated Gmail auto replies with GPT-4o-mini and Google Sheets

Send AI-generated Gmail auto replies with GPT-4o-mini and Google Sheets

Ready for 3.0

by kota ✓ · 312 views · created 2026-01-12 · Ticket Management, AI Summarization

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 11 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and OpenAI.

How it runs

Trigger: On Gmail events.

  1. Config - Rules & Thresholds (Edit Fields (Set)): sets 10 fields: ignoreListIncludes, ignoreSubjectIncludes, ignoreLabelsIncludes…
  2. Normalize - Email Payload (Edit Fields (Set)): sets 8 fields: Normalize - Email Payload, from_raw, from_lower…
  3. If: checks a condition and branches into true / false
  4. Code: runs custom JavaScript code
  5. Get row(s) in sheet (Google Sheets): uses Google Sheets
  6. If: checks a condition and branches into true / false
  7. Gmail: get many
  8. If: checks a condition and branches into true / false
  9. Message a model (OpenAI): uses OpenAI
  10. Reply to a message (Gmail): reply

Services it uses

GmailGoogle SheetsOpenAI

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 - New Emails).

Nodes used (7)

From the author

Overview This workflow automatically replies to important incoming Gmail messages using AI, while preventing duplicate or unnecessary replies. It applies multiple safety checks (filters, Google Sheets history, and Gmail sent history) to ensure replies are…

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