AI-Driven Email Campaign Optimization and Smart Follow-ups - n8n Workflow

Automate campaign analysis using this n8n workflow. Scrape live ESP data with Bright Data, use an AI agent to analyze metrics, and automatically send targeted follow-up emails via Gmail based on open and click rates.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Marketing Managers and CRM Specialists who need timely, data-driven campaign interventions.
Users seeking advanced n8n templates that combine AI, web scraping, and email services.
Growth hackers looking to automate re-engagement sequences based on complex metrics.
Anyone needing an n8n solution to bypass API limitations by scraping live reports.

Overview

Manually monitoring email campaign reports and identifying segments that need re-engagement is time-consuming and prone to delays. This powerful n8n workflow solves this problem by completely automating the analysis and action process.

It leverages a powerful n8n node combination: the Bright Data Managed Capture Proxy (MCP) tool scrapes live campaign reports from your Email Service Provider (ESP), regardless of API availability. The gathered raw data is then fed into an advanced n8n AI Agent. This agent, configured with an OpenAI LLM, analyzes the numbers and provides structured output.

The core intelligence of this n8n automation is the ability to detect a specific high-value scenario: high open rates paired with low click-through rates. This indicates an interested audience that just needs a better Call-to-Action (CTA). By detecting this via the n8n logic, the system instantly triggers a personalized re-engagement email via Gmail, maximizing campaign ROI and ensuring no interested lead is lost. This is a crucial, high-impact n8n workflow for any digital marketer.

How it Works

This comprehensive n8n workflow operates in three primary stages:


  1. Scheduled Input Preparation (The n8n trigger): The process begins with the Daily Campaign Check Trigger, an n8n trigger set to run every morning (e.g., 9 AM). The subsequent Set Campaign Input Fields n8n node defines the necessary inputs, such as the target campaign report URL, ensuring the AI agent has the correct starting data.

  2. AI Analysis and Data Extraction: The data flows into the Agent: Scrape & Analyze Campaign Performance n8n node. This AI agent orchestrates the entire intelligence process. It utilizes the Bright Data MCP tool to scrape the live performance metrics from the specified report URL. The raw scrape output is then passed through an OpenAI Chat Model and an Auto-fixing Output Parser to convert the messy HTML-scraped text into clean, structured JSON data containing crucial metrics like open_rate and ctr.

  3. Conditional Actioning: The structured data reaches the IF: Open ≥30% & CTR <10%? n8n node. This node evaluates the performance based on pre-set logic (e.g., if open rate is high (>=20) AND click rate is low (<130, as configured).

If the condition is True (high open, low click), the workflow proceeds to the Gmail n8n node to Send Follow-Up Engagement Email.
If the condition is False, the workflow takes the alternative path to the Skip — No Action Needed n8n node and gracefully terminates for the day. This entire n8n workflow template ensures action is only taken when genuinely needed.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import: Copy the provided JSON and import it directly into your n8n instance using the 'New' -> 'Import from JSON' function.

  2. Credentials Setup:

OpenAI: Set up credentials for the OpenAI Chat Model nodes using your OpenAI API key.
Gmail: Set up OAuth2 credentials for the Gmail n8n node to allow the workflow to send emails from your designated account.
* Bright Data MCP: Configure the MCP Client (STDIO) account credentials to enable the workflow to utilize Bright Data’s scraping capabilities. This is essential for the Bright Data MCP: Scrape Report n8n node.

  1. Configuration: Edit the Set Campaign Input Fields n8n node to replace the placeholder URL with the actual report URL for your current email campaign.

  2. Activate: Save the n8n workflow and toggle the workflow 'Active' status. The Daily Campaign Check Trigger will now initiate the automation on its schedule.

Node Details

This n8n workflow relies on several specialized n8n nodes:

⏰ Daily Campaign Check Trigger (Schedule Trigger): The main n8n trigger. Starts the workflow daily at a specified time (default: 9 AM) for continuous monitoring.
✏️ Set Campaign Input Fields (Set): Used to define the target email campaign report URL that the AI Agent will analyze. Critical for easy modification of the n8n workflow inputs.
🤖 Agent: Scrape & Analyze Campaign Performance (Agent): The core AI n8n node. It combines tools (Bright Data) and language models (OpenAI) to intelligently fetch, analyze, and structure the campaign performance data.
🌐 Bright Data MCP: Scrape Report (MCP Client Tool): This n8n node acts as the scraper, executing a tool to log in and extract the campaign statistics as Markdown from the report page.
🧠 LLM: Summarize & Format (Chat Model): An LLM used within the Agent to interpret the scraped data.
Auto-fixing Output Parser / Structured Output Parser: These n8n nodes ensure the AI output conforms to a strict JSON structure, making the extracted metrics (open_rate, ctr) readable for the subsequent conditional logic.
🔎 IF: Open ≥30% & CTR <10%? (IF): A crucial core logic n8n node. It checks if the performance meets the specific re-engagement criteria (e.g., open rate >= 20% AND CTR < 130).
📧 Send Follow-Up Engagement Email (Gmail): Executes the action by sending a personalized re-engagement message, completing the automated campaign loop using the Gmail n8n node.

Related n8n Workflows

Free

Nodes: 11 Nodes
Updated: December 26 2025
View all
Created by

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

Featured*