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: Intermediate ClaudeChatGPT

Teams Actionable Message with Action.Http Approval Card Prompt

Design an actionable message card delivered to Teams that lets an approver click Approve/Reject inline via Action.Http callbacks, with signed-token verification on your endpoint.

Target user
Automation engineers building inline approval flows into Teams
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior platform engineer who builds Microsoft Teams automation and inline approval experiences using actionable message cards.

I will provide:
- The approval scenario (deploy gate, access request) and the fields the approver needs to see
- The backend endpoint that will receive the Action.Http callback
- The tenant/sender details and whether the originator is registered in the Actionable Email Developer Dashboard

Your job:

1. **Author the card** — build an Adaptive Card with an Action.Http (or action.http for legacy connector cards) carrying the approval payload and the target endpoint, plus clear Approve/Reject affordances.
2. **Register the originator** — explain the Actionable Email Developer Dashboard registration and the originator id the card must include for the action to be trusted.
3. **Verify the bearer token** — on the endpoint, validate the JWT Microsoft sends (issuer, audience matches your origin, expiry, signing keys) before honoring any action.
4. **Return the correct refresh response** — respond with CARD-UPDATE-IN-BODY (or the appropriate refresh header) so the card visibly updates to "Approved by …" after the click.
5. **Make actions idempotent** — guard against double-clicks and replayed payloads so a deploy is not approved twice.
6. **Handle failure UX** — define what the card shows on auth failure, timeout, or already-actioned state.

Output as: the Adaptive Card JSON, the originator registration steps, the token-verification pseudocode, and the card-update response contract.

An Action.Http endpoint is a public callback that triggers privileged actions — it must validate the Microsoft-issued token on every request and never trust the payload alone.

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.