---
title: "Deploy AI agent for WhatsApp: Chatwoot inbox + n8n workflows, ready in one click"
description: "Agente de IA en WhatsApp · Chatwoot + n8n en Railway"
category: "AI/ML"
url: https://railway.com/deploy/chatwoot-n8n-whatsapp-ai-agent
---

# Deploy AI agent for WhatsApp: Chatwoot inbox + n8n workflows, ready in one click

Agente de IA en WhatsApp · Chatwoot + n8n en Railway

**[Deploy AI agent for WhatsApp: Chatwoot inbox + n8n workflows, ready in one click on Railway](https://railway.com/template/chatwoot-n8n-whatsapp-ai-agent)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/chatwoot-n8n-whatsapp-ai-agent/manifest.json

- **Creator:** Pablo's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### n8n-worker https://devicons.railway.app/n8n

- **Image:** n8nio/n8n:2.46.4
- **Start command:** `n8n worker`

### chatwoot https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/webp/chatwoot.webp

- **Image:** chatwoot/chatwoot:v4.19.1
- **Start command:** `sh -c 'bundle exec rails db:chatwoot_prepare && exec bundle exec rails s -p 3000 -b "::"'`
- **Health check:** /api
- **Public domain:** Yes

### n8n-primary https://devicons.railway.app/n8n

- **Image:** n8nio/n8n:2.46.4
- **Health check:** /healthz
- **Public domain:** Yes

### redis https://devicons.railway.app/redis

- **Image:** redis:7.4-alpine
- **Start command:** `sh -c 'exec docker-entrypoint.sh redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes --dir /data --bind "* -::*" --protected-mode no'`

### sidekiq https://cdn.jsdelivr.net/gh/selfhst/icons/webp/sidekiq.webp

- **Image:** chatwoot/chatwoot:v4.19.1
- **Start command:** `bundle exec sidekiq -C config/sidekiq.yml`

### postgres-n8n https://devicons.railway.app/postgres

- **Image:** postgres:17-alpine

### postgres-chatwoot https://devicons.railway.app/postgres

- **Image:** pgvector/pgvector:0.8.7-pg17

## Buckets

- **chatwoot-storage**

## Documentation

# Deploy and Host Chatwoot + n8n with Railway

Chatwoot + n8n is a ready-to-run stack for building AI agents on WhatsApp and other channels. Chatwoot is the open-source omnichannel inbox where your team sees and answers every conversation. n8n is the workflow engine where your AI agent, automations and integrations live. Both come pre-wired over Railway's private network.

## About Hosting Chatwoot + n8n

This template deploys 7 services and 1 storage bucket:

- **Chatwoot** (web app) and **Sidekiq** (background jobs), with attachments stored in a Railway bucket
- **n8n primary** (editor and webhooks) and **n8n worker** (executions in queue mode)
- **Postgres with pgvector** for Chatwoot and a separate **Postgres** for n8n, both with volumes
- **Redis**, shared by Chatwoot (db 0) and the n8n queue (db 1), with a volume

All passwords and encryption keys are generated at deploy time. Only Chatwoot and the n8n editor get public domains; databases and Redis stay on the private network.

**Requirements:** Railway Hobby plan or higher. The stack needs about 2 GB of RAM, so it does not run on the free trial.

**After deploying:**
1. Open `https:///installation/onboarding` to create the admin account (public sign-up is disabled).
2. Open your n8n domain and create the owner account.
3. In Chatwoot, add a WhatsApp Cloud inbox with your Meta credentials, then connect an Agent Bot that points to an n8n webhook.
4. Optional: set `GENERIC_TIMEZONE` and `TZ` on both n8n services to your timezone.

## Common Use Cases

- AI customer service agent on WhatsApp with human handoff in Chatwoot
- Sales and lead-qualification bots that sync to your CRM through n8n
- One shared inbox for WhatsApp, Instagram, website chat and email, with automations on top

## Dependencies for Chatwoot + n8n Hosting

- A Meta Business account with a WhatsApp Cloud API number (for the WhatsApp channel)
- An API key from your AI provider of choice, used inside n8n

### Deployment Dependencies

- Chatwoot: https://github.com/chatwoot/chatwoot
- n8n: https://github.com/n8n-io/n8n
- WhatsApp Cloud API: https://developers.facebook.com/docs/whatsapp/cloud-api

## Why Deploy Chatwoot + n8n on Railway?

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 Chatwoot + n8n 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.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/chatwoot-n8n-whatsapp-ai-agent
