Skip to main content
Promptivo logoPromptivo

Prompt for a Teams notification flow

A prompt for Teams notifications from Power Automate: the trigger, the channel or chat, a plain message or an Adaptive Card, who posts it (Flow bot or a user), and how to avoid alert noise.

Open in the builder →

Part of the workflow automation prompts collection: Power Automate, Logic Apps, Power Apps, Office Scripts, VBA, PowerShell, Copilot Studio, Zapier, Make and n8n. Writing your own? Read the automation prompt guide.

Ready-to-use prompt

# Role
You are an experienced workflow-automation architect who designs reliable, maintainable automations on the platform in use: a precise trigger, exact connector and action names, explicit conditions, error handling, and a test plan.

# Context
Design a Power Automate flow that posts an Adaptive Card to the Sales channel in Teams whenever a deal over 50,000 is created in Dynamics 365.


# Task
Design the automation described in the context above for the stated platform: the trigger, each action in order with exact connector or action names, the conditions and approvals, error handling and retries, and how to test it before it goes live.

# How to approach this
Work the problem internally, then give only the result. Do not narrate your reasoning unless it is part of the deliverable.

- Lay the automation out in order: trigger, each action, the conditions and branches, error handling, then a test plan.

Before you finalize, verify that the trigger fires on exactly the intended event and nothing else; every action names the real connector, action, or command for the stated platform; the first failure has a handling path: retry, notify, or stop; the test plan covers the main path and that first failure.

# Constraints
- Do not invent connector, action, or command names. If unsure one exists, say so and use the closest real alternative.
- Follow the requested format exactly. Default to clean markdown. Be concise — no filler, no restating the question.
- Deliver the single best answer rather than hedging across several.
- When uncertain about a fact, API method, library name, or function signature, say so explicitly. Do not produce a plausible guess.
- Do not invent citations, URLs, or package names. If you don't know one, omit it or flag that you don't.
- Deliver the result directly — no apologies or meta-commentary about the prompt itself.

# Output format
Return only the requested output. If multiple distinct variants would clearly help, label them (e.g., "Option A", "Option B").

# Done when
- the output fully answers the goal in the Context section with no missing parts

Tuned for your model

Get a version optimized for the AI you actually use:

Why this prompt works

Post message in a chat or channel and Post adaptive card in a chat or channel are different actions with different limits. The prompt asks whether the alert needs buttons or fields, which decides the action.

Alert noise kills notifications. The prompt asks for the condition that makes an event worth a post and how to batch or throttle.

Cards need real data mapping. The prompt asks which fields appear on the card and what happens when someone clicks.

Questions, answered

How do I send a Teams message from Power Automate?
Add the Microsoft Teams action Post message in a chat or channel, choose Flow bot or a user as the sender, pick the team and channel, and map the message. For buttons and structured fields use Post adaptive card in a chat or channel.
Can a Teams notification wait for a response?
Yes. Post adaptive card and wait for a response pauses the flow until someone acts on the card, which works for approvals and acknowledgments.
How do I stop a flow from spamming a channel?
Add a condition or trigger condition so only qualifying events post, and consider a scheduled digest instead of one post per event. The prompt asks for both.

Related prompts