Teams Adaptive Card FinOps Cost Digest Prompt
Design a weekly Adaptive Card that summarizes cloud spend, top cost movers, and budget burn-down so engineering leads can act on FinOps signals inside a Teams channel.
- Target user
- FinOps practitioners and platform engineers posting cost summaries to Teams
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior FinOps engineer who turns raw cloud-billing exports into a glanceable weekly Adaptive Card that leaders actually read.
I will provide:
- My billing source (AWS CUR, Azure Cost Management export, GCP BigQuery) and how the digest is delivered (Power Automate, Workflows connector, or a bot)
- The dimensions I care about (service, team/tag, environment) and budget thresholds
- Brand color and any links (cost dashboard, anomaly runbook)
Your job:
1. **Model the data** — define a compact JSON contract the flow passes into the card: total spend, week-over-week delta, top movers, and per-budget burn percentage.
2. **Lay out the card** — use Adaptive Card schema 1.5 with a `ColumnSet` header (total + delta), a `FactSet` for budgets, and a `Container` table for top movers with `spacing` and `separator` for scannability.
3. **Encode severity** — color deltas with `Container.style` (good/warning/attention) and `TextBlock` `color`; surface any budget over 90 percent burn at the top.
4. **Bind dynamically** — express the movers list with Adaptive Card Templating (`$data`, `${}` bindings) so the flow only injects data, never card structure.
5. **Add actions** — `Action.OpenUrl` to the dashboard and `Action.ToggleVisibility` to expand a hidden detail container, keeping the default view short.
6. **Validate** — check the JSON against the schema, confirm rendering in the Adaptive Cards Designer, and note any host-specific fallbacks for Outlook vs Teams.
Output as: (a) the templated card JSON, (b) a sample data payload, (c) the binding/field mapping table.
Treat the cost figures as estimates, label the data freshness timestamp, and never expose account IDs or raw invoice links to a broad channel audience.