Typebot on Railway: self-host a visual chatbot builder
Short answer: Typebot is a visual chatbot builder: you drag blocks onto a canvas to make conversational forms, lead-capture bots and AI assistants, then embed them on a website or connect them to WhatsApp. Tracklayer’s template runs Typebot 3.19.1 on Railway with its builder and viewer, PostgreSQL 18, Redis 8.2 and SeaweedFS for files. Typebot signs people in with e-mailed codes, so the template adds a small mail relay that works on every plan, even without SMTP.
Deploy Typebot on RailwayWhen Typebot makes sense
Typebot fits when you want a chat-style form or bot on your own infrastructure instead of a hosted form tool. The template documentation lists uses such as:
- lead capture and qualification bots embedded on a website,
- conversational forms and quizzes that write results to Google Sheets or webhooks,
- customer-support and FAQ assistants backed by OpenAI or other AI blocks,
- WhatsApp bots through the official Cloud API,
- internal intake flows that hand data to n8n, Make or Zapier.
If you need classic surveys with NPS dashboards and in-app targeting rather than chat flows, see the Formbricks guide. For a shared support inbox where humans answer, the Chatwoot guide is a better match. More about the software is on the Typebot app page.
What the template deploys
| Service | Source | Role | Public |
|---|---|---|---|
| Builder | baptistearno/typebot-builder:3.19.1 plus start script and mail relay |
Bot editor, results, workspaces; runs migrations | yes |
| Viewer | baptistearno/typebot-viewer:3.19.1 plus start script |
Serves published bots and the chat API | yes |
| Files | SeaweedFS 4.53 plus start script | S3 file store on a volume; anonymous read of public/ only |
yes (file URLs) |
| Postgres | postgres-ssl:18.6 |
All Typebot data; volume | no |
| Redis | redis:8.2.11 |
Sign-in rate limiting, WhatsApp media; volume | no |
The Typebot images are pinned by digest. Builder, Viewer and Files have healthchecks. The Builder runs prisma migrate deploy in a retry loop for up to 15 minutes before it starts serving, so it does not come up against a database that is not ready.
Files use SeaweedFS because Typebot’s S3 client sends path-style requests, which new Railway Buckets reject. The start script creates two identities: Typebot’s key pair, limited to its bucket, and anonymous read for public/ only. Bucket listings and private/ reads without a signed link return 403.
First sign-in
- Enter your e-mail in
ADMIN_EMAILwhen you deploy. - Open the Builder service’s URL and enter that e-mail.
- Without
RESEND_API_KEY, open the Builder service’s Deploy Logs and search forSign-in code. Type the code, which is valid for 5 minutes, or open the printed link. - You land in a workspace on the UNLIMITED plan. New workspaces of other users get
DEFAULT_WORKSPACE_PLAN(FREE by default).
E-mail and sign-in options
Railway allows outbound SMTP only on the Pro plan, and Typebot needs e-mail for sign-in codes and invitations. The template gives you three paths:
- Logs (default): with no e-mail settings, the relay prints codes and links in the Builder logs.
- Resend: set
RESEND_API_KEYon Builder and setNEXT_PUBLIC_SMTP_FROMto an address on a domain you verified in Resend. The defaultonboarding@resend.devsender only reaches the e-mail address of your Resend account. - SMTP on Pro: set
SMTP_HOST,SMTP_PORT,SMTP_USERNAME,SMTP_PASSWORDandSMTP_SECURE; the relay is then not used.
GitHub or Google sign-in also works: create an OAuth app with the callback {builder-url}/api/auth/callback/github (or /google) and set the client id and secret on Builder.
To add people, invite them to a workspace or bot. Without a working e-mail option, an invited person can still sign in, and their code appears in the Builder logs for you to pass on.
Domains and scaling
Add a domain to Builder and set NEXTAUTH_URL on Builder. Add one to Viewer and set NEXT_PUBLIC_VIEWER_URL on both Builder and Viewer, then redeploy both. Builder and Viewer are stateless; add Viewer replicas for heavy bot traffic.
Data and backups
Bots, results and workspaces are in Postgres; uploaded files are on the Files volume. The template has no scheduled backup, so back up Postgres yourself, at least before upgrades; the Postgres backups guide covers the options. Keep ENCRYPTION_SECRET safe: it encrypts stored credentials, is shared by Builder and Viewer, and must not change after first use.
Cost
Measured idle on Railway on 2026-11-24, after sign-in, a bot with an uploaded image, a published chat and a redeploy:
| Service | Idle RAM | Typical RAM |
|---|---|---|
| Builder | 0.41 to 0.56 GB | 0.6 to 0.8 GB |
| Viewer | 0.27 to 0.30 GB | 0.3 to 0.5 GB |
| Files | 0.09 to 0.11 GB | 0.15 GB |
| Postgres | 0.06 to 0.08 GB | 0.1 to 0.3 GB |
| Redis | 0.03 GB | 0.03 GB |
That is about 1.1 GB idle in total with near-zero idle CPU. The template documentation puts it at about $11 a month idle, and the author estimates $15 to $20 a month with real traffic, plus volumes. Every service stays under the Trial plan’s 1 GB limit; Hobby is recommended. See Railway pricing for how plans work.
Upgrades
The Typebot images are pinned by digest in services/*/Dockerfile. To upgrade, move both images to the same new release, back up Postgres and redeploy; the Builder applies migrations on start.
Limits and licence
- Webhook preview: the template generates
WEBHOOK_RELAY_SECRETfor webhook blocks, but listening for webhooks in the builder’s preview needs a PartyKit worker on Cloudflare, which is not included. - Resend: the forwarding is implemented but was not tested with a real Resend key.
- Typebot licence: Functional Source License 1.1 with an Apache 2.0 future licence. Typebot is fair-source, not open-source. Internal use, non-commercial education and research, and professional services for a licensee are permitted; making Typebot available to others as a competing commercial product or service is not. Each release becomes Apache-2.0 two years after it ships. Read the full text in the upstream repository, and ask a lawyer if your use is close to the line.
- Other parts: SeaweedFS Apache-2.0, PostgreSQL License, Redis 8.2 under RSALv2, SSPLv1 or AGPLv3. The template’s own scripts are MIT.
- Affiliation: this community template is not affiliated with or endorsed by Typebot or Railway.
Related
The template page lists the services and variables. To process bot results in workflows, see the n8n queue mode guide. For WhatsApp messaging outside Typebot, see the Evolution API guide. Typebot’s configuration reference lists every environment variable. More walkthroughs are under guides.
FAQ
How do I sign in to Typebot without SMTP?
Enter your e-mail in ADMIN_EMAIL when you deploy, open the Builder URL and enter that e-mail. Without RESEND_API_KEY, the 6-digit code is printed in the Builder service's Deploy Logs; search for 'Sign-in code'. It is valid for 5 minutes. With a Resend API key the code is e-mailed over HTTPS instead, on any Railway plan.
Can anyone sign up on my instance?
No. DISABLE_SIGNUP is true by default, so only ADMIN_EMAIL and people you invite to a workspace or bot can create accounts. Sign-in requests for other addresses are refused and no code is generated.
Where are bot images and visitors' uploads stored?
On the Files service, which runs SeaweedFS with a volume. Bot images and avatars under public/ are readable by URL; visitors' uploads under private/ are only served through Typebot's signed links. Keep the Files public domain, because published bots load images from it.
What does it cost to run?
Measured idle on Railway, the five services used about 1.1 GB of RAM in total with near-zero idle CPU. The template documentation puts that at about $11 a month idle, and the author estimates $15 to $20 a month with real traffic, plus volumes.
Can I use Typebot for my business?
The template's NOTICE lists Typebot under FSL-1.1-Apache-2.0. Building and hosting bots for your own business is a permitted purpose; offering Typebot to others as a competing commercial service, such as reselling hosted workspaces, is not. Each release becomes Apache-2.0 two years later. This is a summary, not legal advice. The template is a community project, not affiliated with Typebot or Railway.