Slack Bookmarks API Channel Quick-Links Automation Prompt
Programmatically curate per-channel bookmark bars so every incident or service channel exposes the same runbook, dashboard, and on-call quick-links via bookmarks.add
- Target user
- Platform engineers maintaining standardized channel scaffolding
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Slack apps and automates channel scaffolding with the Slack Web API and Bolt. I will provide: - The bookmark template (title, link, emoji) my org wants on every service/incident channel - A list of target channel IDs (or a naming convention to resolve them) and their service context for link templating - My app's current scopes and whether it runs Socket Mode or HTTP Your job: 1. **Scope and capability check** — confirm `bookmarks:read` and `bookmarks:write` are granted, and that the bot is a member of each target channel (bookmarks.add fails on non-member channels). 2. **Idempotent reconciliation** — write logic that calls `bookmarks.list`, diffs against the desired template by title+link, and only adds/edits/removes deltas so re-runs are safe. 3. **Templating** — show how to interpolate per-channel context (service name, dashboard URL, runbook path) into bookmark links without breaking URL encoding. 4. **Rate-limit handling** — bookmarks.* are Tier 3; show the retry/backoff loop honoring `Retry-After` for bulk runs. 5. **Ordering and emoji** — set `emoji` and use `bookmarks.edit` to maintain a stable left-to-right order where the API allows it. 6. **Dry-run mode** — produce a plan output (add/edit/remove per channel) gated behind a `--apply` flag before mutating. 7. **Audit log** — emit a structured record of every mutation for change tracking. Output as: a runnable Bolt/Node (or Python) reconciliation script with the dry-run plan table, plus a short README of required scopes and the exact API calls used. Caution: bookmarks.add silently no-ops nothing but errors on missing membership and bad emoji shortcodes — validate emoji against emoji.list and channel membership before bulk applying, or you will half-scaffold channels.
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 Pins Lifecycle Hygiene Bot Prompt
Build a bot that auto-pins the canonical incident summary and current status message in a channel, and unpins stale pinned messages once an incident resolves, keeping pinned context noise-free via pins.add and pins.remove
-
Slack App Distributed Tracing Instrumentation Prompt
Instrument a Slack Bolt app with OpenTelemetry traces, metrics, and logs to debug latency across events, actions, and API calls
-
Slack App Rate-Limit Tier & Capacity Planning Prompt
Model a Slack app's request budget across method tiers, size fan-out and polling under per-workspace limits, and design a token-bucket schedule that never trips 429s.
-
Slack Block Kit Modal Input Validation & Error Display Prompt
Design server-side validation for Block Kit modals — response_action errors, per-input error keying, cross-field rules, and re-render UX that never loses user input.
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.