Deploy n8n Brevo
Brevo / Sendinblue to Slack & CRM
Just deployed
/var/lib/postgresql/data
Just deployed
/home/node/.n8n
Redis
Just deployed
/data
n8n-worker
Just deployed
Deploy and Host self hosted n8n Brevo (Open-Source Brevo Automation) on Railway
You want Brevo webhook events - contact created, list updated, campaign opened - to land in Slack and your CRM without waiting on a third-party sync.
About Hosting n8n Brevo open-source software on Railway (self hosted n8n template)
Most people start with a single n8n container on a $5 VPS, then discover a Brevo campaign blast produces hundreds of webhook deliveries in seconds.
Why Deploy n8n Brevo, the Mailchimp alternative on Railway (Railway Free Trial)
Mailchimp's automation builder works until you need a webhook to update a HubSpot deal, post to Slack, and backfill a Google Sheet from the same "contact added" event. Then you're writing custom code or paying for Zapier.
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying n8n Brevo on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Railway vs Other Hosting Providers and VPS for n8n Brevo self hosting
| Provider | Queue mode setup | Postgres + Redis | Scaling workers | Monthly cost |
|---|---|---|---|---|
| DigitalOcean | Manual: two droplets, managed DB/Redis | Separate services | Add droplets | $24-$48 |
| AWS | Manual: ECS/Fargate, RDS, ElastiCache | Multiple services | Auto-scaling groups | $30-$80 |
| Hetzner | Manual: one server, Docker Compose | Self-managed | Add servers | $15-$30 |
| Railway | Built-in template | One-click services | Scale from dashboard | $10-$25 |
Railway's advantage: queue-mode topology is already wired. No Docker Compose with three services and healthchecks. Deploy template, set encryption key, point Brevo webhook at your Railway URL.
Common Use Cases for hosted n8n Brevo
- Contact created -> Slack + CRM upsert. Post rich message to #new-leads and create/update HubSpot, Pipedrive, or Salesforce record.
- Campaign opened/clicked -> follow-up. Trigger timed workflow to send personalized email via Brevo API or update lead score.
- Unsubscribe -> CRM removal + Slack ping. Brevo webhook removes contact from CRM, logs reason, pings sales owner.
- Bulk import via Brevo API. Schedule workflow to read Google Sheet, transform, batch-create Brevo contacts; queue mode handles rate limits.
Dependencies for n8n Brevo Docker hosted on Railway
Queue mode requires Postgres and Redis. Template provisions editor, worker, and Redis. Editor and worker share same Postgres database and volume at /home/node/.n8n. Volume stores workflows and credentials.
Deployment Dependencies for Managed n8n Brevo Service (Email Marketing Automation)
- Postgres - set
DB_TYPE=postgresdband connection vars:DB_POSTGRESDB_HOST,DB_POSTGRESDB_PORT,DB_POSTGRESDB_DATABASE,DB_POSTGRESDB_USER,DB_POSTGRESDB_PASSWORD. - Redis - set
QUEUE_BULL_REDIS_HOST,QUEUE_BULL_REDIS_PORT, optionalQUEUE_BULL_REDIS_PASSWORD. - n8n editor - image
n8nio/n8n:2.36.8, commandn8n start, port5678. SetEXECUTIONS_MODE=queue,N8N_PROXY_HOPS=1. - n8n worker - same image, command
n8n worker. Shares Postgres and Redis settings. - Volume -
/home/node/.n8nfor both services.
Implementation Details for n8n Brevo (Using n8n official docker image)
Editor serves UI and API, receives Brevo webhooks, enqueues to Redis Bull. Worker pulls and executes. Scale workers horizontally from dashboard during bursts. Each worker needs same Postgres, Redis, volume.
Set N8N_ENCRYPTION_KEY to long random string before creating credentials. Losing it makes all stored credentials unreadable; re-enter every API key. Store in Railway secret store.
Set EXECUTIONS_DATA_PRUNE=true to auto-delete execution logs after retention. Without it, busy webhook workflows fill Postgres with millions of rows.
Worker command is exactly n8n worker. Do not set EXECUTIONS_MODE on worker; it inherits queue mode. Standard setup routes webhooks through editor.
How does n8n Brevo compare against other email marketing automation platforms
n8n isn't an email platform; it's automation connecting Brevo to your stack. Comparison focuses on handling Brevo webhooks to Slack and CRM with custom logic.
n8n Brevo vs Mailchimp (Mailchimp Alternative)
Mailchimp has built-in webhooks but fixed payload, one URL per audience. Need Slack + CRM from same event? You need Zapier or code. n8n branches, transforms, calls any API in one workflow.
n8n Brevo vs Klaviyo (Klaviyo Alternative)
Klaviyo is e-commerce email/SMS with deep Shopify/WooCommerce. If you only route Brevo events to CRM, Klaviyo is overkill; it wants to be primary email platform, charges per contact.
n8n Brevo vs SendGrid (SendGrid Alternative)
SendGrid has granular event webhooks (delivered, bounced, spamreport) but all to one endpoint; you parse and route. n8n does that visually with error handling. SendGrid free tier 100 emails/day; Brevo free 300/day.
n8n Brevo vs ActiveCampaign (ActiveCampaign Alternative)
ActiveCampaign has automation builder with native CRM and Slack, but closed system: no arbitrary API or custom JS. n8n allows code nodes, HTTP requests, expressions.
How to use n8n Brevo (the OSS Email Marketing Automation)?
Open n8n editor, create workflow, add Webhook node (POST). Copy URL. In Brevo, Settings > Webhooks, add event, paste URL. Back in n8n, add Slack node with bot token, use {{$json.email}}.
Test by creating a contact in Brevo or "Send test webhook". Watch execution list. Keep at least one worker replica running. Campaign events may have delays; use Wait node or schedule second workflow.
How to self host n8n Brevo on other VPS Services (n8n Brevo self hosting guide)
Replicate queue-mode stack on any VPS with Docker Compose. Here's the manual path.
Clone the Repository
Create project directory and minimal docker-compose.yml with editor, worker, redis, postgres services. Community examples on GitHub.
Install Dependencies
Install Docker and Compose. Pull n8nio/n8n:2.36.8, postgres:16, redis:7. Use managed Postgres/Redis if available.
Configure Environment Variables
Create .env:
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=postgres
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=n8n
DB_POSTGRESDB_USER=n8n
DB_POSTGRESDB_PASSWORD=yourpassword
QUEUE_BULL_REDIS_HOST=redis
QUEUE_BULL_REDIS_PORT=6379
EXECUTIONS_MODE=queue
N8N_ENCRYPTION_KEY=your-long-random-string
WEBHOOK_URL=https://your-vps-domain.com/
N8N_PROXY_HOPS=1
EXECUTIONS_DATA_PRUNE=true
Generate key with openssl rand -hex 32.
Start the n8n Brevo Application
Run docker compose up -d. Editor on port 5678. Check logs docker compose logs worker. Access http://your-vps-ip:5678.
Official Pricing of n8n Brevo (n8n Brevo pricing)
n8n Community Edition free, fair-code, unlimited self-hosted executions. n8n Cloud starts about $24/month for 2,500 executions. This Railway template uses Community; pay only infrastructure. Typical cost $10-$25/month.
n8n Brevo cloud vs self hosted comparison (Pricing, features, costs, and more)
Monthly cost of self hosting n8n Brevo on Railway
Editor 0.5 vCPU/512MB ~$5/month. Worker 1 vCPU/1GB ~$10/month. Postgres $5/month, Redis $5/month. Total ~$20-$25/month. Reduce cost with smaller resources or scaling worker to zero off-hours.
System Requirements for Hosting n8n Brevo on a VPS
- CPU: 2 vCPUs recommended for editor + worker.
- Memory: 2 GB RAM minimum. Redis Bull stores queue in memory; bursts consume hundreds MB.
- Disk: 20 GB SSD. Volume stores workflows; with pruning, 10 GB enough.
- Network: Low latency to Brevo's webhook servers; same region as account.
- Database: Postgres 14+ with 1 GB storage. SQLite not supported in queue mode.
- Redis: Version 6+, persistence off.
Frequently Asked Questions (FAQs)
What Brevo webhooks does this template handle?
Template doesn't pre-install workflows; you build them. Queue-mode infra ready for any Brevo event: contact created/updated/deleted, list add/remove, campaign sent/opened/clicked, bounce, unsubscribe.
What happens if I lose N8N_ENCRYPTION_KEY?
All stored credentials (Brevo API key, Slack token, CRM OAuth) become unreadable. Workflows remain but fail auth until re-saved. Store key in Railway secrets and password manager.
Why use queue-mode stack instead of cheaper single-node template?
The cheapest n8n without queue mode runs single container with SQLite, no Redis. Fine for low volume. But Brevo campaign burst of 500 events: single process queues in memory, sequential.
How to prune execution data to keep Postgres from filling up?
Set EXECUTIONS_DATA_PRUNE=true and optionally EXECUTIONS_DATA_MAX_AGE=168 (hours). Without pruning, busy workflow writes millions of rows, slowing editor. Manual cleanup SQL possible but pruning is long-term fix.
Does Sendinblue to Brevo rename affect workflows?
Brevo was Sendinblue. Webhook payloads and API endpoints remain compatible. Some n8n node names still reference "Sendinblue". Existing workflows continue. New workflows use Brevo node or HTTP Request.
Can I run multiple n8n workers on Railway for spikes?
Yes. Duplicate worker service, set replicas to 2, 3, or more during campaign. Workers pull from same Redis Bull queue. Ensure same env vars and shared volume. Scale down after. Railway charges per replica.
Scale workers only for the campaign window, then drop replicas so idle Redis and Postgres stay cheap. Watch Bull queue depth in Redis if Slack alerts lag behind Brevo opens.
Template Content
Redis
redis:8.2n8n-worker
n8nio/n8n:2.36.8