Skip to main content

Auto-stop email sequences based on replies with IMAP and Google Sheets

Workflow preview

Workflow preview
100%
Auto-stop email sequences based on replies with IMAP and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Email Reply Auto Stopper Workflow How It Works This n8n automation automatically stops your email sequences when prospects reply, preventing embarrassing follow ups and maintaining professional out...

Best for

  • Social Media automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailreadimap, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by David Olusola.

Original n8n.io source

1.1 Workflow description

Title
Auto-stop email sequences based on replies with IMAP and Google Sheets
Workflow name
Auto-stop email sequences based on replies with IMAP and Google Sheets

Email Reply Auto-Stopper Workflow

How It Works

This n8n automation automatically stops your email sequences when prospects reply, preventing embarrassing follow-ups and maintaining professional outreach.

The Process:

Email Monitoring - IMAP trigger watches your inbox for new emails Reply Detection - When someone replies, it extracts their email address

Database Lookup - Searches your Google Sheet prospect list for a match Auto-Stop - Updates the prospect's status to "STOP" and logs reply date Sequence Prevention - Your email sequences skip contacts with "STOP" status Real-World Example:

You send Email 1 to [email protected] John replies: "Thanks, but not interested" This workflow automatically marks John as "STOP" Your follow-up sequences skip John completely You look professional, not spammy Setup Instructions Prerequisites n8n instance (cloud or self-hosted) Email account with IMAP access (Gmail, Outlook, etc.) Google Sheets with your prospect data Step 1: Prepare Your Google Sheet Your prospect sheet MUST include these columns:

Email - Prospect email addresses Email Sent Status - Current status (ACTIVE, SENT, STOP, etc.) Reply Date - When they replied (can be empty initially) row_number - Unique identifier for each row Sample Sheet Structure:

First Name Email Email Sent Status Reply Date row_number
John [email protected] ACTIVE 2
Sarah [email protected] SENT 3
Step 2: Set Up Email Credentials
In n8n, go to Credentials → Add Credential
Choose IMAP
Enter your email settings:
Host: imap.gmail.com (for Gmail)
Port: 993
Username: [email protected]
Password: your-app-password
Secure: Yes
Gmail Users: Enable 2FA and create an App Password

Step 3: Set Up Google Sheets Access Create Google Sheets OAuth2 credential Follow n8n's Google Sheets setup guide Grant access to your prospect spreadsheet Step 4: Import & Configure Workflow Import the workflow JSON Email Trigger Node: Select your IMAP credential Keep "UNSEEN" filter enabled Google Sheets Nodes: Select your Google Sheets credential Choose your prospect spreadsheet Select correct sheet tab Test the workflow with a test email Step 5: Connect to Your Email Sequences Your existing email automation should check the "Email Sent Status" column:

Skip sending if status = "STOP" Continue sequence if status = "ACTIVE" or "SENT" Important Notes ⚠️ Critical: Your email sequence automation MUST respect the "Email Sent Status" field, or this won't work.

💡 Pro Tip: Test with a personal email first to make sure the matching works correctly.

🔧 Customization: You can modify the "STOP" status to anything that fits your workflow (REPLIED, UNSUBSCRIBED, etc.).

Use Cases Cold email campaigns Sales follow-up sequences Newsletter nurture flows Event promotion follow-ups Customer onboarding sequences Troubleshooting Emails not being detected:

Check IMAP credentials Verify "UNSEEN" filter is working Test with manual email trigger Sheet not updating:

Confirm Google Sheets permissions Check column names match exactly Verify row_number column exists No matches found:

Email addresses must match exactly (case-insensitive) Check for extra spaces in email data Verify prospect is in the correct sheet tab This automation prevents spam complaints, protects sender reputation, and keeps your outreach professional. Set it once, forget it forever.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Email Trigger (IMAP)

Type / Role
n8n-nodes-base.emailReadImap - emailReadImap
Config choices
Version 2

Block 2 - Track replies

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Sticky Note 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note 4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note 5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - SMART MATCHING

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 9 - AUTO-STOP SEQUENCES

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Update Record

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

3. Summary Table

Workflow Auto-stop email sequences based on replies with IMAP and Google Sheets
Complexity intermediate
Nodes 10
Categories Social Media
Author David Olusola
Published 01 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5506/5506.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Auto-stop email sequences based on replies with IMAP and Google Sheets do?

Email Reply Auto Stopper Workflow How It Works This n8n automation automatically stops your email sequences when prospects reply, preventing embarrassing follow ups and maintaining professional out...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.