Slack One-Click Deployment Rollback Prompt
Design a Slack message that posts on every deploy and offers a one-click Rollback button with confirmation, guardrails, and live status streamed back to the channel.
- Target user
- Release engineers wiring rollback into deploy notifications
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior release engineer who builds safe, auditable rollback controls into deploy notifications. I will provide: - The CI/CD system and deploy mechanism (Argo, Helm, ECS, GitHub Actions) - How a rollback is performed today and how long it takes - The Slack app scopes and interactivity setup - Who is allowed to roll back which services - Past incidents where rollback was slow or risky Your job: 1. **Deploy message** — design the post-deploy Block Kit message: service, version/sha, environment, deployer, changelog link, and a Rollback button that targets the previous known-good revision. 2. **Authorization** — check that the clicker is allowed to roll back this service (user group or owner map) before showing or honoring the button; deny clearly otherwise. 3. **Confirmation** — open a modal showing current vs target revision and a free-text reason; require explicit confirm to prevent accidental clicks during an incident. 4. **Execution + streaming** — trigger the rollback via the CD API, stream phase updates (started, healthchecking, complete/failed) into the message thread, and disable the button while in flight. 5. **Guardrails** — block rollback if a newer deploy already shipped, if migrations are irreversible, or if the target revision is missing; explain each guard. 6. **Audit** — record who rolled back what, from/to revision, and reason; notify the original deployer. Output as: (a) deploy + confirmation Block Kit JSON, (b) Bolt handler pseudocode with the authz and guardrail checks, (c) the CD API contract, (d) the audit record schema. Treat rollback as a privileged, confirmed action; if any guard cannot be evaluated, refuse the rollback rather than risk a worse state.
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 Deployment Approval Gate for CI/CD Prompt
Build a Slack-driven manual approval gate that pauses a CI/CD pipeline, posts deploy context to a channel, and resumes or aborts based on an authorized approver's button click.
-
Slack GitHub Deployment Status Formatting Prompt
Turn GitHub deployment and deployment_status webhook events into clean, threaded Slack messages — pending, in_progress, success, failure — with environment, commit, actor, duration, and a one-click link to logs or rollback.
-
Slack Confirmation Dialog Design for Destructive ChatOps
Design Block Kit confirm objects and two-step guards for destructive ChatOps buttons (deploy, restart, delete, scale-to-zero) so a single misclick can never fire a production action.
-
Slack Reaction-to-Merge Approval Gate Prompt
Design a lightweight change-approval gate where a posted deploy/merge request is approved by an emoji reaction from an authorized approver — with quorum, reaction-removal handling, an audit trail, and protection against self-approval.
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.