Automation Recipes · HMAC-SHA256 Signed

n8n, Zapier & Slack Webhook Recipes

Every B2B Tool Studio watchlist signs outbound POST payloads with X-B2BTS-Timestamp and X-B2BTS-Signature: sha256=<hex> over <timestamp>.<rawBody>.

1. n8n Workflow (Webhook Trigger → Verify HMAC → Slack/HubSpot)

Create a Webhook node in n8n (Method: POST), paste its HTTPS Production URL into your B2B Tool Studio Console watchlist with a signing secret, then verify signatures in a Code node:

const crypto = require('crypto');
const secret = $env.B2BTS_WEBHOOK_SECRET;
const headers = $input.first().json.headers;
const rawBody = JSON.stringify($input.first().json.body);
const ts = headers['x-b2bts-timestamp'];
const sig = headers['x-b2bts-signature'] || '';

const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
if (!crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected))) {
  throw new Error('Invalid B2B Tool Studio webhook signature');
}
return [{ json: $input.first().json.body }];

2. Zapier Catch Hook → CRM / Slack / Google Sheets

Choose Webhooks by Zapier → Catch Hook, copy your Zapier Hook URL into the Watchlist Console, and click Test Webhook to populate Zapier field mappings automatically:

{
  "source": "B2B Tool Studio",
  "domain": "govcon",
  "severity": "HIGH",
  "title": "[FINAL_PERIOD] SAQMMA15C0138 — ACME FEDERAL ($14.50M)",
  "summary": "Department of State | NAICS 541511 | Recompete 2027-04-30 | Score 82/100",
  "url": "https://www.usaspending.gov/award/CONT_AWD_TEST_1",
  "details": { "awardId": "SAQMMA15C0138", "stage": "FINAL_PERIOD", "score": 82 },
  "sentAt": "2026-11-25T18:00:00.000Z"
}

3. Direct Slack & Discord Webhooks (Zero Middleware)

Paste a https://hooks.slack.com/services/... or https://discord.com/api/webhooks/... URL directly in the Console. B2B Tool Studio automatically formats Slack Block Kit headers and Discord Markdown alerts without needing n8n or Zapier.