Website Change Alerts to Microsoft Teams: Workflows Webhook Setup
Post AyeWatch website change alerts to a Teams channel now that Office 365 connectors are retired: a Workflows webhook, a signed relay that builds an Adaptive Card, and the limits.
By AyeWatch Team7 min read
Short answer: To get website change alerts in Microsoft Teams, create a Workflows webhook on the channel and point AyeWatch's signed webhook at a small relay that turns each alert into an Adaptive Card. Microsoft retired the old Incoming Webhook connector in May 2026, and AyeWatch has no Teams app of its own. Webhooks need a paid plan.
AyeWatch is an AI monitoring app for the internet, web pages and social media. A web page monitor reads a public page on a schedule, compares it with the last read and sends only the changes that match your rule, as a short summary with a link to the source.
What changed in Teams in 2026
Microsoft retired Office 365 Connectors in Teams, including the connector-based Incoming Webhook, in May 2026. After several extensions, its developer blog set the rollout for May 18 to May 22, 2026. A connector URL that used to post cards to a channel stopped working, so a guide that tells you to add the Incoming Webhook app is out of date.
The replacement is the Workflows app, which runs on Power Automate. In a channel, select More options (...) next to the channel name, then Workflows, and pick a template such as Send webhook alerts to a channel. After you save it, the workflow gives you a webhook link that accepts an HTTPS POST from any service. Posts appear under the Workflows bot identity, so the alerts cannot carry their own name or icon.
How the pieces fit
AyeWatch posts one JSON body per alert to the single webhook URL on your account. The Teams template expects a different body: type set to message and an attachments array that holds an Adaptive Card with the content type application/vnd.microsoft.card.adaptive. AyeWatch's payload has headline and content and no attachments, and the workflow has no way to check the X-AyeWatch-Signature header. A relay in the middle does both jobs: it rejects anything unsigned and reshapes the rest into a card.
This is a made-up alert in the shape of the webhook docs:
{
"topic_id": 8102,
"topic_name": "https://haldenanalytics.example/pricing",
"update_id": 140233,
"headline": "Halden Analytics raises the Team plan to $49 per seat",
"content": "The pricing page lists the Team plan at $49 per seat per month, up from $39. The free trial is still 14 days.",
"created_at": "2026-12-07T08:12:00Z",
"evidence": [
{ "quote": "Team $49 per seat / month", "source_url": "https://haldenanalytics.example/pricing" }
]
}
Sample rule: Alert me when Halden Analytics changes a plan price, a seat limit or the free trial length on its pricing page. Ignore testimonial and FAQ edits.
The relay
This Cloudflare Worker checks the signature on the raw bytes, skips an update it already posted, builds the card and sends it to the workflow. Store AYEWATCH_SECRET and TEAMS_WORKFLOW_URL as Worker secrets. TEAMS_ROUTES is optional JSON such as {"8102": "https://..."} that sends a monitor to another channel's workflow. SEEN is an optional KV namespace.
export default {
async fetch(request, env) {
// 1. Check X-AyeWatch-Signature against the raw request bytes.
const raw = await request.arrayBuffer();
const header = request.headers.get("x-ayewatch-signature") || "";
const hex = header.startsWith("sha256=") ? header.slice(7) : "";
if (!/^[0-9a-f]{64}$/i.test(hex)) return new Response("Bad signature", { status: 401 });
const sig = new Uint8Array(hex.match(/../g).map((h) => parseInt(h, 16)));
const key = await crypto.subtle.importKey(
"raw",
new TextEncoder().encode(env.AYEWATCH_SECRET),
{ name: "HMAC", hash: "SHA-256" },
false,
["verify"]
);
if (!(await crypto.subtle.verify("HMAC", key, sig, raw))) {
return new Response("Bad signature", { status: 401 });
}
// 2. Skip an update that was already delivered (SEEN is an optional KV namespace).
const e = JSON.parse(new TextDecoder().decode(raw));
const id = String(e.update_id);
if (env.SEEN && (await env.SEEN.get(id))) return new Response("Already sent");
const title = e.headline || e.topic_name;
const link = e.evidence && e.evidence[0] ? e.evidence[0].source_url : "";
// 3. Build an Adaptive Card and post it to the Workflows link for this monitor.
const card = {
$schema: "http://adaptivecards.io/schemas/adaptive-card.json",
type: "AdaptiveCard",
version: "1.2",
body: [
{ type: "TextBlock", text: title, weight: "Bolder", size: "Medium", wrap: true },
{ type: "TextBlock", text: (e.content || "").slice(0, 3000), wrap: true },
{ type: "TextBlock", text: "Monitor: " + e.topic_name, isSubtle: true, wrap: true },
],
actions: link ? [{ type: "Action.OpenUrl", title: "Open source", url: link }] : [],
};
const routes = JSON.parse(env.TEAMS_ROUTES || "{}");
const res = await fetch(routes[e.topic_id] || env.TEAMS_WORKFLOW_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
type: "message",
attachments: [
{ contentType: "application/vnd.microsoft.card.adaptive", contentUrl: null, content: card },
],
}),
});
const ok = res.ok;
if (!ok) return new Response("Destination refused", { status: 502 });
if (env.SEEN) await env.SEEN.put(id, "1", { expirationTtl: 1209600 });
return new Response("OK");
},
};
crypto.subtle.verify compares the HMAC in constant time. The Worker answers 200 only after Teams accepted the card and 502 otherwise, so AyeWatch retries with exponential backoff, up to 10 attempts, and the same update_id comes back each time. Microsoft's docs say card text supports basic Markdown and ignores HTML, so the summary renders as plain sentences.
Routes with less code
- n8n: a Webhook node with the signature check from the n8n guide, then n8n's Microsoft Teams node to post a channel message, or an HTTP Request node that posts the card above to the workflow link.
- Make or Zapier: both have Microsoft Teams steps that post through a signed-in Microsoft account. The Make guide and the Zapier guide cover the webhook trigger and what each tool can check.
- Power Automate alone: build a flow on the When a Teams webhook request is received trigger and read AyeWatch's fields inside it. Set who can trigger the flow to Anyone. With the tenant-only options, every caller must send an authentication token, and AyeWatch cannot add one. The flow then has no signature check, so its link is the only secret.
What this setup won't do
- Large or fast bursts. Microsoft caps a Teams message at 28 KB and throttles a link that gets more than four requests a second. The relay cuts the text at 3,000 characters, and a throttled request makes it answer 502, so AyeWatch tries again later.
- Survive an owner leaving. A workflow belongs to the person who built it, not to the channel. Microsoft warns that it can stop if the owner leaves without a co-owner, so add one.
- Act as a pager. AyeWatch checks on a schedule: hourly on Pro, ASAP mode on Pro+. For on-call, see the PagerDuty guide.
- Read pages behind a login. AyeWatch reads public pages and cannot sign in. Some sites block automated readers, and the first check shows it.
Cost and a credit budget
Webhooks need a paid plan, trial included. AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial.
A web page monitor costs 1 credit a check however many pages it reads (up to 3 URLs on Pro, 8 on Pro+). Two pricing monitors with three competitor pages each, checked every 6 hours: 2 monitors × 1 credit × 120 checks = 240 credits a month, about half of Pro's 500. AyeWatch posts to Teams only when a check finds something new, so a quiet week sends nothing. Workflows run on Power Automate, so check your Microsoft 365 plan, and check Cloudflare's pricing page for the Worker.
From channel to first card in six steps
- In Teams, open the channel, select More options (...), then Workflows, and choose Send webhook alerts to a channel. Save it and copy the webhook link.
- Deploy the relay as a Cloudflare Worker. Store the link as
TEAMS_WORKFLOW_URLand a placeholder asAYEWATCH_SECRET. - Create the monitor in AyeWatch: paste the page URL and write the rule.
- Open Notification settings, Webhook in AyeWatch, paste the relay URL and select Save Webhook. Reveal the signing secret and store it as
AYEWATCH_SECRET. - Wait for the next real update. The AyeWatch webhook screen has no test-send button, so the first card is a real alert.
- In the Workflows app, add a co-owner to the workflow so it keeps running if you leave the team.
| AyeWatch field | Adaptive Card element | Note |
|---|---|---|
| headline | First TextBlock, bold | Falls back to topic_name when headline is missing |
| content | Second TextBlock, wrap on | Cut at 3,000 characters to stay under the 28 KB message cap |
| topic_name | Subtle TextBlock | The page URL for a web page monitor |
| evidence[0].source_url | Action.OpenUrl button, Open source | Left out when an update has no evidence |
| update_id | Not shown | KV key that stops a retry from posting twice |
| topic_id | Picks the workflow link | Through the optional TEAMS_ROUTES map |
Start a monitor in under a minute
Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.
Try it free for 7 daysThe bottom line
Create the workflow in a test channel, deploy the relay and let one monitor post for a few days. Move the link to the real channel once the cards read the way your team wants.
FAQ
Does the Teams Incoming Webhook connector still work?
No. Microsoft retired Office 365 connectors in Teams, including connector-based Incoming Webhooks, in May 2026. Create a webhook with the Workflows app instead.
Can AyeWatch post to a Teams Workflows webhook without a relay?
Not with the Send webhook alerts to a channel template, which expects an Adaptive Card inside an attachments array. A Power Automate flow built from scratch can read AyeWatch's fields, but it cannot check the signature.
Why do the alerts show as posted by Workflows?
Workflows webhooks post under the default Workflows bot identity. Microsoft does not offer a custom name or icon for them.
Can different monitors post to different Teams channels?
Yes. Create one workflow per channel and have the relay pick the link by topic_id, because each AyeWatch account has one webhook URL.
Which AyeWatch plan can send webhooks to Teams?
Paid plans, including the 7-day free trial. AyeWatch Pro is $9/mo and Pro+ is $19/mo.