Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bland-ai-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Bland AI webhooks (AI phone calls). Use when setting up a Bland post-call webhook endpoint, creating the webhook signing secret, debugging…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Bland AI Webhooks

Bland runs AI phone agents for inbound and outbound calls. When a call ends, Bland POSTs the call record (call_id, status, transcripts, summary, variables, ...) to the webhook URL you set on the call or on an inbound number. If you have created an account signing secret, each delivery carries an X-Webhook-Signature header so you can verify that Bland sent it.

When to Use This Skill

  • How do I receive Bland AI post-call webhooks?
  • How do I verify a Bland webhook signature (X-Webhook-Signature)?
  • Where do I get the Bland webhook signing secret? (Dev Portal → Account Settings → Keys → Replace Secret; shown once.)
  • How do I handle the post-call payload, citations, or the post-transfer transcript?
  • Why is my Bland webhook signature verification failing?

Verification (core)

Header Value
X-Webhook-Signature Hex-encoded HMAC-SHA256 of the request body, keyed with your account webhook signing secret

There is no timestamp and no message id in the signature. Bland's docs sign JSON.stringify(req.body); use the raw body bytes instead. Bland's prose says "the request body", and the two match only if Bland sends compact JSON that JSON.stringify reproduces exactly, which the docs don't say. Check your first signed delivery.

const crypto = require('crypto');

function verifyBlandSignature(rawBody, signature, secret) { // rawBody: exact bytes, NOT re-serialised JSON
  if (!signature || !secret) return false;
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  try {
    return crypto.timingSafeEqual(Buffer.from(signature.trim().toLowerCase()), Buffer.from(expected));
  } catch {
    return false; // different lengths = invalid
  }
}

// Express: mount the route with express.raw({ type: '*/*' }) so req.body is the raw bytes.

Python: hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest() compared with hmac.compare_digest. Bland has no webhook-verification SDK, so all three examples verify manually.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Enterprise accounts can switch to JWT-signed webhooks (RS256, verified against Bland's JWKS). That is a different scheme and is not covered by this skill.

Payload Shape

Bland's standard post-call webhook has no event-type field. It is the call record, sent once when the call ends:

{
  "call_id": "12345678-1234-1234-1234-123456789012",
  "status": "completed",
  "completed": true,
  "call_length": 0.18,
  "to": "+15551234567",
  "from": "+15559876543",
  "error_message": null,
  "summary": "...",
  "concatenated_transcript": "user: Hello? \n assistant: ...",
  "transcripts": [{ "id": 1, "user": "user", "text": "Hello?", "created_at": "..." }],
  "variables": {},
  "metadata": {}
}

Failed calls (busy, number not found, ...) still arrive as a 200 delivery with error_message set.

Common Payload Types

Payload How to recognise it Sent when
Post-call call_id + status (e.g. completed), no event_type The call ends (the webhook set on the call or inbound number)
citations event_type: "citations" Separate webhook after the call, if citations is in webhook_events. With the dashboard "Delay post call webhook" toggle, citations and corrected_transcript are merged into the post-call payload instead
post_transfer_transcript event_type: "post_transfer_transcript" Call was transferred to a human and post_transfer_transcript is in webhook_events (limited rollout)
dispositions event_type: "dispositions" and agent_dispositions A disposition set to Follow-up event finishes (enterprise feature)
evals Not documented: Bland describes a separate evals webhook but shows no body Eval scores from an attached workbench, when the run completes
multiple event_type: "multiple" + contents array One payload carries more than one enrichment
SMS conversation_id instead of call_id Each SMS/RCS/WhatsApp message and conversation status change

See references/overview.md for the details.

Delivery Semantics

  • Return any 2xx to acknowledge. 4xx, 429 and 5xx count as delivery failures and Bland retries automatically (the retry schedule isn't documented).
  • A call's call_id can appear in several webhooks (post-call, citations, dispositions, evals), so dedupe on call_id plus event_type, not call_id alone.
  • No timestamp is signed, so a captured delivery can be replayed; idempotent handling is your protection.

Environment Variables

BLAND_WEBHOOK_SECRET=...   # required; the account-wide signing secret. Handlers fail closed without it

Local Development

# Express / Next.js (use 8
Полный SKILL.md на GitHub

Установить bland-ai-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/bland-ai/route.tsexamples/nextjs/lib/bland.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл bland-ai-webhooks?

Receive and verify Bland AI webhooks (AI phone calls). Use when setting up a Bland post-call webhook endpoint, creating the webhook signing secret, debugging X-Webhook-Signature (HMAC-SHA256) verification failures, or handling post-call payloads with call_id, status, transcripts, citations and post_transfer_transcript.

Как установить скилл bland-ai-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bland-ai-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bland-ai-webhooks с