Automate Heroku
On Heroku the things that go wrong quietly are crashed dynos, failed releases, and apps and add-ons nobody remembers paying for. Automations alert you when a dyno crashes or a release fails, list every app with its dyno formation each week, and total up add-on costs each month. Ask your AI assistant for the check you want, read through what it's going to do, and it keeps watching your apps from then on.
Try asking
Create a ClickRuntime automation: email me when any dyno of my Heroku app 'shop-api-prod' crashes, with the dyno name and time. Only send one email per crash.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in Heroku
Get alerted when a Heroku dyno crashes
When any dyno of your app enters a crashed state, you get one email about it.
See how it worksTell the team in Slack when a Heroku release fails
A failed release is posted to your team channel, so it isn't only the person who pushed who knows.
See how it worksGet a weekly list of your Heroku apps and dynos
Each Monday you see every app with its dyno types and counts, which makes forgotten apps easy to spot.
See how it worksGet a monthly report of Heroku add-on costs
On the 1st you receive every add-on across your apps with its plan and monthly price, with new ones highlighted.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Heroku, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Heroku 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 Heroku apps for crashed dynos and restart them, then tell me which ones restarted.
When a Heroku release is created on production, post the app, version and who deployed to Slack.
Every morning, take Heroku app errors and Sentry issues from the last day, have AI group them by likely cause, and post the summary to our #eng Slack channel.
Beyond chat
Have Heroku work when you're not in the chat
Instant
Get alerted when a Heroku dyno crashesThe moment it happens
On a schedule
Get a weekly list of your Heroku apps and dynosWeekly
Watches for changes
Tell the team in Slack when a Heroku release failsEvery 5 minutes
Setup
Connect Heroku
Heroku connects with a long-lived authorization token you create yourself, either from the Heroku CLI or in your account settings. You can limit it to read access.
Heroku
Developer / Hosting (PaaS)
- Run
heroku authorizations:create -d "ClickRuntime"and copy theTokenvalue, or create one in your Heroku account settings under Applications, Authorizations. - Use the
readscope for alerts and reports; usewriteonly if the automation should create a webhook on your app for instant dyno alerts. - Avoid
heroku auth:tokenfor this, since that token expires. - In the ClickRuntime dashboard, open Connections & secrets and save the token as a secret for Heroku.
Good to know
Heroku limits that affect automations
- Accounts that sign in through federated SSO can't create authorizations. Heroku suggests a separate non-SSO user in your org for this.
- Authorizations can be scoped to
read,writeorglobal; a read-only token can watch apps but not change them. - Instant dyno and release alerts need a Heroku webhook on the app, which takes a write-scoped token or a one-time CLI step. Otherwise the automation checks every 5 minutes.
- Add-ons on contract pricing have no list price in the API, so reports show them as "contract" instead of a figure.
FAQ
Questions about automating Heroku
What can ClickRuntime see in my Heroku account?
Will I hear about a crash straight away?
I log in to Heroku through SSO. Can I still connect?
How is the add-on cost report worked out?
Do these alerts use AI?
Is this a Heroku connector for ChatGPT or Claude?
Related pages
Keep exploring