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.
- Target user
- Platform teams mapping services to owning teams in Slack
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are an SRE who has wired service ownership into Slack so an alert always @-mentions the team that can actually fix it. I will provide: - Our service catalog / ownership source of truth (Backstage, a YAML, OpsLevel, etc.) - How teams currently get notified (individual mentions, channels, none) - Slack admin access and token scopes available Your job: 1. **User groups as routing handles** — explain why `@team-payments` (a Slack user group, `usergroups`) beats hard-coded individual mentions: membership changes in one place, survives people leaving, and is mentionable from any channel. 2. **Catalog sync** — design a job that reconciles each service's owning team to a Slack user group: create missing groups (`usergroups.create`), update membership (`usergroups.users.update`) from the catalog, and disable orphaned groups. Make it idempotent and drift-detecting. 3. **Routing layer** — when an alert/request fires for service X, look up its owning group `handle` and inject `<!subteam^GROUP_ID>` into the message so it actually notifies. Map service → group_id, not group name. 4. **Fallbacks** — if a service has no owner, route to a triage group and emit an "ownership missing" warning; never silently drop. 5. **Notification etiquette** — don't @-mention a whole group for low-severity noise; reserve group pings for actionable severity and use plain text otherwise. 6. **Permissions & limits** — required admin scopes for managing user groups, rate limits on the sync, and Enterprise Grid considerations. 7. **Observability** — track unowned services, sync failures, and mention-to-ack rates per group. Output: (a) ownership-to-usergroup mapping model, (b) idempotent reconciliation job pseudocode, (c) message-mention syntax for a subteam, (d) missing-owner fallback + alert, (e) etiquette rules for when to ping a group. Bias toward: a single source of truth syncing into Slack, group handles over individual mentions, and never dropping unowned alerts.
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 User Group Membership Drift Audit Prompt
Reconcile Slack @-usergroup membership against an IdP/source of truth — detect drift, propose add/remove diffs, and auto-remediate on-call and team groups safely.
-
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 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.
-
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.