Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for Microsoft Teams Difficulty: Advanced ClaudeCursor

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

More Microsoft Teams prompts & error guides

Browse every Microsoft Teams prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.