Command Palette

Search for a command to run...

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

survicate-webhooks

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

Receive and verify Survicate webhooks. Use when configuring Survicate webhook endpoints, debugging hmac signatures, or handling questionAnswered…

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

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

Survicate Webhooks

Receive Survicate question answers and completed surveys.

When to Use This Skill

  • Configure a receiver for Survicate webhook deliveries.
  • Diagnose hmac verification failures.
  • Handle questionAnswered, surveyCompleted.

Setup

Copy the workspace Signing Secret from Integrations > Webhooks (click Connect) in the Survicate panel. In the survey's Connect tab, pick Webhooks, paste the URL and enable delivery per answer (questionAnswered), on completion (surveyCompleted) or both. Use Send sample request to test. The separate Verification Token is sent in plaintext and is not used by this HMAC verifier.

Set SURVICATE_WEBHOOK_SECRET in the server environment. Read setup before enabling delivery.

Verification (core)

hmac contains a bare hex digest over the raw body. Use HMAC-SHA256 with the secret's UTF-8 bytes. Verify the original bytes before parsing JSON. Validate the digest format, then compare equal-length buffers in constant time.

After extracting the documented digest and constructing message as described in verification, the comparison is:

const expected = crypto.createHmac('sha256', secret).update(message).digest();
if (digest.length !== 64 || !/^[0-9a-fA-F]{64}$/.test(digest)) return false;
const received = Buffer.from(digest, 'hex');
return received.length === expected.length && crypto.timingSafeEqual(received, expected);

No timestamp is included in the signed message. These examples do not invent an age check from unsigned fields.

Complete handlers and tests: Express, Next.js, FastAPI.

Event Handling

The envelope is {messageId, deliveryTries, event: {questionAnswered: {...}}} or the corresponding surveyCompleted key. Dispatch on keys inside event, not on event as a string. The receiver guards each nested value before use.

Survicate documents messageId only as the webhook ID and doesn't say whether a retry repeats it, so make processing idempotent: upsert answers keyed on responseUuid plus question.id, and completed responses on responseUuid. Acknowledge accepted events and avoid logging survey answers or personal data.

Local Development

npx hookdeck-cli listen 3000 survicate --path /webhooks/survicate

Use port 8000 for FastAPI. The CLI provides a local tunnel and inspection UI; no account is required to start.

Resources

Recommended: webhook-handler-patterns

Use the patterns skill for handler sequence, idempotency, error handling and retry logic.

Related Skills

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

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

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

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

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

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

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

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

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

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

FAQ

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

Receive and verify Survicate webhooks. Use when configuring Survicate webhook endpoints, debugging hmac signatures, or handling questionAnswered, surveyCompleted.

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

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

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

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

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

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