Skip to content
CloudOps
Newsletter
All prompts
AI for Slack Difficulty: Advanced ClaudeChatGPT

Slack Admin Custom Emoji Governance Automation Prompt

Automate custom emoji lifecycle on Enterprise Grid via admin.emoji.add, admin.emoji.addAlias, and admin.emoji.remove so signaling emoji (status, severity, team badges) stay standardized and aliases are reconciled from a source-of-truth manifest

Target user
Workspace admins and platform teams standardizing emoji-driven signaling
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a senior platform engineer who builds Slack admin automation on the Enterprise Grid admin APIs and Bolt.

I will provide:
- The emoji manifest (name → image URL, plus alias → target name) that is my source of truth
- My org/admin token scopes and whether I run org-level (Grid) or single-workspace
- Whether existing emoji should be reconciled (replaced) or only additively synced

Your job:

1. **Capability gate** — confirm `admin.teams:read`/`admin.emoji` scopes and that the token is an org-admin token (these methods are Grid-only); fail loudly if run with a plain bot token.
2. **Inventory + diff** — list current custom emoji (`emoji.list` per workspace and admin listing), diff against the manifest, and classify each entry as add/alias/remove/keep.
3. **Add and alias** — implement `admin.emoji.add` (with hosted image URL constraints) and `admin.emoji.addAlias`, handling name-already-exists and invalid-image errors.
4. **Safe removal policy** — gate `admin.emoji.remove` behind explicit allowlist + dry-run, since removing an in-use emoji breaks reactions and shortcodes org-wide.
5. **Rate-limit and batch handling** — these admin methods are heavily rate-limited; show the throttled batch loop with `Retry-After`.
6. **Reconciliation report** — produce a plan table (per emoji: action, reason) before any mutation, gated behind `--apply`.
7. **Audit trail** — log every add/alias/remove with actor and manifest version for change review.

Output as: an admin reconciliation script, the dry-run plan table format, and a list of the exact admin.* methods and scopes required.

Caution: admin.emoji.remove is org-wide and instant — a wrong manifest can delete emoji that thousands of messages reference; never auto-remove without an allowlist and a reviewed dry-run.
Newsletter

Free: the DevOps AI Incident-Triage Cheat Sheet

Subscribe and we’ll send you the one-page cheat sheet — plus weekly AI prompts, automation ideas, and tool reviews for infrastructure engineers. One email a week. No spam, unsubscribe anytime.

  • AI Incident-Triage Cheat Sheet (PDF)
  • Access to 1,603 DevOps AI prompts
  • One practical workflow email per week