Templates / Automatic Gmail unsubscribe detection with AI and Google Sheets contact management

Automatic Gmail unsubscribe detection with AI and Google Sheets contact management

Ready for 3.0

by Itunu ✓ · 210 views · created 2025-10-30 · Social Media, 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 15 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Google Sheets.

How it runs

Trigger: On Gmail events.

  1. Personal Emails? (If): checks a condition and branches into true / false
  2. DETECT INTENT (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  3. NORMALIZE AI OUTPUT (Code): runs custom JavaScript code
  4. UNSUBSCRIBE? (If): checks a condition and branches into true / false
  5. Get unsubscribe sheet (Google Sheets): uses Google Sheets
  6. IS EMAIL THERE? (Code): runs custom JavaScript code
  7. If: checks a condition and branches into true / false
  8. ADD TO UNSUBSCRIBE (Google Sheets): append
  9. CHECK MAIN SHEET (Google Sheets): uses Google Sheets
  10. Delete rows or columns from sheet (Google Sheets): delete

…plus 1 more step. See the full node list below.

Services it uses

GmailOpenAI Chat ModelGoogle Sheets

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) (Watch New replies).

Nodes used (8)

From the author

Automatically detect unsubscribe replies in your outreach emails and clean your Google Sheets contact list; keeping your domain reputation and deliverability strong. --- 🎯 Who it’s for This template is designed for freelancers, lead generation specialists,…

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