Automating Brevo Newsletter Generation from RSS Feeds using n8n and Groq

Rohit Das

In today’s content-saturated market, manual workflows are a silent growth killer. This automation matters because it bridges the gap between high-quality production and instant distribution. By offloading the extraction and classification to n8n and AI, you eliminate the "friction" that often delays newsletter sends by days.

In the world of content marketing, speed is everything. However, manually copying blog content into email templates is a repetitive chore that invites formatting errors and drains creative energy.

Today, we’re breaking down a sophisticated automation workflow built in n8n that monitors your RSS feed, uses AI to classify the content, and automatically generates targeted email templates in Brevo.

The Workflow Architecture

The goal is simple: Blog Post → AI Analysis → Targeted Email Template.

1. The Trigger: RSS Feed

The journey starts with the RSS Feed Trigger. Instead of checking your site every hour, n8n polls your feed. The moment a new <item> is detected, the workflow springs into action, carrying the URL and metadata of your latest post.

Figure 1: Add your blog page link to Feed URL parameter

2. Content Extraction & Cleaning

  • Get Web Page: We use an HTTP Request node to fetch the full HTML of the blog post.
  • Code in JavaScript: Raw HTML is messy. We use a small snippet of JavaScript to strip away the "noise" (headers, footers, ads) and extract the core article text so the AI isn't distracted by sidebar links.
Figure 2: Use http request to get page content and JavaScript coode to extract only the necessary part of the page

3. Smart Classification with Groq AI

This is where the magic happens. Instead of sending the same generic email to everyone, we use a Text Classifier node powered by the Groq Chat Model.

  • Why Groq? It offers incredibly low latency, making the classification happen almost instantaneously.
  • The Logic: The AI reads the content and determines the target audience. As seen in the diagram, it categorizes the post into one of three paths:
    1. Working Professionals (WP)
    2. Faculty
    3. All Round (General)
Figure 3: The classifier helps in adding tags to the brevo templates before mass sending

4. Automated Template Creation in Brevo

Once the audience is identified, n8n routes the data to one of three HTTP Request nodes. These nodes talk directly to the Brevo API (https://api.brevo.com/...).

  • Dynamic Data: The workflow injects the blog title, a summarized excerpt, and the "Read More" link into a pre-defined Brevo JSON payload.
  • Personalization: Because the AI classified the content, the template used for "Faculty" can have a completely different tone or layout than the one for "Working Professionals."
Feature Manual Process n8n Automation
Time to Draft 15–30 Minutes < 5 Seconds
Segmentation Often ignored Automated by AI
Consistency Human error prone Perfectly formatted every time

Key Takeaways

By using this setup, you aren't just "sending emails"—you're building a content pipeline. You ensure that the right people get the right content immediately after you hit "Publish," all while keeping your hands off the keyboard.

Inspire Others – Share Now

Table of Contents