Most changes in AI answers are noise. The trick is alerting only on the ones that matter.
To get a Slack alert when ChatGPT stops recommending your brand, you need three things: a scheduled check that asks the AI engines your buyer prompts, a webhook that fires when the answer changes, and a small relay that posts the change to Slack. The relay also filters noise, so the channel only lights up when your brand drops, returns, moves two places, or loses first place.
The data comes from ten email marketing prompts for online stores, asked twice on ChatGPT, Claude, Gemini, and Perplexity on November 30 and again on December 2, 2026. That is 160 answers, collected through DataForSEO for $2.96, scored for Omnisend as the example brand.
Disclosure: MentionsAPI sells AI visibility data, and the setup below uses our watch endpoint. Any tool that sends a webhook with the change works with the same Worker idea. Omnisend is an example, not a client.
Why set up AI visibility alerts?
AI visibility alerts tell you when ChatGPT, Claude, Gemini, or Perplexity stops naming your brand for a buyer question, so you can react before it costs deals. Google Alerts cannot do this, because it only watches new web pages and news, and AI answers are generated fresh for each question. A dashboard can show the change, but only if someone checks it. An alert brings the change to you.
Answers move more than most teams expect. Between November 30 and December 2, Omnisend went from first to fourth on one Perplexity prompt and from third to first on another.
Nobody on a marketing team rechecks forty answers every week by hand. A Slack message in the channel your team already reads is the cheapest way to notice.
What you need
You need three pieces: an AI visibility API with scheduled checks and webhooks, a Cloudflare account to run the relay Worker, and a Slack workspace where you can add an app. The Worker and the Slack webhook are free at this scale. Cloudflare's free plan allows 100,000 Worker requests a day, far more than a weekly alert needs.
| Piece | What it does | Cost |
|---|---|---|
| Watch (MentionsAPI) | Asks the engines on a schedule and sends a webhook when the answer changes | 150 credits per prompt per run in quick mode |
| Cloudflare Worker | Checks the signature, filters noise, posts to Slack | Free up to 100,000 requests a day |
| Slack incoming webhook | Posts the message into one channel | Free |
Why not point the watch straight at Slack? Slack incoming webhooks expect their own JSON with a text field, and they cannot check a signature. The Worker translates the payload and rejects anything not signed with your secret.
Step 1: Create a Slack incoming webhook
Create a Slack app for your workspace, open Incoming Webhooks in the app settings, turn the feature on, and choose Add New Webhook to Workspace. Pick the channel that should get alerts. Slack gives you a webhook URL that posts into that one channel. Copy it and keep it private, because anyone with the URL can post there.
Slack's incoming webhooks guide covers the screens. Each webhook is tied to a single channel, so make a separate one if you want competitor alerts somewhere else.
A dedicated channel such as #ai-visibility works best. Alerts are easier to discuss there than in a busy general channel.
Step 2: Deploy the relay Worker
The relay Worker receives each webhook, checks the HMAC signature against your shared secret, keeps only the changes worth a message, and posts them to Slack. It posts when your brand drops out, comes back, or moves two or more positions, and when a rival becomes the first brand named. Everything else is ignored, which keeps the channel quiet.
// Cloudflare Worker: receives MentionsAPI watch webhooks, verifies the signature, posts to Slack.
// Secrets: WEBHOOK_SECRET (same value you sent as webhook_secret), SLACK_WEBHOOK_URL, BRAND.
export default {
async fetch(request, env) {
if (request.method !== 'POST') return new Response('ok');
const body = await request.text();
const sig = request.headers.get('x-mentionsapi-signature') || '';
if (!(await validSignature(env.WEBHOOK_SECRET, body, sig))) {
return new Response('bad signature', { status: 401 });
}
const event = JSON.parse(body);
const d = event.delta || {};
const brand = env.BRAND;
const lines = [];
if ((d.dropped_brands || []).includes(brand)) lines.push(`:rotating_light: *${brand} dropped out of the answer*`);
if ((d.new_brands || []).includes(brand)) lines.push(`:tada: *${brand} is back in the answer*`);
for (const r of d.rank_changes || []) {
if (r.brand === brand && Math.abs(r.to_rank - r.from_rank) >= 2) {
const icon = r.to_rank < r.from_rank ? ':arrow_up:' : ':arrow_down:';
lines.push(`${icon} ${brand} moved from position ${r.from_rank} to ${r.to_rank}`);
}
if (r.brand !== brand && r.to_rank === 1) lines.push(`:eyes: ${r.brand} is now named first`);
}
if (!lines.length) return new Response('no change worth posting');
const text = [`*AI visibility alert:* ${event.watch_name || 'watch'}`, ...lines].join('\n');
const res = await fetch(env.SLACK_WEBHOOK_URL, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ text }),
});
return new Response(res.ok ? 'posted' : 'slack error', { status: res.ok ? 200 : 502 });
},
};
async function validSignature(secret, body, sigHex) {
const key = await crypto.subtle.importKey('raw', new TextEncoder().encode(secret), { name: 'HMAC', hash: 'SHA-256' }, false, ['sign']);
const mac = await crypto.subtle.sign('HMAC', key, new TextEncoder().encode(body));
const hex = [...new Uint8Array(mac)].map((b) => b.toString(16).padStart(2, '0')).join('');
if (hex.length !== sigHex.length) return false;
let diff = 0;
for (let i = 0; i < hex.length; i++) diff |= hex.charCodeAt(i) ^ sigHex.charCodeAt(i);
return diff === 0;
}Save it as worker.js, add this wrangler.toml next to it, and deploy:
name = "ai-alerts"
main = "worker.js"
compatibility_date = "2026-11-01"npx wrangler deploy
npx wrangler secret put WEBHOOK_SECRET
npx wrangler secret put SLACK_WEBHOOK_URL
npx wrangler secret put BRANDFor WEBHOOK_SECRET, use a long random string of at least 16 characters. SLACK_WEBHOOK_URL is the URL from step 1, and BRAND is your brand name exactly as AI engines write it.
I tested the Worker against signed sample payloads. It posted the brand-drop alert, rejected a bad signature with a 401, and stayed silent on rival-only changes. Cloudflare's secrets guide explains how secrets reach the Worker as env values.
Step 3: Create a watch for each prompt
A watch re-runs one prompt for one brand on a schedule and sends a webhook when the answer changes. Create one for each buyer prompt you care about, with the Worker URL as the webhook URL, the same secret you gave the Worker, a weekly interval, and the triggers you want. Always list the triggers explicitly, so the watch knows which changes should fire.
curl -X POST https://api.mentionsapi.com/v1/watch \
-H "Authorization: Bearer $MENTIONSAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What is the best email marketing platform for ecommerce?",
"brand": "Omnisend",
"mode": "quick",
"interval": "weekly",
"webhook_url": "https://ai-alerts.YOUR-SUBDOMAIN.workers.dev",
"webhook_secret": "the-same-secret-you-gave-the-worker",
"trigger_on": ["mention_removed", "mention_added", "rank_changed"]
}'Quick mode asks ChatGPT, Claude, Gemini, and Perplexity through their APIs on every run. To watch the consumer ChatGPT app instead, use chatgpt_live. The watch documentation lists every mode, trigger, and the full webhook payload.
Each webhook includes a delta with new brands, dropped brands, and rank changes. That is what the Worker reads to decide whether to post.
How to test the alert before going live
Test the setup by sending the Worker a fake alert signed with your secret. If a message appears in Slack, the signature check, the filter, and the Slack webhook all work. Then send the same request with a wrong signature and confirm it is rejected. This takes two minutes and saves you from finding a broken alert the week your brand actually drops.
BODY='{"event":"watch.fired","watch_name":"test alert","delta":{"new_brands":[],"dropped_brands":["Omnisend"],"rank_changes":[],"top3_reordered":false}}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | sed 's/^.* //')
curl -X POST https://ai-alerts.YOUR-SUBDOMAIN.workers.dev \
-H "content-type: application/json" \
-H "x-mentionsapi-signature: $SIG" \
-d "$BODY"Run it in a terminal with WEBHOOK_SECRET set to the same value you gave the Worker. You should see a Slack message saying Omnisend dropped out, with your own brand name in place of Omnisend.
If nothing arrives, check three things: the BRAND secret matches the brand name exactly, the Slack webhook URL is complete, and the Worker logs in the Cloudflare dashboard show the request.
Which changes deserve an alert?
Only a few kinds of change deserve an alert: your brand dropping out, your brand coming back, your brand moving two or more positions, and a rival taking the first spot. Everything else is usually noise. When we re-ran the same prompts on the same day, 31 of 40 prompt and engine pairs changed in some way, almost all from rivals shuffling lower in the list.
| Change type | Same day (40 pairs) | Two days later (40 pairs) |
|---|---|---|
| Any change at all | 31 | 35 |
| A rival newly appears | 23 | 29 |
| A rival disappears | 15 | 18 |
| First-named brand changes | 2 | 6 |
| Our brand moves 2+ places | 0 | 2 |
| Our brand drops out or returns | 0 | 1 |
| Filtered Worker would post | 0 | 5 |
A pair is one prompt on one engine. "Same day" compares two runs on November 30. "Two days later" compares the first November 30 run with the first December 2 run.
An unfiltered alert would have fired on 31 pairs before anything real happened. The filtered Worker fired on none that day, then on five pairs two days later.
What the alerts caught in two days
The five alerts that fired two days later were all worth a look. On Perplexity, Omnisend fell from first to fourth for the most affordable email tool, with Brevo taking first. On another Perplexity prompt it rose from third to first. It appeared on a beginner prompt where it had been missing, and on Claude, Klaviyo and Mailchimp each took first place on one prompt.
- Perplexity, most affordable tool: Omnisend 1st to 4th, Brevo now first.
- Perplexity, best tool for WooCommerce: Omnisend 3rd to 1st.
- Perplexity, easiest platform for beginners: Omnisend newly named.
- Claude, best tool for WooCommerce: Klaviyo now named first.
- Claude, easiest platform for beginners: Mailchimp now named first.
All five showed up in both runs on each day, so none was a one-run fluke. The overall picture barely moved: Omnisend's mention rate went from 98% to 100%, and its named-first share from 20% to 15%.
That is the right balance. The headline numbers belong in a weekly report, while the alerts point you at the specific prompt and engine that moved.
Thirty-one pairs changed on a quiet day. The filtered alert stayed silent until something real happened.From the two-day test
Alerts, dashboards, or reports?
Alerts, dashboards, and reports answer different questions, and most teams need all three. Alerts answer "what just changed?" for a single prompt and engine. A dashboard answers "where do we stand?" across all prompts at any moment. A monthly report answers "is the work paying off?" with trends and actions. Start with alerts if nobody on the team checks AI answers today.
| Format | Best for | Cadence |
|---|---|---|
| Slack alert | A drop or a rival taking first place on one prompt | When it happens |
| Dashboard | Current standing across prompts, engines, and rivals | Always on |
| Monthly report | Trends, causes, and next actions for a client or CMO | Monthly |
All three can share one prompt set, which keeps the numbers consistent and the cost down.
Agencies get extra value from alerts. A client hears about a drop from you first, with the prompt, the engine, and the rival named, instead of spotting it themselves in a meeting. Our agency AEO audit playbook covers turning that into a retainer.
What do AI visibility alerts cost?
The Slack webhook and the Cloudflare Worker cost nothing at this scale, so the cost is the AI answers. A weekly MentionsAPI watch in quick mode is 150 credits per prompt per run, which covers four engines. Ten prompts checked weekly use about 6,500 credits a month, roughly $27 on the monthly plan with top-ups. Checking the same ten daily costs about seven times as much.
Our data shows why weekly is enough. Same-day re-runs produced no real change for our brand, so daily checks would mostly pay for noise.
If you already track a prompt set for a dashboard, reuse it. Our Looker Studio dashboard guide shows the weekly collection, and the alerts cover the gaps between reports.
Tips to keep alerts useful
Keep alerts useful by watching only prompts that drive revenue, sending them to a dedicated channel, and reviewing the filter after the first month. If an alert matters, re-run that prompt before acting, since a single run can be a fluke. Pair alerts with a monthly report, so the team sees both sudden moves and the longer trend.
- Start with five to ten prompts that match how buyers ask.
- Use one channel for your brand, and optionally one for rivals.
- Re-run any prompt that alerts before changing pages or campaigns.
- Review alerts monthly and drop prompts that never move.
For the report side, our AI visibility report template covers what to include each month.
Frequently asked questions
Can Google Alerts track mentions in ChatGPT?
How often should AI visibility alerts run?
Which AI visibility changes deserve an alert?
Do I need a server to send AI alerts to Slack?
Can I get alerts for Perplexity and Gemini too?
How much do AI visibility alerts cost?
Set it up once, then let Slack tell you
Create the Slack webhook, deploy the Worker, and add a weekly watch for your top five buyer prompts. It takes about half an hour. After that, the channel stays quiet until your brand drops, returns, moves, or loses first place, which is exactly when someone should look.
Quiet channels get read. Noisy ones get muted.