---
title: "Deploy Typebot"
description: "Typebot chatbot builder with a mailbox, so sign-in works on any plan"
category: "Automation"
url: https://railway.com/deploy/typebot-2
---

# Deploy Typebot

Typebot chatbot builder with a mailbox, so sign-in works on any plan

**[Deploy Typebot on Railway](https://railway.com/template/typebot-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/typebot-2/manifest.json

- **Creator:** Dektion
- **Category:** Automation
- **Total deploys:** 2

## Template content

### Redis https://devicons.railway.com/i/redis.svg

- **Image:** redis:7.4
- **Start command:** `/bin/sh -c 'exec redis-server --requirepass "$REDIS_PASSWORD" --save "" --appendonly no'`

### Typebot https://raw.githubusercontent.com/baptisteArno/typebot.io/61056ff9a98082485add8111e901d3148ca358ef/apps/builder/public/images/logo.png

- **Image:** baptistearno/typebot-builder:3.19.0
- **Health check:** /signin
- **Public domain:** Yes

### Viewer https://raw.githubusercontent.com/baptisteArno/typebot.io/61056ff9a98082485add8111e901d3148ca358ef/apps/builder/public/images/logo.png

- **Image:** baptistearno/typebot-viewer:3.19.0
- **Health check:** /api/healthz
- **Public domain:** Yes

### Mailbox https://raw.githubusercontent.com/axllent/mailpit/ccb524a62b3a14b6a3fd55c1275a16945d10e36b/server/ui/mailpit.svg

- **Image:** axllent/mailpit:v1.31.4
- **Health check:** /readyz
- **Public domain:** Yes

### Postgres https://devicons.railway.com/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

## Documentation

# Deploy and Host Typebot on Railway

[Typebot](https://github.com/baptisteArno/typebot.io) is a visual builder for chatbots and conversational forms. You chain blocks for messages, questions, conditions and integrations (OpenAI, webhooks, Google Sheets, WhatsApp), then publish the bot as its own page or embed it on a site. This template runs Typebot 3.19.0, its builder and its viewer, on Postgres and Redis, plus a small mailbox that makes sign-in work on every Railway plan.

## About Hosting Typebot

Typebot signs you in with a 6-digit code sent by email, and it has no password login. Railway blocks outbound SMTP below the Pro plan, so on Trial and Hobby a usual SMTP setup never delivers that code and you can't get in. I added a Mailbox service (Mailpit) to the project: Typebot hands its emails to it over the private network, and you read them at `MAILBOX_URL` with a generated password. No email provider or account is needed.

Sign-up is closed. Only `ADMIN_EMAIL` can create an account, and it gets Typebot's unlimited plan; anyone else needs an invitation from your workspace. `ENCRYPTION_SECRET` is generated at deploy with the 32 characters Typebot requires, and Redis turns on Typebot's limit of one login-code request a minute.

Before publishing I tested it on Railway. I asked for a login code for `ADMIN_EMAIL`, read it in the Mailbox and signed in. From that session I created an API token, used it to build a bot through Typebot's REST API (a greeting, a question for your name, and a reply that uses it), published it, and chatted with it on the viewer. It asked for a name and answered "Nice to meet you, Railway." After restarting all five services I signed in again with a new code, and the bot was still there and still answered.

Idle, the five services used 0.82 GB of RAM (builder 0.44, viewer 0.30, Postgres 0.06, Mailbox and Redis 0.02 together), about $8 a month on Railway's usage pricing.

The tradeoff: every email Typebot sends lands in the Mailbox, including invitations and the emails your bots send with the Send Email block. People you invite get their codes there too, so you'd pass them on yourself. For real delivery on the Pro plan, point the `SMTP_*` variables on the Typebot service at your email provider (the Viewer reads them from there).

## Common Use Cases

- Lead capture on a website, with every answer saved as a result you can export or send to a webhook
- Quizzes, surveys and onboarding forms that branch on earlier answers
- Support bots that answer with OpenAI or another LLM, embedded as a chat bubble
- WhatsApp bots, with a Meta business account

## Dependencies for Typebot Hosting

Nothing beyond the template. File upload blocks and image uploads in the editor need S3-compatible storage: set `S3_ACCESS_KEY`, `S3_SECRET_KEY`, `S3_BUCKET` and `S3_ENDPOINT` on both the Typebot and Viewer services.

### Deployment Dependencies

- Typebot: https://github.com/baptisteArno/typebot.io
- Images: `baptistearno/typebot-builder:3.19.0`, `baptistearno/typebot-viewer:3.19.0`, `axllent/mailpit:v1.31.4`
- Configuration reference: https://docs.typebot.com/self-hosting/configuration

### Implementation Details

```
TYPEBOT_URL        # the builder: sign in with ADMIN_EMAIL
MAILBOX_URL        # login codes arrive here; MAILBOX_USER / MAILBOX_PASSWORD are on the Mailbox service
Viewer             # serves published bots at https:///
SMTP_*             # set on the Typebot service; the Viewer references them
```

If you give the viewer a custom domain, set `NEXT_PUBLIC_VIEWER_URL` to it on both services. Typebot's license is the Functional Source License: running it for yourself or your company is allowed, selling it as a hosted service that competes with Typebot is not.

## Why Deploy Typebot on Railway?

The builder, viewer, database and mailbox come up together on HTTPS, and you can sign in a few minutes after deploying without setting up email. Railway bills the RAM and CPU the bots use, with no per-chat pricing.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/typebot-2
