Skip to main content

Automate email marketing campaigns with NocoDB & Brevo

Workflow preview

Workflow preview
100%
Automate email marketing campaigns with NocoDB & Brevo preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description This n8n workflow is a complete marketing automation system that connects to your CDP (Customer Data Platform), selects which flows to send, and delivers personalized emails using Bre...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.filter, n8n-nodes-base.if, n8n-nodes-base.nocodb, n8n-nodes-base.wait, n8n-nodes-base.removeduplicates, n8n-nodes-base.sendinblue

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate email marketing campaigns with NocoDB & Brevo
Workflow name
Automate email marketing campaigns with NocoDB & Brevo

Description🔍

This n8n workflow is a complete marketing automation system that connects to your CDP (Customer Data Platform), selects which flows to send, and delivers personalized emails using Brevo. It's modular and extensible — you can also add SMS, push notifications, Telegram messages, or other channels.

To build a full marketing automation system, you need four key components:

  1. Workflow Automation – using n8n (this workflow)
  2. CDP – store and manage user data (e.g., NocoDB, Metabase, Power BI, etc.)
  3. Database – track transactions, templates, and send statuses (e.g., NocoDB)
  4. BI / Analytics – monitor performance by flows, journeys, and sent events

This workflow represents the Workflow Automation layer. You can connect it to your own data stack or use the included example databases (cdp-ecrm, n8n-templates-ecrm, and n8n-transaction-ecrm) to get started quickly.

👤 Who’s it for?

  • Growth & CRM teams managing user engagement flows
  • Ecommerce marketers running time-sensitive email journeys
  • Marketing automation pros using low-code CRM stacks
  • Data teams building custom campaign triggers from CDPs

✅ Features

  • 🔁 Two modular flows: "Insert user_id" and "Sending Email"
  • 🧠 Select flow using flow_id from templates in NocoDB
  • ✏️ Insert user data into n8n-transaction-ecrm with processing status
  • 🔍 Filter duplicate users by user_id to avoid over-sending
  • 📧 Validate email fields and flag disposables
  • 📨 Send personalized emails using Brevo template parameters
  • 📊 Track delivery with sent_result, sent_at, and status updates
  • 🕒 Runs every 30 minutes via schedule trigger

🛠 How to Use

  1. Set your flow
    In the Setup Flow node, change the flow_id to match a row in your n8n-templates-ecrm table.

  2. Prepare your tables in NocoDB

    • cdp-ecrm: contains users (user_id, email, first_name, phone_number)
    • n8n-templates-ecrm: contains flows with metadata
    • n8n-transaction-ecrm: stores and updates user send status
  3. Configure credentials

    • NocoDB API Token
    • Brevo (Sendinblue) API Key
  4. Trigger the flows

    • Run “Insert user_id” manually or on a schedule to prepare users
    • “Sending Email” runs automatically every 30 minutes

📌 Notes

  • Disposable email domains are filtered using regex
  • Status:
    • 0-processing → just inserted
    • 1-sending → ready to send
    • 2-sent → email sent successfully
    • 3-no-email → missing email address
    • 4-disposal-email → disposable or banned email
  • Easily duplicate the "Insert user_id" flow to add more campaigns

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 - Schedule Trigger

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

Block 2 - Setup Flow

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Map Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Filter Template

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

Block 5 - IF Template Parameters OK

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

Block 6 - IF user_id is not empty

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

Block 7 - Change Status to Sending

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

Block 8 - Get all flow templates from NocoDB

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

Block 9 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - Remove Duplicates

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

Block 11 - Add records By Status Processing

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

Block 12 - Insert Data By Status Processing

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

Block 13 - IF Type Email

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

Block 14 - Brevo Send Email

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

Block 15 - Update Data

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

Block 16 - Status-no-email

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

Block 17 - Schedule Trigger1

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

Block 18 - Insert Data By Status Sending

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

Block 19 - Status-disposal-email

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

Block 20 - Sticky Note

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

Block 21 - Sticky Note1

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

Block 22 - Sticky Note2

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

Block 23 - Sticky Note3

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

Block 24 - Sticky Note4

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

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate email marketing campaigns with NocoDB & Brevo
Complexity advanced
Nodes 30
Categories Social Media
Author Nima Salimi
Published 07 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7134/7134.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 Automate email marketing campaigns with NocoDB & Brevo do?

Description This n8n workflow is a complete marketing automation system that connects to your CDP (Customer Data Platform), selects which flows to send, and delivers personalized emails using Bre...

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.