Command Palette

Search for a command to run...

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

formbricks-webhooks

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

Receive and verify Formbricks webhooks, which follow the Standard Webhooks specification. Use when setting up a Formbricks webhook endpoint, getting the…

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

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

Formbricks Webhooks

Formbricks is an open-source (self-hostable) survey and experience-management platform. Each environment can have webhooks that POST a JSON event whenever a survey response is created, updated or finished. Deliveries follow Standard Webhooks, so each carries webhook-id, webhook-timestamp and webhook-signature headers.

When to Use This Skill

  • How do I receive Formbricks webhooks?
  • How do I verify a Formbricks webhook signature (webhook-signature)?
  • Where do I find my Formbricks webhook secret (whsec_...)?
  • How do I handle responseCreated, responseUpdated or responseFinished events?
  • Why is my Formbricks webhook verification failing, or failing only on retries and replays?
  • Why does my Formbricks webhook arrive without a webhook-signature header?

Signing Requirement

Hookdeck's configuration alert for this source reads: "Webhooks created before Formbricks added signing have no secret and are unsigned. If yours has no secret, create a new webhook." The webhook-signature header is sent only if a secret is configured. New webhooks always get a secret, so create a new webhook if yours has none. The examples reject deliveries without a signature (400) and fail closed (500) when the secret env var is unset.

Verification (core)

Header Value
webhook-id Identifies the message; retries reuse it. Your idempotency key (the body has no event id)
webhook-timestamp Unix seconds
webhook-signature One or more space-separated v1,<base64> entries

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, HMAC-SHA256, base64 output. The key is the base64-decoded part of the whsec_... secret after the prefix. Compare against every v1, entry; ignore other versions. If webhook-id is absent, read svix-id, svix-timestamp and svix-signature instead. The examples use the standardwebhooks library (npm and PyPI):

const { Webhook } = require('standardwebhooks');

// rawBody: exact request body (Buffer or string), NOT re-serialised JSON
function verifyFormbricks(rawBody, headers, secret = process.env.FORMBRICKS_WEBHOOK_SECRET) {
  const p = headers['webhook-id'] ? 'webhook' : 'svix'; // fall back to the svix-* names
  new Webhook(secret).verify(rawBody, {
    'webhook-id': headers[`${p}-id`],
    'webhook-timestamp': headers[`${p}-timestamp`],
    'webhook-signature': headers[`${p}-signature`],
  }, { jsonParse: false }); // throws on a bad signature or stale timestamp → respond 401
}

The library always enforces a fixed 5-minute timestamp window. Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual verifier in references/verification.md, which can drop or widen the window. In Express, read the body with express.raw({ type: '*/*' }) so any content type verifies, and parse JSON only after the check.

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

Event Type and Payload

Every body has the same three top-level fields, and the event name is event:

{
  "event": "responseFinished",
  "webhookId": "webhookId",
  "data": {
    "id": "responseId",
    "surveyId": "surveyId",
    "finished": true,
    "data": { "cm9k2v7q00004": "accepted" },
    "dataByQuestionCode": { "newsletter_consent": "accepted", "visit_reason": "Just browsing" },
    "outcome": null,
    "survey": { "title": "Customer Satisfaction Survey", "status": "inProgress", "type": "link" }
  }
}

data is the response object: the answers are in data.data (keyed by question id) and again in data.dataByQuestionCode (keyed by the question codes you set in the survey editor, with null for questions not answered yet), data.survey is a summary of the survey, and data.finished tells you whether the respondent completed it. data.outcome is null, or "lowQuality" when a reviewer marked the response Low quality; Formbricks still sends those, so filter on it if you want to skip them. Other fields include contact, contactAttributes, language, meta, tags, ttc and variables. A delivery queued before a Formbricks update can arrive without dataByQuestionCode, so don't validate against a strict schema.

Event Types

Event Fired when
responseCreated A survey response is created
responseUpdated A response gains or changes answers, or is marked Low quality or restored
responseFinished The respondent completes the survey

These are the only three triggers (the PipelineTriggers enum in Formbricks' code has no others). The dashboar

Полный SKILL.md на GitHub

Установить formbricks-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/formbricks/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Receive and verify Formbricks webhooks, which follow the Standard Webhooks specification. Use when setting up a Formbricks webhook endpoint, getting the whsec_ signing secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling survey response events like responseCreated, responseUpdated and responseFinished.

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

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

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

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

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

Сравнить formbricks-webhooks с