Skip to content

Send Sales Signals to Your CRM With a Signed Webhook

Turn alerts about funding, new executives and hiring into CRM tasks: the webhook payload, a Node.js receiver that checks the signature and skips retries, and a field map for any CRM.

By AyeWatch Team5 min read

Short answer: To send sales signals to a CRM, point AyeWatch's signed webhook at a small receiver that checks the X-AyeWatch-Signature header, looks up the account owner by topic_id, and creates a task or note through your CRM's API, using update_id as the dedupe key. AyeWatch has no native CRM integration, so the receiver is the bridge.

What a signal record needs

A funding alert in Slack gets read once and scrolls away. The same alert as a task on the account, assigned to its owner, gets worked. To build that record the receiver needs four things: which account, who owns it, what happened with a link, and a key that stops the same alert from creating two tasks.

AyeWatch sends the event. It doesn't know your CRM's account IDs or owners, so the receiver maps each monitor's topic_id to them. Most signals are about accounts you already have, so create a task or a note on the account. Create a lead only when the signal names a company that isn't in the CRM yet.

The payload

Every alert is a POST with a JSON body. This one comes from a newsroom page monitor; the names and URLs are invented.

{
  "topic_id": 4810,
  "topic_name": "Target account newsrooms, group A",
  "update_id": 91234,
  "headline": "Larkspur Health raises a $40M Series B",
  "content": "Larkspur Health announced a $40M Series B led by Calder Ventures. It plans to double its engineering team and open an Austin office.",
  "created_at": "2026-11-30T09:12:00Z",
  "evidence": [
    {
      "quote": "The funding will be used to double our engineering team and open an office in Austin.",
      "source_url": "https://larkspur-health.example/news/series-b"
    }
  ]
}

headline, content, evidence and a few other fields can be missing, so treat them as optional. New fields may be added over time, so ignore the ones you don't use.

A receiver that creates a CRM task

Node.js with Express. Set AYEWATCH_SECRET to the signing secret from Notification settings, Webhook, and replace createCrmTask with your CRM's API call.

const crypto = require("crypto");
const express = require("express");
const app = express();
const seen = new Set();

// topic_id to owner and signal type, from GET /api/v1/topics
const ROUTES = {
  4810: { owner: "dana@northwind-studio.example", signal: "Funding" },
  4811: { owner: "sam@northwind-studio.example", signal: "New executive" },
};

app.post("/ayewatch", express.raw({ type: "application/json" }), async (req, res) => {
  const expected = Buffer.from("sha256=" + crypto
    .createHmac("sha256", process.env.AYEWATCH_SECRET)
    .update(req.body)
    .digest("hex"));
  const got = Buffer.from(req.headers["x-ayewatch-signature"] || "");
  if (got.length !== expected.length || !crypto.timingSafeEqual(got, expected)) {
    return res.status(401).end();
  }

  const e = JSON.parse(req.body);
  if (seen.has(e.update_id)) return res.status(200).end();

  const route = ROUTES[e.topic_id] || { owner: process.env.DEFAULT_OWNER, signal: "Signal" };
  const link = (e.evidence && e.evidence[0] && e.evidence[0].source_url) || "";
  try {
    await createCrmTask({
      externalId: "ayewatch-" + e.update_id,
      owner: route.owner,
      subject: route.signal + ": " + (e.headline || e.topic_name),
      body: [e.content, link].filter(Boolean).join("\n\n"),
    });
  } catch (err) {
    return res.status(502).end(); // AyeWatch retries with the same update_id
  }
  seen.add(e.update_id);
  res.status(200).end();
});

async function createCrmTask(task) {
  // Call your CRM's API here. Store task.externalId in a unique field.
}

app.listen(3000);

The route reads the raw body because the signature covers the exact bytes AyeWatch sent. The in-memory seen set is lost on restart, so in production keep update_id in a unique CRM field or a database table. Dedupe and retries covers that in depth.

Delivery rules the receiver must follow

  • Reply 2xx within 10 seconds. If your CRM is slow, put the task on a queue and reply first.
  • Expect retries. Any other status, or a timeout, is retried with backoff, up to 10 attempts, with the same update_id. That is why a CRM failure returns 502.
  • No redirects. A 3xx is not followed or retried; the delivery fails at once. Paste the final URL, with the exact path and trailing slash your server expects.
  • One URL per account. Every monitor uses the same webhook, so routing by topic_id happens in the receiver. The URL must be public HTTPS.
  • Rotating the secret has no overlap. Deploy the new secret first, or accept a few failed deliveries.

Prefer no code? Zapier, Make or n8n can receive the webhook and call their own CRM connector. These are the tools' features, not AyeWatch integrations, and you should still check the signature where the tool allows it.

What this won't do

  • Match an alert to a CRM account on its own. The ROUTES map, or a name lookup, is your part.
  • Add contacts, emails or phone numbers. Alerts carry a summary, a link and quotes from the source, nothing private.
  • Replay old alerts. There is no alert-history endpoint, so a receiver that was down past the last retry misses those alerts in the CRM.
  • Guarantee order. Under load, alerts can arrive out of order, so sort by created_at.

Set it up in six steps

  1. Decide the record type: a task or note on the account for known accounts, a lead for new companies.
  2. Deploy the receiver on a public HTTPS URL with no redirect in front of it.
  3. Paste the URL in Notification settings, Webhook and put the signing secret in AYEWATCH_SECRET.
  4. Fill ROUTES with each monitor's topic_id, which GET /api/v1/topics lists, and its owner.
  5. Replace createCrmTask with your CRM's API call, storing update_id in a unique field.
  6. When the next alert arrives, check that exactly one task appeared, on the right account and owner.
AyeWatch fieldCRM fieldNote
update_idExternal ID (unique)The same on every retry; use it to skip duplicates
topic_idOwner and signal typeLooked up in ROUTES
headlineTask subjectOptional; fall back to topic_name
contentTask description or note bodyOptional
evidence[0].source_urlLink field or note bodyOptional; the page or post the alert came from
created_atActivity dateISO 8601; use it to sort

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 days

The bottom line

Start with one monitor and one owner, and check that a single alert becomes a single task. Then fill ROUTES for the rest, because routing by topic_id is the only mapping you have to maintain.

FAQ

Does AyeWatch integrate directly with Salesforce or HubSpot?

No. AyeWatch sends a signed webhook. A small receiver, or an automation tool like Zapier, Make or n8n, turns it into a CRM record through the CRM's own API or connector.

How do I avoid duplicate CRM tasks when AyeWatch retries?

Every retry carries the same update_id. Store it in a unique field or table and skip any alert you have already saved.

Can different monitors go to different account owners?

Yes. There is one webhook URL per account, so the receiver maps each topic_id to an owner and signal type before it creates the task.

What happens if my CRM is down?

Return a non-2xx status. AyeWatch retries with backoff, up to 10 attempts, so a short outage loses nothing.

Does the webhook include contact details?

No. It includes the topic, a headline, a summary, quotes with source links and a timestamp. AyeWatch doesn't enrich contacts.

send sales signals to crmsales signals crm webhookcrm webhook integrationsales trigger crm automationayewatch webhook

Related articles