Lead Alerts in Slack: Route Buyer Requests to the Right Channel
Send buyer requests from X, LinkedIn and Reddit to Slack. The built-in Slack connection, a small relay that routes each monitor to its own channel, a claim routine and the filter rules.
By AyeWatch Team5 min read
Short answer: To get lead alerts in Slack, connect Slack in AyeWatch and choose one channel for every alert, or send the signed webhook to a small relay that posts each monitor to its own channel. Add an Only alert me about rule to every lead search so the channel only gets real buyer requests.
AyeWatch is an AI monitoring app for the internet, web pages and social media. Its Slack connection and its signed webhook both need a paid plan; the 7-day trial counts.
Two ways into Slack
The built-in connection. Connect Slack on the Integrations page of the AyeWatch website. Alerts go to a direct message, to the one channel you choose on Slack's authorize screen, or both. There is no per-monitor channel picker, so every monitor on the account posts to the same place. Each message shows the monitor name, the headline in bold, a quoted short summary and a View full update link.
A webhook relay. When X leads should land in #leads-x and Reddit leads in #leads-reddit, or each region has its own channel, send AyeWatch's signed webhook to a small relay that picks the channel from topic_id. Slack incoming webhooks are tied to one channel each, and the channel can't be changed per message, so the relay holds one incoming webhook URL per channel.
Start with the built-in connection and a single #leads channel. Move to the relay when one channel gets too busy for one person to read. Page change alerts work the same way; see website change alerts to Slack.
The relay
This Cloudflare Worker checks the signature on the raw bytes, looks up the channel for the monitor and posts to Slack. Store AYEWATCH_SECRET and one Worker secret per Slack incoming webhook URL, such as SLACK_LEADS_X. The ROUTES keys are made-up monitor IDs; read yours from topic_id in the first alerts.
const ROUTES = {
"9101": "SLACK_LEADS_X",
"9102": "SLACK_LEADS_REDDIT",
"9103": "SLACK_LEADS_LINKEDIN",
};
export default {
async fetch(request, env) {
const raw = await request.arrayBuffer();
const header = request.headers.get("x-ayewatch-signature") || "";
const hex = header.replace("sha256=", "");
const sig = Uint8Array.from(hex.match(/../g) || [], (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("Invalid signature", { status: 401 });
}
const e = JSON.parse(new TextDecoder().decode(raw));
const slackUrl = env[ROUTES[String(e.topic_id)]];
if (!slackUrl) return new Response(null, { status: 200 });
const link = e.evidence && e.evidence[0] ? e.evidence[0].source_url : "";
const text = ["*" + (e.headline || e.topic_name) + "*", e.content, link]
.filter(Boolean)
.join("\n");
const res = await fetch(slackUrl, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text }),
});
return new Response(null, { status: res.ok ? 200 : 502 });
},
};
crypto.subtle.verify compares in constant time. Slack rejects a body without a text field with a no_text error, which is why the relay always builds one. If Slack refuses the message, the Worker answers 502 and AyeWatch retries with backoff. Alerts from monitors missing from ROUTES are accepted and dropped. AyeWatch expects a 2xx reply within 10 seconds and never follows redirects.
A claim routine for the team
A lead channel fails when everyone assumes someone else replied. Agree on three reactions:
- Eyes: I'm taking this one. The first reaction wins.
- Check mark: I replied. Paste the link to your public reply in the thread.
- X: not a lead. Add one word in the thread on why, such as "vendor" or "job ad".
Once a week, scroll the channel for alerts with no reaction and for the words in the X threads. Unclaimed alerts mean too many alerts or too few people; the X words go straight into the filter's skip list. Each member can set the channel's notifications to every new message so new leads reach their phone.
Rules that keep the channel worth reading
A lead channel that posts vendors and job ads gets muted within a week. Give each search an "Only alert me about" rule:
X: "Posts where a small business asks for a bookkeeper or accountant, asks who others use, or says it is unhappy with its current one. Skip accountants promoting themselves, job ads, tax tips and students."
Reddit: "Posts where the author runs a business and asks for help with bookkeeping, payroll or sales tax and wants to hire someone. Skip people asking how to do it themselves and posts about personal taxes."
If a channel gets more alerts than the team can answer in a day, tighten the rule before anyone mutes it. The AI lead qualification guide has more rule patterns.
Budget
A 30-day month: every 3 hours is 240 checks, every 6 hours 120, twice a day 60, daily 30. The filter adds 1 credit a check.
- X Search with filter, every 3 hours: 3 × 240 = 720
- Reddit Search with filter, every 6 hours: 2 × 120 = 240
- LinkedIn Post search with filter, twice a day: 3 × 60 = 180
Total: 1,140 of the 1,500 credits on Pro+. On Pro, the same three at twice a day for X and Reddit and daily for LinkedIn come to 180 + 120 + 90 = 390 of 500. 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.
What this won't do
- Pick a channel per monitor in the built-in connection. That takes the relay.
- Reply. AyeWatch never posts, replies or sends messages. Reply by hand, say who you are and follow each community's rules; X doesn't permit automated replies sent from keyword searches alone.
- Carry contact details. The alert has a summary and a link to the post, with no author or email field.
- Read comments, Facebook groups, DMs or private communities.
Set it up
- Create a #leads channel and decide who reads it each day.
- Connect Slack on the AyeWatch Integrations page and choose #leads on Slack's authorize screen.
- Give every lead search an Only alert me about rule.
- Agree on the three reactions and pin them in the channel.
- When one channel is too busy, create one Slack incoming webhook per channel and deploy the relay.
- Point AyeWatch's webhook at the relay and fill ROUTES with the topic_id values from the first alerts.
| Need | Built-in Slack | Webhook relay |
|---|---|---|
| Setup | Connect on the Integrations page | About 40 lines on a Worker |
| Destination | A DM and/or one channel | Any channel, per monitor |
| Message | Monitor, bold headline, quoted summary, View full update | Whatever the relay builds |
| Signature check | Not needed | Yes, on the raw body |
| Plan | Paid, trial counts | Paid, trial counts |
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
Connect Slack to one #leads channel today and agree on the three reactions before the first alert lands. Build the relay only when the channel outgrows one reader.
FAQ
Can AyeWatch send lead alerts to Slack?
Yes. Connect Slack on the Integrations page of the AyeWatch website, and alerts go to a direct message and/or the channel you pick on Slack's authorize screen. It needs a paid plan or the trial.
Can I send different monitors to different Slack channels?
Not with the built-in connection, which posts every monitor to the same place. Send the signed webhook to a relay that maps topic_id to one Slack incoming webhook URL per channel.
Why does Slack answer no_text?
Slack incoming webhooks need a text field in the JSON body. AyeWatch's webhook payload has none, so a relay has to build the text from the headline, summary and link.
How do I keep a lead channel from getting noisy?
Give each search an Only alert me about rule that names the buyer and lists what to skip, then add the reasons people mark alerts as not a lead to the skip list each week.
Will AyeWatch reply to the leads in Slack or on the platform?
No. AyeWatch only sends alerts. Your team replies on X, Reddit or LinkedIn by hand.
How many credits does a Slack lead setup use?
The three filtered searches here use about 1,140 credits a month on Pro+, or about 390 on Pro at a slower pace. Slack delivery itself uses no credits.