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
-
Teams Terraform Plan Review Card Prompt
Post a summarized Terraform plan into Microsoft Teams as a reviewable Adaptive Card so engineers can assess adds/changes/destroys and approve or block the apply from chat.
-
Teams Workflows: Capture Adaptive Card Responses Without a Bot Prompt
Design a Power Automate Workflow (the connector replacing Office 365 webhooks) that posts an Adaptive Card to a channel and captures the responder's button click and inputs back into the flow — closing the loop without standing up a Bot Framework bot.
-
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 Power Automate Access Request Approval Flow Prompt
Build a Power Automate flow that collects access requests from a Teams form, routes them for manager and resource-owner approval, and provisions access on approval.
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.