Templates / Categorize emails and draft Gmail replies with Groq and Google Sheets

Categorize emails and draft Gmail replies with Groq and Google Sheets

Needs changes

by Utkarsh Kapoor ✓ · 22 views · created 2026-06-24 · Ticket Management, AI Summarization

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 12 nodes and runs on Gmail events. Along the way it connects Gmail, Groq Chat Model and Google Sheets.

How it runs

Trigger: On Gmail events.

  1. Check Email Content (If): checks a condition and branches into true / false
  2. Set Email Fields (Edit Fields (Set)): sets 6 fields: sender, sender_name, subject…
  3. Email Analysis Agent (AI Agent): runs an AI agent, with model: Groq Language Model
  4. Parse AI Analysis (Code): runs custom JavaScript code
  5. Check Parse Success (If): checks a condition and branches into true / false
  6. Evaluate Priority Level (If): checks a condition and branches into true / false
  7. Send High Priority Alert (Gmail): uses Gmail
  8. Append to Google Sheets (Google Sheets): append
  9. Assess Reply Necessity (If): checks a condition and branches into true / false
  10. Draft Gmail Reply (Gmail): create draft

Services it uses

GmailGroq Chat ModelGoogle Sheets

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 Email Analysis Agent (v1.7): 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 2026 — 6% of 2026 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)
Email Analysis Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

From the author

Quick overview This workflow monitors Gmail for new emails, uses Groq (via the LangChain Agent node) to categorize and summarize each message and draft a reply, sends an alert email for high-priority items, and logs the analysis and draft details to Google…

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