Skip to main content

Automated 4-stage email follow-up system with AI personalization and database tracking

Workflow preview

Workflow preview
100%
Automated 4-stage email follow-up system with AI personalization and database tracking preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n template demonstrates how to automate personalized cold email follow ups using AI personalization and database tracking. Perfect for sales teams, recruiters, and agencies managing high vol...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.nocodb, n8n-nodes-base.filter, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.emailsend, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated 4-stage email follow-up system with AI personalization and database tracking
Workflow name
Automated 4-stage email follow-up system with AI personalization and database tracking

This n8n template demonstrates how to automate personalized cold email follow-ups using AI personalization and database tracking. Perfect for sales teams, recruiters, and agencies managing high-volume outreach.

Use cases: Follow up with cold leads, re-engage trial users, nurture conference contacts, recruit candidates, or follow up with proposal recipients.

PS: 1) This was created as a Follow Up workflow it was not meant for inital outreach. (However if you can customize it to include initial outreach then go ahead)

2)This workflow sends a maximum of 4 follow Ups

How it works

  • NocoDB fetches all leads and filters those needing follow-up today based on the "Next Follow up/Contact" date
  • A switch node routes leads to the appropriate follow-up stage (1-4) based on which follow-ups have already been sent
  • AI personalizes each email template by inserting the recipient's name while keeping the rest of the content intact
  • Emails are sent via SMTP (or Gmail node), then the database updates to mark the follow-up as sent and schedule the next one
  • The workflow runs daily at 10 AM to automatically process follow-ups without manual intervention

Good to know

  • Each AI personalization costs ~$0.001 with Groq (free tier available). See Groq pricing for details.
  • Follow-up schedule: Day 3, 7, 12, 16 after initial contact (fully customizable)
  • Leads marked "Not Interested" are automatically excluded from future follow-ups
  • The workflow only processes leads with an "Initial Contact Date" set - this triggers the entire sequence (The initial Contact is done manually and updated manually)

How to use

  • The schedule trigger runs daily but can be replaced with manual trigger or webhook for immediate testing
  • Customize the 4 email templates in the AI nodes to match your brand voice and offering
  • Adjust follow-up intervals by modifying the "Update a row" nodes (currently +4 or +5 days between follow-ups)
  • Import your lead list to NocoDB with minimum required fields: first_name, last_name, email, Initial Contact Date

Requirements

  • NocoDB account - Free lead database (You can use any database-Google Sheets, Airtable etc. However ensure the essential details below are in the database)
  • Groq API key (or OpenAI/Ollama) - For AI personalization (Swap this for any LLM you like/have)
  • SWITCH the 'Send Email' nodes for the Gmail Node and set it up using OAuth

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 - Get many rows

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 2 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 3 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 4 - Groq Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 5 - Groq Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 6 - Groq Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 7 - Groq Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 8 - Send email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 9 - Send email1

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 10 - Send email2

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 11 - Send email3

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 12 - Update a row

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 13 - Update a row1

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 14 - Update a row2

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 15 - Update a row3

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 16 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 17 - Filter1

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 18 - Follow Up Message 1

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 19 - Follow Up Message 2

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 20 - Follow Up Message 3

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 21 - Follow Up Message 4

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 22 - Sticky Note

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

Block 23 - Sticky Note1

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

Block 24 - Sticky Note2

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

3. Summary Table

Workflow Automated 4-stage email follow-up system with AI personalization and database tracking
Complexity advanced
Nodes 24
Categories Lead Nurturing, AI Chatbot
Author Buay Biel
Published 30 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9108/9108.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 Automated 4-stage email follow-up system with AI personalization and database tracking do?

This n8n template demonstrates how to automate personalized cold email follow ups using AI personalization and database tracking. Perfect for sales teams, recruiters, and agencies managing high vol...

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 Lead Nurturing, AI Chatbot use case.