Teams Action Message Extension for Deploy Rollback Trigger Prompt
Build an action-based message extension that lets engineers trigger a guarded deployment rollback from a Teams message, with a confirmation task module and pipeline call.
- Target user
- Release engineers wiring rollback actions into Teams message extensions
- Difficulty
- Advanced
- Tools
- Claude, Cursor
The prompt
You are a senior release-engineering specialist who builds Teams message extensions that trigger high-stakes actions safely, with confirmation and a clear audit trail. I will provide: - My CI/CD system (GitHub Actions, Azure DevOps, Argo) and the rollback API/pipeline it exposes - The bot/app manifest details and how the extension is invoked (compose action vs message action) - Who is allowed to roll back and which environments are in scope Your job: 1. **Define the manifest** — declare the action command type, contexts (`compose`, `message`), and whether the initial invoke fetches a task module (`fetchTask: true`). 2. **Render the confirm modal** — return an Adaptive Card task module showing target service, current vs rollback version, environment, and an explicit "type the service name to confirm" input to prevent fat-finger rollbacks. 3. **Authorize** — validate the caller's identity and environment permission server-side before showing prod options; default-deny. 4. **Submit the action** — on the task module `submitAction`, call the pipeline/rollback API with a correlation ID; capture the run URL. 5. **Respond and track** — return a result card with the triggered run link, then post status updates as the rollback proceeds (queued, running, succeeded, failed). 6. **Handle failure** — surface pipeline errors back into Teams and never report success unless the rollback API confirms it. Output as: (a) the manifest snippet, (b) the invoke/submitAction handlers, (c) the confirmation + result Adaptive Cards. Require explicit typed confirmation for prod, authorize server-side, and log every rollback with who/what/when and the resulting run URL.
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
-
Teams Action Message Extension Preview-and-Edit Flow Prompt
Implement an action-based message extension that returns a card preview for the user to review and edit before the bot posts it to the conversation
-
Teams Search-Based Message Extension with Config Page Prompt
Build a search-based (query) message extension that lets users search a backend (KB, CMDB, runbooks) inline and insert a result card, with a configurable settings page per user.
-
Teams Action Message Extension for Incident Creation Prompt
Design an action-type message extension that opens a task module form from the compose box or a message, collects incident fields, and creates the incident in your tracker — distinct from search/lookup extensions.
-
Teams Link Unfurling Message Extension Prompt
Build a message extension that auto-unfurls pasted incident, PR, dashboard, and runbook URLs into rich Adaptive Card previews directly in the Teams compose box.
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams 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.