---
title: "Deploy Chatwoot - All In One (PGVector)"
description: "Template for Chatwoot with WhatsApp, Email and Automation"
category: "Other"
url: https://railway.com/deploy/chatwoot-all-in-one-pgvector
---

# Deploy Chatwoot - All In One (PGVector)

Template for Chatwoot with WhatsApp, Email and Automation

**[Deploy Chatwoot - All In One (PGVector) on Railway](https://railway.com/template/chatwoot-all-in-one-pgvector)**

- **Creator:** John-Henrique's Projects
- **Category:** Other
- **Total deploys:** 49

## Template content

### Chatwoot https://i.imgur.com/2kEnzGv.png

- **Image:** ghcr.io/railwayapp-templates/chatwoot:Community
- **Start command:** `/bin/sh -c "while ! pg_isready -h $PGHOST -p $PGPORT; do :; done; bundle exec rails db:chatwoot_prepare && bundle exec rails db:migrate && multirun \"bundle exec sidekiq -C config/sidekiq.yml\" \"bundle exec rails s -b 0.0.0.0 -p $PORT\""`
- **Health check:** /api
- **Public domain:** Yes

### Redis https://devicons.railway.app/Redis?variant=light

- **Image:** railwayapp/redis:7.2.5

### pgvector https://devicons.railway.app/i/postgresql.svg

- **Image:** pgvector/pgvector:pg16
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`
- **Public domain:** Yes

## Documentation

# Deploy and Host Chatwoot - All In One (PGVector) on Railway

Chatwoot is an open-source, self-hosted customer engagement suite. This "All In One" template provides a simplified, modern deployment of Chatwoot that comes pre-configured with **PGVector** support. It is designed to be the easiest way to get the latest version of Chatwoot running with full support for AI features and vector embeddings right out of the box.

## About Hosting Chatwoot - All In One (PGVector)

Hosting this version of Chatwoot on Railway streamlines the typical microservices complexity into a cohesive "All In One" stack. Unlike standard installations that require complex orchestration, this template optimizes the setup by pre-configuring the necessary environment for Rails, Sidekiq, and the database.

Crucially, it provisions a **PostgreSQL database with the `pgvector` extension enabled**. This is a requirement for Chatwoot's newer AI capabilities, such as automated responses and conversation summaries, which rely on vector embeddings. This setup handles the web server, background workers, and data persistence seamlessly.

## Common Use Cases

- **Omnichannel Support:** Centralize conversations from WhatsApp, Email, Website, and Telegram in a single dashboard.
- **AI-Powered Agents:** Leverage the included PGVector support to run advanced AI chatbots and agent assistants that require vector databases.
- **Unified Team Inbox:** Manage customer support teams with features like assignment rules, private notes, and canned responses.

## Dependencies for Chatwoot - All In One (PGVector) Hosting

- **PostgreSQL (with pgvector):** A postgres instance with the vector extension installed (handled automatically by this template).
- **Redis:** Used for caching and background job processing.
- **SMTP Server:** (Optional but recommended) For sending email notifications to agents and customers.
- **Object Storage (S3/MinIO):** (Optional) For storing attachments and avatars persistently.

### Deployment Dependencies

- **SMTP Service:** You will need an external SMTP provider (like Resend, SendGrid, or Mailgun) if you wish to enable email notifications.
- **OpenAI API Key (Optional):** To fully utilize the PGVector capabilities for AI features, you will need an API key from OpenAI.

### Implementation Details

This template utilizes the "All In One" strategy to reduce resource overhead while maintaining high performance. It explicitly configures the PostgreSQL service to include the `vector` extension, ensuring compatibility with Chatwoot's `conversation_embeddings` features.

## Why Deploy Chatwoot - All In One (PGVector) 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 - All In One (PGVector) 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

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/chatwoot-all-in-one-pgvector
