Back to Integrations
integrationBrevo node
integrationOpenAI node

Brevo and OpenAI integration

Save yourself the work of writing custom integrations for Brevo and OpenAI and use n8n instead. Build adaptable and scalable Marketing, Communication, AI, and Langchain workflows that work with your technology stack. All within a building experience you will love.

How to connect Brevo and OpenAI

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Brevo and OpenAI integration: Create a new workflow and add the first step

Step 2: Add and configure Brevo and OpenAI nodes

You can find Brevo and OpenAI in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Brevo and OpenAI nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Brevo and OpenAI integration: Add and configure Brevo and OpenAI nodes

Step 3: Connect Brevo and OpenAI

A connection establishes a link between Brevo and OpenAI (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Brevo and OpenAI integration: Connect Brevo and OpenAI

Step 4: Customize and extend your Brevo and OpenAI integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Brevo and OpenAI with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Brevo and OpenAI integration: Customize and extend your Brevo and OpenAI integration

Step 5: Test and activate your Brevo and OpenAI workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Brevo to OpenAI or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Brevo and OpenAI integration: Test and activate your Brevo and OpenAI workflow

Automate lead generation with Apollo, AI scoring and Brevo email outreach

AI Scoring, Personalized Email Creation and Outreach

Overview

This comprehensive automation flow helps you scale your outreach to potential customers through intelligent personalized email campaigns. The system combines web scraping, AI-powered lead scoring, and automated email sequences to maximize your conversion rates.

Key Features
Intelligent Website Analysis** with automated scraping
AI-Powered Lead Scoring** for prioritization
Personalized Email Generation** using AI
Automated Email Outreach** with tracking
Real-time Event Monitoring** via Brevo webhooks
Centralized Data Management** with NocoDB

System Architecture
The workflow integrates multiple platforms to create a seamless lead generation pipeline:
NocoDB** - Central database and CRM
Crawl4AI** - Website content analysis
OpenAI** - Lead scoring and email personalization
Brevo** - Email delivery and tracking

Setup Requirements

Prerequisites
Before starting, ensure you have accounts for the following services:
NocoDB (Database & CRM)
Apify (Web scraping platform)
OpenAI (AI processing)
Brevo (Email delivery service)

> 💡 Pro Tip: For advanced users, consider self-hosting NocoDB and Crawl4AI to significantly reduce operational costs.

Step-by-Step Setup

  1. NocoDB Database Configuration

Create Your NocoDB Account
Sign up at nocodb.com
Create a new workspace
Set up your first base (database)

Database Schema Setup
Create a new table with the following field structure:

Field Name Field Type Configuration
first_name Single Line Text -
last_name Single Line Text -
email Email -
headline Single Line Text -
linkedin_url URL -
industry Single Line Text -
organization_name Single Line Text -
organization_website URL -
organization_size Number -
organization_linkedin_url URL -
organization_facebook_url URL -
market_cap Single Line Text -
job_title Single Line Text -
country Single Line Text -
city Single Line Text -
lead_status Single Select Options: entered(make it default!), processed, email_created, contacted, trash, failed_to_process, opened_email, warm
website_summary Long Text -
score Number Default: 0
organization_description Long Text -
primary_phone Phone Number -
keywords Single Line Text -
email_subject Single Line Text -
email_body Long Text -
email_opened_times Number Default: 0
personal_email Single Line Text -
  1. External Service Setup

Apify Configuration
Create account at apify.com
Navigate to Settings → API tokens
Generate new API token
Save token securely for automation setup

OpenAI API Setup
Visit platform.openai.com
Go to API Keys section
Create new secret key
Store API key securely
Ensure billing is configured for API usage

Brevo Email Service
Sign up at brevo.com
Complete account verification
Navigate to SMTP & API settings
Generate API key for integration
Configure sender authentication (SPF/DKIM)

Workflow Process

Phase 1: Lead Discovery & Data Collection
Data Import - Populate NocoDB with lead information
Status Update - Mark leads as entered

Phase 2: Website Analysis & Lead Scoring
Website Scraping - Analyze company websites using Crawl4AI
Content Processing - Extract key business information
AI Scoring - Evaluate lead quality using OpenAI
Database Update - Store analysis results and scores

Phase 3: Email Personalization & Outreach
Content Generation - Create personalized email content
Email Preparation - Format messages for delivery
Automated Sending - Deploy via Brevo
Status Tracking - Monitor delivery and engagement

Phase 4: Performance Monitoring
Webhook Processing - Capture Brevo email events
Engagement Tracking - Update open/click metrics
Lead Qualification - Adjust lead status based on engagement
Pipeline Management - Maintain lead progression

Lead Status Workflow

entered → processed → email_created → contacted → opened_email → warm

failed_to_process / trash (for low-quality leads)

Status Definitions
entered**: Initial lead data captured
processed**: Website analyzed and scored
email_created**: Personalized email generated
contacted**: Email successfully sent
opened_email**: Recipient opened the email
warm**: High engagement, ready for follow-up
failed_to_process**: Technical issues during processing
trash**: Low-quality lead, removed from active pipeline

Best Practices

Data Quality
Regularly clean and deduplicate your lead database
Monitor lead scores to refine your targeting criteria
Archive or remove inactive leads to maintain performance

Email Deliverability
Warm up your sending domain before high-volume campaigns
Monitor bounce rates and adjust list quality
Implement proper SPF, DKIM, and DMARC records

Compliance
Ensure GDPR/CAN-SPAM compliance in all communications
Provide clear unsubscribe mechanisms
Respect recipient preferences and opt-outs

Performance Optimization
A/B test email subject lines and content
Analyze open rates and adjust sending times
Segment leads based on engagement levels for targeted follow-up

Next Steps

Once your setup is complete, you'll have a powerful, automated lead generation system that can:
Process hundreds of leads simultaneously
Provide intelligent lead prioritization
Generate personalized outreach at scale
Track and optimize campaign performance

Ready to transform your lead generation process? Start with the NocoDB setup and work through each integration step by step.

Nodes used in this workflow

Popular Brevo and OpenAI workflows

AI Sales Agent — Fully Automated Email Handling & Lead Scoring System

🤖 AI Sales Agent — Fully Automated Email Handling & Lead Scoring System Automate lead outreach, analyze replies with AI, and keep your CRM always in sync — hands-free. This workflow acts as a 24/7 intelligent sales assistant that not only sends personalized cold emails but also reads and interprets replies, updates your CRM, and even writes contextual responses — just like a real sales rep would. Ideal for founders, growth teams, and agencies who want to automate outreach and follow-ups without losing the human touch. 🧩 What This Workflow Does 🔹 1. Smart AI Email Analysis Every incoming email is parsed and sent to GPT-4o for structured classification: Detects unsubscribe requests, automated replies, or manual responses Extracts intent, sentiment, urgency, and key points Determines the next best action — follow-up, escalate, or close 🔹 2. Personalized AI Replies When appropriate, the workflow automatically drafts replies that: Match the sender’s tone and intent Address objections using feel-felt-found logic Suggest the most relevant product or resource Sign off naturally (e.g. “Sofia from Tech Powered Growth”) 🔹 3. Lead Scoring & CRM Sync (NocoDB) Leads are continuously enriched and scored based on activity: +5 points for interested replies, +2 for clicks, –10 for unsubscribes Status automatically transitions between cold → warm → hot Daily maintenance updates decay inactive leads and schedule re-engagement 🔹 4. Engagement Tracking & Insights The workflow tracks opens, clicks, bounces, spam, and unsubscribes from Brevo (Sendinblue), updating CRM records instantly. Each day, it generates a performance report with lead distribution, score changes, and actionable recommendations. ⚙️ Integrations Used OpenAI GPT-4o-mini** — intent classification & reply generation Brevo (Sendinblue)** — email sending & webhook event tracking Gmail** — real-time incoming replies & outbound responses NocoDB** — lead management, scoring, and analytics n8n Code Nodes** — smart logic for scoring, decay, and decision flow 🚀 Key Benefits ✅ Save hours of manual email triage and follow-ups 💬 Maintain human-sounding conversations with prospects 📊 Keep lead data accurate and always up-to-date ⚡ Automatically nurture, score, and re-engage leads 📈 Get daily actionable analytics for your sales pipeline 🛠️ Setup Instructions Connect your NocoDB, Brevo, Gmail, and OpenAI credentials Adjust your NocoDB table structure or use the sample schema provided Set your sender details in the “Send Initial Outreach Email” node Customize the AI response prompt with your brand tone or offer Turn on the triggers — and watch your AI sales assistant go to work 💡 Ideal For Solo founders automating outreach B2B agencies handling multiple clients Growth engineers and sales ops teams SaaS companies with inbound or outbound funnels 🧠 Pro Tip Pair this workflow with your lead scraping or enrichment flow to create a fully autonomous sales system — from discovery to closed deal.

Automate Lead Generation with Apollo, AI Scoring and Brevo Email Outreach

AI Scoring, Personalized Email Creation and Outreach Overview This comprehensive automation flow helps you scale your outreach to potential customers through intelligent personalized email campaigns. The system combines web scraping, AI-powered lead scoring, and automated email sequences to maximize your conversion rates. Key Features Intelligent Website Analysis** with automated scraping AI-Powered Lead Scoring** for prioritization Personalized Email Generation** using AI Automated Email Outreach** with tracking Real-time Event Monitoring** via Brevo webhooks Centralized Data Management** with NocoDB System Architecture The workflow integrates multiple platforms to create a seamless lead generation pipeline: NocoDB** - Central database and CRM Crawl4AI** - Website content analysis OpenAI** - Lead scoring and email personalization Brevo** - Email delivery and tracking Setup Requirements Prerequisites Before starting, ensure you have accounts for the following services: NocoDB (Database & CRM) Apify (Web scraping platform) OpenAI (AI processing) Brevo (Email delivery service) > 💡 Pro Tip: For advanced users, consider self-hosting NocoDB and Crawl4AI to significantly reduce operational costs. Step-by-Step Setup NocoDB Database Configuration Create Your NocoDB Account Sign up at nocodb.com Create a new workspace Set up your first base (database) Database Schema Setup Create a new table with the following field structure: | Field Name | Field Type | Configuration | |------------|------------|---------------| | first_name | Single Line Text | - | | last_name | Single Line Text | - | | email | Email | - | | headline | Single Line Text | - | | linkedin_url | URL | - | | industry | Single Line Text | - | | organization_name | Single Line Text | - | | organization_website | URL | - | | organization_size | Number | - | | organization_linkedin_url | URL | - | | organization_facebook_url | URL | - | | market_cap | Single Line Text | - | | job_title | Single Line Text | - | | country | Single Line Text | - | | city | Single Line Text | - | | lead_status | Single Select | Options: entered(make it default!), processed, email_created, contacted, trash, failed_to_process, opened_email, warm | Default Value: entered | website_summary | Long Text | - | | score | Number | Default: 0 | | organization_description | Long Text | - | | primary_phone | Phone Number | - | | keywords | Single Line Text | - | | email_subject | Single Line Text | - | | email_body | Long Text | - | | email_opened_times | Number | Default: 0 | | personal_email | Single Line Text | - | External Service Setup Apify Configuration Create account at apify.com Navigate to Settings → API tokens Generate new API token Save token securely for automation setup OpenAI API Setup Visit platform.openai.com Go to API Keys section Create new secret key Store API key securely Ensure billing is configured for API usage Brevo Email Service Sign up at brevo.com Complete account verification Navigate to SMTP & API settings Generate API key for integration Configure sender authentication (SPF/DKIM) Workflow Process Phase 1: Lead Discovery & Data Collection Data Import - Populate NocoDB with lead information Status Update - Mark leads as entered Phase 2: Website Analysis & Lead Scoring Website Scraping - Analyze company websites using Crawl4AI Content Processing - Extract key business information AI Scoring - Evaluate lead quality using OpenAI Database Update - Store analysis results and scores Phase 3: Email Personalization & Outreach Content Generation - Create personalized email content Email Preparation - Format messages for delivery Automated Sending - Deploy via Brevo Status Tracking - Monitor delivery and engagement Phase 4: Performance Monitoring Webhook Processing - Capture Brevo email events Engagement Tracking - Update open/click metrics Lead Qualification - Adjust lead status based on engagement Pipeline Management - Maintain lead progression Lead Status Workflow entered → processed → email_created → contacted → opened_email → warm ↓ failed_to_process / trash (for low-quality leads) Status Definitions entered**: Initial lead data captured processed**: Website analyzed and scored email_created**: Personalized email generated contacted**: Email successfully sent opened_email**: Recipient opened the email warm**: High engagement, ready for follow-up failed_to_process**: Technical issues during processing trash**: Low-quality lead, removed from active pipeline Best Practices Data Quality Regularly clean and deduplicate your lead database Monitor lead scores to refine your targeting criteria Archive or remove inactive leads to maintain performance Email Deliverability Warm up your sending domain before high-volume campaigns Monitor bounce rates and adjust list quality Implement proper SPF, DKIM, and DMARC records Compliance Ensure GDPR/CAN-SPAM compliance in all communications Provide clear unsubscribe mechanisms Respect recipient preferences and opt-outs Performance Optimization A/B test email subject lines and content Analyze open rates and adjust sending times Segment leads based on engagement levels for targeted follow-up Next Steps Once your setup is complete, you'll have a powerful, automated lead generation system that can: Process hundreds of leads simultaneously Provide intelligent lead prioritization Generate personalized outreach at scale Track and optimize campaign performance Ready to transform your lead generation process? Start with the NocoDB setup and work through each integration step by step.

Build your own Brevo and OpenAI integration

Create custom Brevo and OpenAI workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Brevo supported actions

Create
Create or Update
Delete
Get
Get Many
Update
Create
Update
Delete
Get Many
Send
Send Template
Create
Delete
Get Many

OpenAI supported actions

Message a Model
Generate a model response with GPT 3, 4, 5, etc. using Responses API
Classify Text for Violations
Check whether content complies with usage policies
Analyze Image
Take in images and answer questions about them
Generate an Image
Creates an image from a text prompt
Edit Image
Edit an image
Generate Audio
Creates audio from a text prompt
Transcribe a Recording
Transcribes audio into text
Translate a Recording
Translates audio into text in English
Delete a File
Delete a file from the server
List Files
Returns a list of files that belong to the user's organization
Upload a File
Upload a file that can be used across various endpoints
Create
Create a conversation
Get
Get a conversation
Remove
Remove a conversation
Update
Update a conversation
Generate
Creates a video from a text prompt

Brevo and OpenAI integration details

Use case

Automate lead management

Using too many marketing tools? n8n lets you orchestrate all your apps into one cohesive, automated workflow.

Learn more

FAQs

  • Can Brevo connect with OpenAI?

  • Can I use Brevo’s API with n8n?

  • Can I use OpenAI’s API with n8n?

  • Is n8n secure for integrating Brevo and OpenAI?

  • How to get started with Brevo and OpenAI integration in n8n.io?

Need help setting up your Brevo and OpenAI integration?

Discover our latest community's recommendations and join the discussions about Brevo and OpenAI integration.
Artem
sérgio eduardo floresta filho
Andrew adawdad
PinkFloyd
Steve Warburton

Looking to integrate Brevo and OpenAI in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Brevo with OpenAI

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon