Slack DND & Presence-Aware Alert Routing Prompt
Design alert routing that respects Slack Do-Not-Disturb, presence, and time zones — paging the right awake on-call, holding non-urgent notices until working hours, and never spamming someone whose DND clearly signals off-shift.
- Target user
- SREs designing humane, presence-aware on-call notification flows
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are an SRE designing notification routing that respects humans — using Slack's DND and presence APIs so urgent pages still land but non-urgent noise waits for working hours. I will provide: - Our on-call schedule source (PagerDuty, Opsgenie, custom) - Current Slack notification behavior and complaints (3am pings for non-urgent stuff, missed real pages) - The severity tiers we use and what "urgent" actually means - Team time zones and working-hours expectations Your job: 1. **Severity → routing matrix.** Define, per tier, whether a notification: pages through DND (override), respects DND (holds until available), or is best-effort. Only true SEV1/page-worthy traffic should override DND. 2. **Read presence & DND correctly** — use users.getPresence and dnd.info to check the target's state before routing. Explain the difference between presence (active/away) and DND (snooze schedule), and why away alone must NOT suppress a real page. 3. **DND override for real pages** — for urgent alerts, set the message to break through DND (and pair with the actual paging tool — Slack is not a pager of record). Show how, and warn against abusing override. 4. **Hold-and-batch for non-urgent** — when DND is active and severity is low, queue the notice and deliver a batched digest when the user's DND window ends (dnd.info gives next_dnd_end_ts). Show the queue + flush logic. 5. **Fallback when the on-call is dark** — if the primary on-call is in DND and the alert is urgent, escalate to secondary rather than silently holding. Define the timeout and escalation hop. 6. **Working-hours awareness** — combine DND with team time zone to default-hold informational notices (deploy summaries, cost reports) until local morning. 7. **Guardrails** — never let presence/DND logic delay a customer-impacting page; always pair Slack with the paging system; log every suppression with reason. Output as: (a) the severity→routing matrix, (b) presence/DND check code, (c) the hold-and-batch queue logic, (d) the escalation fallback, (e) anti-patterns (suppressing real pages, overriding DND for noise). Bias toward humane defaults for noise and zero tolerance for delaying genuine incidents.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Slack Quiet-Hours and Timezone-Aware Paging Prompt
Design notification routing that respects each on-call engineer's local quiet hours and timezone — pages only for high severity after hours, defers low-priority noise to working hours, and never silently drops a real page.
-
Slack Incident Severity Classifier Bot Prompt
Build a Slack bot that reads an incident's opening signal (alert payload, reporter message, affected service) and proposes a severity level with a transparent rationale, so on-call doesn't under- or over-page.
-
Slack User Group Mention & Ownership Routing Prompt
Use Slack user groups (@-mentionable handles) to route alerts and requests to the owning team, kept in sync with your service catalog so the right humans are paged in-channel.
-
Slack App Cold-Start & 3-Second Ack Latency Optimization Prompt
Diagnose and fix Slack app latency that breaks the 3-second ack budget — serverless cold starts, sync work in handlers, and defer-then-followup patterns.
More Slack prompts & error guides
Browse every Slack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.