nooks-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Nooks webhooks. Use when setting up Nooks AI sales dialer webhook handlers, debugging x-webhook-signature verification, activating a Nooks…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Nooks Webhooks
When to Use This Skill
- How do I receive Nooks webhooks?
- How do I verify the Nooks
x-webhook-signatureheader? - How do I handle
call.loggedevents from Nooks? - Why did saving my Nooks webhook URL fail, or why is the activation ping unsigned?
- Why is my Nooks webhook signature verification failing?
Essential Code (USE THIS)
Every Nooks delivery after activation carries x-webhook-signature: t=<unix ms>,s=<base64>. s is the base64 HMAC-SHA256 of "<t>.<raw body>" (t exactly as sent, a dot, then the raw body), keyed with the Nooks signing key as a UTF-8 string. t is in milliseconds. Nooks shows the signing key (nooks-webhook-signing-key-...) only once, after the URL is saved.
Verification (Node.js)
const crypto = require('crypto');
// rawBody: Buffer of the exact request bytes (express.raw({ type: '*/*' }), not express.json)
function verifyNooks(rawBody, signatureHeader, secret) {
if (!secret || !signatureHeader) return false;
const parts = {};
for (const kv of signatureHeader.split(',')) {
const i = kv.indexOf('='); // first '=' only: base64 ends in '='
if (i > 0) parts[kv.slice(0, i).trim()] = kv.slice(i + 1).trim();
}
if (!parts.t || !parts.s || !/^\d+$/.test(parts.t)) return false;
// Optional replay window, off by default: retries and replays keep the original timestamp
const expected = crypto.createHmac('sha256', secret)
.update(`${parts.t}.`).update(rawBody).digest('base64');
const a = Buffer.from(parts.s, 'utf8'), b = Buffer.from(expected, 'utf8');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
Verification (Python)
import base64, hashlib, hmac
def verify_nooks(raw_body: bytes, signature_header: str, secret: str) -> bool:
if not secret or not signature_header:
return False
parts = {}
for kv in signature_header.split(","):
key, sep, value = kv.partition("=") # first '=' only: base64 ends in '='
if sep and key.strip():
parts[key.strip()] = value.strip()
t, s = parts.get("t"), parts.get("s")
if not t or not s or not (t.isascii() and t.isdigit()):
return False
digest = hmac.new(secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256).digest()
# bytes on both sides: a non-ASCII header is a failed match (401), not a TypeError (500)
return hmac.compare_digest(s.encode("utf-8"), base64.b64encode(digest))
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Timestamp window: off by default
Nooks recommends rejecting requests older than 5 minutes. Hookdeck retries and replays resend the original timestamp, so a 5-minute window rejects late retries. The examples therefore skip the freshness check unless you set NOOKS_TIMESTAMP_TOLERANCE_SECONDS to a positive number of seconds (default 0 = off). When you do turn it on, remember t is in milliseconds: divide by 1000 before comparing against the window. Use callData.callId for idempotency instead. references/verification.md shows exactly where the window can be dropped or widened.
Activation and Hookdeck Setup
When you save a webhook URL in Nooks (Integrations → Webhooks), Nooks immediately sends a one-time activation POST and the save fails unless your endpoint answers with a 2xx. That ping may be unsigned, and the signing key is only issued after activation, so there is no key to verify it with yet. The examples reject unsigned requests with 401 by default. If Nooks points straight at your app, start it with NOOKS_ACCEPT_UNSIGNED_PING=true while you save the URL (no signing key needed yet): unsigned requests then get 200 and are never processed. Store the key, then remove the flag. Signed requests are always verified.
Hookdeck setup: the one-off activation ping Nooks sends when you save the URL is unsigned and may show as a failed verification. Later deliveries are signed. Save the signing key when it is shown, add it to your Hookdeck source (or NOOKS_WEBHOOK_SECRET), then use the verify option in Nooks settings if events don't start. See references/setup.md.
Event: call.logged
The only documented event. Fires once a call is fully finalized in Nooks. The body is { "event": "call.logged", "eventId", "occurredAt", "callData": { callId, status, userData, prospectData, accountData, callDirection, disposition, startedAt, durationSeconds, recordingUrl, notes, transcriptUrl, sequenceData } }.
- Dispatch on the body's
eventfield. - De-duplicate on
callData.callId, which is the same on every retry.eventIdchanges on every delivery attempt: use it only for logging.
See references/overview.md for the payload.
Important Headers
| Header | Description |
|---|---|
| `x-webhook |
Установить nooks-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nooks-webhooks?
Receive and verify Nooks webhooks. Use when setting up Nooks AI sales dialer webhook handlers, debugging x-webhook-signature verification, activating a Nooks webhook URL, or handling call.logged events.
Как установить скилл nooks-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nooks-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub