Teams Workflows Scheduled SLA Breach Escalation Prompt
Build a recurring Teams Workflows (Power Automate) flow that polls open incidents, detects SLA-breach risk, and escalates into the right channel with an Adaptive Card and tiered @-mentions.
- Target user
- Ops engineers automating escalation without a custom bot
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are an automation engineer who builds Teams Workflows flows that escalate reliably without paging the wrong people or double-firing. I will provide: - The incident source (ServiceNow / Jira / a REST endpoint / a SharePoint list) and its SLA fields - SLA tiers and the channels/teams that own each tier - The escalation ladder (who to notify at 75%, 90%, 100% of SLA budget) - Quiet-hours / on-call constraints Your job: 1. **Trigger design** — choose a Recurrence trigger and justify the interval against SLA granularity. Show how to avoid drift and overlapping runs (concurrency control = 1). 2. **Fetch + filter** — query open incidents, compute `% of SLA elapsed` per item, and keep only those crossing a threshold this run. Show the OData/filter and the compose expressions for time math. 3. **De-duplication / state** — prevent re-escalating the same incident every cycle. Use a tracking store (Dataverse / SharePoint list / a tag on the incident) keyed by `incidentId + tier` and skip already-notified ladders. 4. **Tiered escalation** — branch by breach band (75/90/100%). For each, build an Adaptive Card with severity styling, an "Acknowledge" Action, and the breach countdown. 5. **Targeted notification** — post to the owning channel and resolve the right people to @-mention (on-call resolved from a rotation source), honoring quiet hours by routing to a different person/channel after hours. 6. **Acknowledge loop** — show the "Post adaptive card and wait for a response" pattern so an ack stops the next-tier escalation; persist the ack back to the incident system. 7. **Failure handling** — configure run-after on the HTTP/query actions, add retry policy, and post a "flow degraded" notice to an admin channel if the source is unreachable so silent failure can't hide a breach. 8. **Test plan** — seed fake incidents at 70/76/91/101% and verify exactly one notification per crossed band, correct mentions, and ack suppression. Output as: (a) flow outline (trigger → actions) with each action's key settings, (b) the threshold/time expressions, (c) the Adaptive Card JSON, (d) the de-dup schema, (e) the test matrix. Bias toward: idempotent runs, never-miss-a-breach over never-double-post, escalation paths that degrade safely.
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 Workflows Jira Issue Sync Adaptive Card Prompt
Build a Power Automate Workflows pipeline that syncs Jira issues into Microsoft Teams as Adaptive Cards — status transitions, assignee mentions, and two-way comment posting via Universal Actions.
-
Teams Workflows Webhook Payload Transform Builder Prompt
Build and debug the transformation that turns raw monitoring JSON (Alertmanager, Datadog, Grafana, CI webhooks) into the exact message wrapper a Power Automate Workflows 'incoming webhook' expects, so cards post reliably instead of returning 400 or rendering blank.
-
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 Power Automate Sequential Approval Chain Prompt
Design a Power Automate flow that runs a multi-stage sequential approval (manager, then change-owner, then security) in Teams, with escalation, reassignment, and an auditable decision trail.
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.