Automate Railway
On Railway the things worth watching are deployments and services: a deploy that fails, a service that crashes, a volume filling up, or a bill creeping higher. ClickRuntime reacts to Railway's own events the moment they fire and runs scheduled jobs against your projects, such as a nightly restart or a Friday deploy log. Explain the job to your AI assistant in plain words, confirm the steps it lays out, and it carries on without you watching the dashboard.
Try asking
Create a ClickRuntime automation: give me a webhook link for my Railway project and email me whenever a deployment there fails or crashes, with the service name and a link.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in Railway
Get an email when a Railway deploy fails or crashes
As soon as a deployment in your project fails or crashes, an email tells you which service and what happened.
See how it worksGet Slack alerts for full volumes and high CPU or memory
When Railway flags a volume near capacity or a CPU or memory alert, the details are posted to your ops channel.
See how it worksSee your estimated Railway spend each week
Every Monday you get an email with each project's estimated usage so far this month.
See how it worksRestart a Railway service every night
Your service gets a fresh restart at a quiet hour, and you only hear about it if the restart fails.
See how it worksGet a Friday log of this week's deployments
At the end of the week you see every deployment in the project with its status, plus a count of how many succeeded and failed.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Railway, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Railway automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Every 10 minutes, check my Railway services and tell me if any deployment has crashed.
When a Railway deployment succeeds, post the service and commit message to Slack.
Every day, check Railway project usage and cost, log it in Google Sheets, and send me a Telegram alert if the month is on track to exceed my budget.
Beyond chat
Have Railway work when you're not in the chat
Instant
Get an email when a Railway deploy fails or crashesThe moment it happens
On a schedule
See your estimated Railway spend each weekWeekly
Instant
Get Slack alerts for full volumes and high CPU or memoryThe moment it happens
Setup
Connect Railway
Railway connects with a token you create in your Railway account. A workspace token is the best fit for automations because it covers that workspace's projects and nothing else.
Railway
Developer / Hosting
- In Railway, open Account Settings and go to Tokens.
- Choose Create Token and pick the workspace the automations should use. Leave the workspace empty only if you need an account-wide token.
- For a single project, you can instead create a token under that project's Settings, then Tokens.
- Copy the token. Account and workspace tokens are sent as
Authorization: Bearer <token>. - In the ClickRuntime dashboard, open Connections & secrets and save the token as a secret for Railway.
Good to know
Railway limits that affect automations
- Railway's API is GraphQL. A bad or expired token still returns HTTP 200, with the problem in an
errorsarray, so automations check that array rather than the status code. - Crash, failed deploy and resource alerts arrive through webhooks that you add per project, so each project you want covered needs its own webhook.
- Queries about your own user only work with an account token. Workspace and project tokens are limited to what they were created for.
- Older Railway docs call workspace tokens team tokens. They are the same thing.
FAQ
Questions about automating Railway
What can ClickRuntime do in my Railway projects?
Are deploy failures reported in real time?
Which token should I use?
Can it restart a service for me?
Do Railway automations need AI?
Is this a Railway connector for ChatGPT or Claude?
Related pages
Keep exploring