Deploy n8n WhatsApp
WhatsApp Business chatbot on queue-mode n8n
Just deployed
/home/node/.n8n
n8n-worker
Just deployed
Just deployed
/var/lib/postgresql/data
Redis
Just deployed
/data
Deploy and Host self hosted n8n WhatsApp Business chatbot (Open-Source WhatsApp Automation) on Railway
WhatsApp automation stack.
About Hosting n8n WhatsApp Business chatbot open-source software on Railway (self hosted n8n template)
x
This Railway template deploys n8n in queue mode for WhatsApp automation. The editor runs on n8nio/n8n:2.36.8 (port 5678), workers run the same image with n8n worker, and both connect to managed PostgreSQL and Redis Bull. Volume /home/node/.n8n persists data. Key env vars: EXECUTIONS_MODE=queue, DB_TYPE=postgresdb, WEBHOOK_URL, N8N_PROXY_HOPS=1, N8N_ENCRYPTION_KEY, EXECUTIONS_DATA_PRUNE=true. Queue mode buffers WhatsApp webhooks so bursts don’t drop messages. Railway handles orchestration, scaling, and private networking.
Why Deploy n8n WhatsApp Business chatbot, the ManyChat alternative on Railway (Railway Free Trial)
ManyChat charges per contact and locks advanced features behind tiers. n8n on Railway costs $10–$25/month regardless of contacts. You get 400+ integrations, Code node, and full data ownership. Self-hosting keeps WhatsApp data in your own Postgres. Community Edition is fair-code. The $5 free trial on GitHub signup lets you test the full stack.
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 WhatsApp 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 WhatsApp Business chatbot self hosting
| Feature | Railway | DigitalOcean | AWS | Hetzner |
|---|---|---|---|---|
| Setup time | ~5 min template | 1–2 hrs manual | 3–4 hrs ECS | 1–2 hrs VPS |
| Managed Postgres + Redis | Yes | Add-ons | RDS + ElastiCache | Self-managed |
| Worker scaling | Slider | Manual | Auto-scaling groups | Manual |
| Private networking | Automatic | VPC config | VPC + security groups | Firewall rules |
| Monthly cost | $10–$25 | $18–$40 | $50–$120 | $8–$20 (DIY) |
| HTTPS webhook | Automatic | Manual Nginx | Load balancer | Manual |
Common Use Cases for hosted n8n WhatsApp Business chatbot
- AI customer support: Route to OpenAI/Anthropic, fallback to human via Slack.
- Lead capture & CRM sync: Extract contact data, push to HubSpot/Salesforce/Postgres.
- Order status: Query Shopify/WooCommerce, reply with status.
- Appointment booking: Integrate Calendly/Google Calendar, send reminders.
- Internal notifications: Stripe failures, server alerts to WhatsApp.
- Multi-agent AI: Chain AI nodes with tool calls.
Dependencies for n8n WhatsApp Business chatbot Docker hosted on Railway
Redis stack.
Deployment Dependencies for Managed n8n WhatsApp Business chatbot Service (WhatsApp Chatbot Automation)
Services: editor (n8nio/n8n:2.36.8, port 5678), worker (same image, n8n worker), PostgreSQL, Redis Bull. Volume /home/node/.n8n. Env: EXECUTIONS_MODE=queue, DB_TYPE=postgresdb, WEBHOOK_URL, N8N_PROXY_HOPS=1, N8N_ENCRYPTION_KEY, EXECUTIONS_DATA_PRUNE=true. SQLite cannot run queue mode.
Implementation Details for n8n WhatsApp Business chatbot (Using n8n official docker image)
Use WhatsApp Business Cloud API trigger/node. Configure Meta webhook to Railway URL. Add AI node (OpenAI/Anthropic) and CRM nodes. Workers execute workflows; editor stays responsive. Scale workers horizontally. For simpler single-instance n8n, see cheapest n8n without queue mode.
How does n8n WhatsApp Business chatbot compare against other WhatsApp chatbot and messaging automation platforms
n8n WhatsApp Business chatbot vs ManyChat (ManyChat Alternative)
ManyChat: closed SaaS, per-contact pricing, limited integrations. n8n: open-source, 400+ integrations, unlimited executions, data ownership. ManyChat easier for non-technical users; n8n more powerful.
n8n WhatsApp Business chatbot vs Twilio WhatsApp (Twilio WhatsApp Alternative)
Twilio: developer API, per-message fees, you build the app. n8n: visual builder on same WhatsApp Cloud API, no custom code. Twilio for product teams; n8n for ops.
n8n WhatsApp Business chatbot vs Respond.io (Respond.io Alternative)
Respond.io: omnichannel inbox for human agents, $79+/seat. n8n: automation engine, not an inbox. Use n8n for automated replies and backend integrations.
n8n WhatsApp Business chatbot vs Wati (Wati Alternative)
Wati: WhatsApp-specific SaaS, $39+/month, limited integrations. n8n: 400+ integrations, Code node, direct DB access. Wati simpler; n8n far more flexible.
How to use n8n WhatsApp Business chatbot (the OSS WhatsApp Chatbot Automation)?
Deploy template, open editor. Create Meta app, get token. Add WhatsApp credentials, create workflow with WhatsApp Trigger, configure webhook. Add AI node, reply node. Test. Extend with CRM, router, human handoff. Activate.
How to self host n8n WhatsApp Business chatbot on other VPS Services (n8n WhatsApp Business chatbot self hosting guide)
Clone the Repository
Create docker-compose.yml with editor, worker, Postgres, Redis. Use n8nio/n8n:2.36.8, worker command n8n worker, port 5678, volume /home/node/.n8n.
Install Dependencies
Install Docker, Docker Compose, Nginx/Caddy, certbot. Firewall: allow 80, 443, 22 only. Keep Postgres/Redis internal.
Configure Environment Variables
Set EXECUTIONS_MODE=queue, DB_TYPE=postgresdb, Postgres connection, N8N_ENCRYPTION_KEY (openssl rand -hex 32), WEBHOOK_URL, N8N_PROXY_HOPS=1, EXECUTIONS_DATA_PRUNE=true, Redis host.
Start the n8n WhatsApp Business chatbot Application
docker compose up -d. Check logs. Configure Nginx proxy to localhost:5678 with WebSocket. SSL. Open editor, create account, add WhatsApp credentials, test webhook. Scale workers by adding replicas.
Official Pricing of n8n WhatsApp Business chatbot (n8n WhatsApp Business chatbot pricing)
n8n Community Edition free. Infrastructure costs only. n8n Cloud Starter ~$24/month for 2,500 executions. Self-hosted Railway $10–$25/month, unlimited executions. Meta per-message fees and AI API costs extra.
n8n WhatsApp Business chatbot cloud vs self hosted comparison (Pricing, features, costs, and more)
Cloud: fast start, managed, but execution limits, no custom code on Starter, data on n8n servers. Self-hosted: unlimited executions, full DB ownership, custom env, any npm package. Community lacks SSO. Self-hosting 40–60% cheaper for equivalent volume.
Monthly cost of self hosting n8n WhatsApp Business chatbot on Railway
Editor 0.5 vCPU/1GB ~$5, workers $5–$10, Postgres $5, Redis $2–$5, storage negligible. Total $12–$25. Add Meta fees ($0.005–$0.08/msg) and AI costs ($0.01–$0.05/conversation). $5 free trial on GitHub signup.
System Requirements for Hosting n8n WhatsApp Business chatbot on a VPS
Minimum: 2 vCPU, 2GB RAM, 20GB SSD (editor + 1 worker + Postgres + Redis). Recommended: 4 vCPU, 4GB RAM, 40GB SSD, separate services. Scale workers horizontally. Postgres ≥512MB RAM, Redis ≥256MB. Enable EXECUTIONS_DATA_PRUNE=true.
Frequently Asked Questions (FAQs)
Can I use SQLite with queue-mode n8n for WhatsApp automation?
No. Queue mode requires PostgreSQL. SQLite locks on write and cannot support multiple workers.
How many WhatsApp messages can this Railway stack handle?
One worker: 5–10 simple executions/sec, 2–5 with AI/CRM. Two workers: 10–20/sec. A conversation uses 2–4 executions, so 5–10 conversations/sec peak. Redis buffers bursts.
Do I need a Meta Business account for WhatsApp automation?
Yes. Meta developer account, verified business, WhatsApp Business number, permanent token. Meta charges per message.
What happens if I lose my N8N_ENCRYPTION_KEY?
All stored credentials become unreadable. You must re-enter every credential. Store key securely, never rotate without exporting.
Can I run multiple WhatsApp Business numbers on one n8n instance?
Yes. Create multiple WhatsApp credentials, use in different workflows or branch by webhook.
Is the Community Edition sufficient for a production WhatsApp chatbot?
For most SMBs, yes. Includes WhatsApp nodes, 400+ integrations, Code node, queue mode. Lacks SSO, audit logs, vendor support. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n WhatsApp executions off the editor so webhooks stay fast under load.
Template Content
n8n-worker
n8nio/n8n:2.36.8Redis
redis:8.2