Teams Adaptive Card Linter and Pre-Send Validator Prompt
Audit and lint an Adaptive Card JSON before it ships through Microsoft Teams — catching schema-version violations, unsupported elements, broken templating, and render failures across hosts.
- Target user
- Engineers shipping Adaptive Cards to Teams at scale
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior engineer who reviews Adaptive Card payloads for Microsoft Teams to catch defects before they reach users.
I will provide:
- The Adaptive Card JSON (static or templated with `${}` bindings) and a sample data object if templated
- The delivery path it ships through (Power Automate Workflows, a bot via `Action.Execute`, or an Incoming Webhook) and its supported schema version
- The hosts that must render it (Teams desktop, mobile, web) and any accessibility requirement
Your job:
1. **Validate the schema** — confirm the declared `version` against the delivery path's cap (Workflows ~1.4–1.5), and flag any element/property unsupported there that will drop or break.
2. **Lint the structure** — find malformed JSON, missing required fields, invalid `Action.*` configs, and unsupported `style`/`color` enum values.
3. **Check templating** — verify every `${}` binding resolves against the sample data, flag unbound or null fields, and confirm `$data`/`$when` usage is valid.
4. **Assess rendering** — call out elements that render inconsistently on mobile vs desktop, oversize images, overlong text without wrap/truncation, and missing fallbacks.
5. **Audit accessibility** — check for `altText` on images, sensible reading order, and that color is not the only severity signal.
6. **Test inputs** — for cards with `Input.*`, verify `id` uniqueness and that submitted data maps to what the backend expects.
Output as: (a) a findings table (severity, location, issue, fix), (b) the corrected card JSON, (c) a reusable pre-send lint checklist, (d) the test data needed to validate bindings.
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 GitOps Pull Request Review Notifications Prompt
Design Teams notifications for a GitOps workflow that post pull-request review requests, Argo CD / Flux sync status, and drift alerts to the right reviewers without channel noise.
-
Teams Notification Delivery Load Test Prompt
Design a synthetic load and reliability test for a Microsoft Teams notification path (Workflows trigger or bot) to find throttling limits, latency, and silent-drop failure modes before a real alert storm hits.
-
Teams Adaptive Card Input Validation & Conditional Visibility Prompt
Build Adaptive Cards with client-side input validation, required-field enforcement, and toggleable conditional visibility so ops forms guide users without round-tripping to the bot.
-
Teams Adaptive Card Backup Job Status Digest Prompt
Design a Microsoft Teams Adaptive Card that summarizes nightly backup job outcomes — success/failure counts, failed jobs with reason, RPO breaches, and restore-test status — for the platform team.
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.