📱 Automatic Gmail unsubscribe detection with AI and Google Sheets contact management

⚡ 131 views · 📱 Social Media & Email Marketing

💡 Pro Tip — For lead enrichment, ScraperNode can pull LinkedIn profiles, company data, and job listings directly into your pipeline — useful for building prospect lists without manual research.

View All Scrapers

Description

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, and outreach managers; particularly those running email outreach campaigns for clients or personal lead-gen projects.

If you send cold emails, manage multiple lead lists, or handle outreach at scale, this workflow helps you automatically manage unsubscribe requests to maintain healthy email deliverability and protect your domain reputation.


⚙️ How it works

  1. Trigger: The workflow starts when a new reply is received in your Gmail inbox.
  2. Intent Detection: The email text is analyzed using OpenAI to detect unsubscribe intent (“unsubscribe”, “remove me”, “opt out”, etc.).
  3. Normalization & Filtering: A Code node verifies the AI output for accuracy and ensures the result is standardized as either "unsubscribe" or "keep".
  4. Check & Update Sheets:
    • If the contact requested removal, the workflow checks your Unsubscribe Sheet to see if they’re already listed.
    • If not, the contact is added to the Unsubscribe Sheet and simultaneously removed from your Main Outreach Sheet.
  5. Optional Gmail Label: Adds an “Unsubscribe” tag in Gmail for quick visual tracking (optional customization).

đź§© Requirements

To run this workflow, you’ll need:

All credentials can be added through the n8n Credentials Manager.


đź§  How to Customize


đź’ˇ Why this workflow matters

By automatically managing unsubscribe requests, you:

This is a must-have automation for anyone running cold email outreach, especially freelancers managing multiple client inboxes.


🪄 Quick Setup Tips

đź”— Nodes Used

Google Sheets, Gmail, Gmail Trigger, Basic LLM Chain, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup