Deploy chatbot-whatsapp
WhatsApp Gateway + Evolution API with multi-LLM bots
chatbot-whatsapp
Just deployed
Just deployed
/var/lib/postgresql/data
Redis
Just deployed
/data
MySQL
Just deployed
/var/lib/mysql
evolution-api
Just deployed
/evolution/instances
Deploy and Host WhatsApp Gateway + Evolution API on Railway
One-click production stack: Evolution API (WhatsApp), Postgres, Redis, MySQL, and a ProfesIA-branded gateway UI with multi-LLM bots (Gemini, OpenAI, Claude, Groq).
About Hosting WhatsApp Gateway + Evolution API
This template provisions a full WhatsApp operations stack on Railway: Evolution API for WhatsApp sessions, a gateway UI for QR linking / chats / bots, plus Postgres, Redis, MySQL, and a persistent volume for device sessions.
Why Deploy WhatsApp Gateway + Evolution API
- Ship a production WhatsApp bot without managing Baileys servers yourself.
- Keep sessions across redeploys with a mounted volume.
- Run multi-LLM bots (Gemini, OpenAI, Claude, Groq) behind one gateway UI.
- Use private networking between gateway and Evolution, with reliable public webhooks for inbound messages.
Common Use Cases
- Customer support bots on WhatsApp
- Internal ops / notifications for teams
- Multi-instance WhatsApp linking with QR and reconnect flows
- Experimenting with Groq / Gemini / GPT / Claude replies on live chats
Dependencies for WhatsApp Gateway + Evolution API
Deployment Dependencies
| Service | Purpose |
|---|---|
| evolution-api | WhatsApp REST API (Baileys evoapicloud/evolution-api:v2.3.7) |
| Postgres | Evolution persistence |
| Redis | Evolution cache/sessions |
Volume /evolution/instances | QR/session files across redeploys |
| whatsapp-gateway | Manager UI + chatbot + chats + activity log |
| MySQL | Gateway data (instances, LLM keys, events) |
After deploy
- Open the whatsapp-gateway public URL.
- Log in with
DEFAULT_ADMIN_USER/DEFAULT_ADMIN_PASSWORDfrom the gateway Variables tab (password is auto-generated). - Optional: set
GEMINI_API_KEY,GROQ_API_KEY,OPENAI_API_KEY, orANTHROPIC_API_KEY— or add models in the UI (Modelos).- If
GROQ_API_KEYis set, the first migrate seeds working Groq chat models (openai/gpt-oss-20b,openai/gpt-oss-120b,qwen/qwen3.6-27b,qwen/qwen3.8-27b).
- If
- Create an instance → scan QR (auto-generated when disconnected) → enable the bot → pick a model.
Architecture
Browser → WhatsApp Gateway → Evolution API → WhatsApp
↑ │
public webhook Postgres + Redis
│
MySQL
Gateway ↔ Evolution API uses Railway private networking. Evolution webhooks call the gateway public URL so message events are reliable.
Security
AUTHENTICATION_API_KEYis generated with${{secret(64)}}and shared automatically.- Default admin password is generated with
${{secret(20)}}— change it after first login if you prefer. - Never commit real API keys to git.
Source
GitHub: ProfesIA-IA/chatbot-whatsapp
IaC: .railway/railway.ts
Template Content
chatbot-whatsapp
ProfesIA-IA/chatbot-whatsappRedis
redis:8.2MySQL
mysql:9.4evolution-api
evoapicloud/evolution-api:v2.3.7