Prompt
How do I route critical app errors to on-call in Slack?
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
A good pattern is:
-
Detect critical errors in your app
- Catch unhandled exceptions, failed background jobs, or error-rate thresholds.
- Classify severity so only truly urgent issues trigger paging.
-
Send the alert to an incident channel in Slack
- Create a dedicated channel like
#on-call-alerts. - Use a Slack Incoming Webhook or a bot token to post messages there.
- Include:
- app/service name
- severity
- error summary
- environment
- timestamp
- link to logs/trace/dashboard
- the current on-call person if you can resolve it
- Create a dedicated channel like
-
Make Slack route to the actual on-call person
- Best options:
- Slack Workflow / automation that posts in
#on-call-alerts - Ops tool integration like PagerDuty, Opsgenie, Splunk On-Call, etc., which can then notify the on-call user in Slack
- Slack user group mentions like
@oncallif you maintain a rotating alias
- Slack Workflow / automation that posts in
- Best options:
-
Trigger direct notification
- In the message, mention the user group or individual:
<!subteam^S12345678>for a user group mention
- Or have your incident tool escalate to:
- Slack DM
- mobile push
- phone call/SMS for highest severity
- In the message, mention the user group or individual:
-
Add noise controls
- Deduplicate repeated errors
- Rate-limit alerts
- Only page on:
- production
- customer-facing impact
- repeated failures
- no automatic recovery
- Send lower-severity issues to a normal channel, not on-call.
Simple implementation example
If your app already has error reporting, add a Slack webhook for critical events:
- App catches critical error
- App posts to Slack webhook:
:rotating_light: Critical error in checkout-serviceEnvironment: prodError: payment gateway timeoutOn-call: @oncall
Recommended setup
If you want this to be reliable and maintainable:
- Use Sentry / Datadog / CloudWatch / Stackdriver to detect critical errors
- Route to PagerDuty/Opsgenie
- Integrate PagerDuty/Opsgenie with Slack
- Alert in Slack channel and DM the active on-call person
If you tell me your stack (e.g. Node/Python/Ruby, and whether you use PagerDuty or just Slack), I can give you a concrete setup and sample code.