Automate Email Marketing Campaigns with NocoDB & Brevo
Last edited 58 days ago
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:
- Workflow Automation – using n8n (this workflow)
- CDP – store and manage user data (e.g., NocoDB, Metabase, Power BI, etc.)
- Database – track transactions, templates, and send statuses (e.g., NocoDB)
- 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_idfrom templates in NocoDB - ✏️ Insert user data into
n8n-transaction-ecrmwith processing status - 🔍 Filter duplicate users by
user_idto 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
-
Set your flow
In theSetup Flownode, change theflow_idto match a row in yourn8n-templates-ecrmtable. -
Prepare your tables in NocoDB
cdp-ecrm: contains users (user_id,email,first_name,phone_number)n8n-templates-ecrm: contains flows with metadatan8n-transaction-ecrm: stores and updates user send status
-
Configure credentials
- NocoDB API Token
- Brevo (Sendinblue) API Key
-
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 inserted1-sending→ ready to send2-sent→ email sent successfully3-no-email→ missing email address4-disposal-email→ disposable or banned email
- Easily duplicate the "Insert user_id" flow to add more campaigns
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!





