Railway

Deploy Railway Assistant

Send Railway alerts to Telegram with a lightweight, zero-dependency service

Deploy Railway Assistant

Just deployed

Deploy and Host Railway Assistant on Railway

Railway Assistant is a lightweight webhook relay that sends Railway deployment and project events directly to Telegram. It turns Railway webhooks into clean, readable notifications so you can monitor builds, failures, and releases without constantly checking the dashboard.

Built in Go with zero external dependencies, it’s designed to be fast to deploy, cheap to run, and easy to configure.


About Hosting Railway Assistant

Hosting Railway Assistant means deploying a small stateless HTTP service that listens for Railway webhook events and forwards them to Telegram using a bot.

After deployment, you connect your Railway project’s webhook to the service endpoint. From then on, deployments, failures, and runtime events are automatically formatted and pushed to your chat or team group.

The service is fully environment-variable driven — no database, no setup scripts, and no persistent storage required. Railway handles scaling and availability while the assistant focuses solely on event processing and notification delivery.


Common Use Cases

  • Deployment Alerts — Know immediately when a deploy succeeds or fails.
  • Team Notifications — Share production activity automatically in a Telegram group.
  • Release Visibility — Track branches, commits, and authors during active development.

Dependencies for Railway Assistant Hosting

  • A Railway project with Webhooks enabled
  • A Telegram Bot (created via BotFather)
  • A Telegram chat or group to receive notifications

Deployment Dependencies


Environment Variables

Railway Assistant is configured entirely through environment variables.
Most users only need the required variables — everything else controls message detail.

Required Variables

VariableWhen to UseDescription
TELEGRAM_ENABLEDAlwaysEnables Telegram notifications. Must be true for messages to send.
TELEGRAM_BOT_TOKENAlwaysToken provided by BotFather for your Telegram bot.
TELEGRAM_CHAT_IDAlwaysChat or group ID where alerts will be delivered.
PORTRailway defaultHTTP server port (Railway usually injects this automatically). Default: 8080.

Message Customization (Optional)

These control how much context appears in each notification.
All default to true.

VariableUse WhenDescription
INCLUDE_WORKSPACEMulti-project setupsShows workspace/project hierarchy.
INCLUDE_STATUSAlways recommendedDisplays deployment status (SUCCESS, FAILED, etc.).
INCLUDE_BRANCHActive development teamsIncludes Git branch name.
INCLUDE_COMMITRelease trackingShows commit message.
INCLUDE_AUTHORTeam environmentsDisplays commit author.

Disable fields if you want shorter or less noisy alerts.

Example:

INCLUDE_COMMIT=false INCLUDE_AUTHOR=false

Useful for high-frequency deployment environments.


Minimal Example Configuration

TELEGRAM_ENABLED=true TELEGRAM_BOT_TOKEN=your_bot_token TELEGRAM_CHAT_ID=123456789 PORT=8080


Implementation Details (Optional)

Railway Assistant exposes a single webhook endpoint:

POST /railway/alerts

Railway sends event payloads → the service parses them → formats Markdown messages → sends notifications via the Telegram Bot API.

Design goals

  • zero external dependencies
  • instant startup
  • minimal memory usage
  • production-safe defaults

Roadmap

Railway Assistant is intentionally small today, but planned improvements include:

  • Slack notifications
  • Discord integration
  • Additional messaging platforms
  • Usage and deployment reports
  • Smarter alert filtering and routing
  • Team-level notification policies

The goal is to evolve from a simple notifier into a lightweight Railway operations companion.


Why Deploy Railway Assistant 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 Railway Assistant 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.


Template Content

More templates in this category

View Template
NEW
SigOnly
Deploy SigNoz with a working demo app & config in one click

zoeyjones
View Template
OpenTelemetry Collector and Backend
OpenTelemetry Collector with Backend Stack

Melissa
View Template
pgweb | Postgres UI
View and query your Postgres instance with a sleek and minimalistic UI.

Cory "GH5T" James