act-on-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Act-On outgoing webhooks (marketing automation, delivered through Svix). Use when setting up Act-On webhook handlers, debugging Svix…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Act-On Webhooks
Act-On is a marketing automation platform. Its outgoing webhooks push real-time data (new contacts, bounces, opt-outs, form submissions, Automated Program starts, CRM connections) to a URL you choose. They are configured in an embedded Svix portal in Act-On (Endpoints, Event Catalog, Testing, Logs), and Act-On sends only POST requests.
When to Use This Skill
- How do I receive Act-On webhooks?
- How do I verify an Act-On webhook signature?
- Where do I find the Act-On webhook signing secret?
- How do I tell
contact.addedfromcontact.updatedwhen the payload has no event type? - How do I handle
form.submitted,contact-bounce.hardorcontact-opt.global-opt-out? - Why is my Act-On webhook verification failing, or failing on retries?
Signing Secret
Paste the endpoint's Signing Secret from the Act-On webhook portal exactly as shown, including any whsec_ prefix.
Act-On says only that it sends a payload with an HMAC SHA-256 signature and that the Signing Secret is generated automatically when you configure the endpoint. Its pages don't name the headers or the secret prefix. They are the Svix defaults, which is what Hookdeck's Act-On source assumes (source type ACT_ON, labelled "Act-On"). Because the svix- prefix is inferred rather than documented, the examples also accept the same values in webhook-id, webhook-timestamp and webhook-signature when the svix-* headers are absent.
Verification (core)
| Header | Value |
|---|---|
svix-id |
Message ID, the same on every retry |
svix-timestamp |
Unix seconds of this delivery attempt |
svix-signature |
One or more space-separated v1,<base64> entries |
Signed content is {svix-id}.{svix-timestamp}.{raw body}, HMAC-SHA256, base64. The key is the base64-decoded part of the secret after whsec_. The svix library (npm and PyPI) does this, compares every v1 entry in constant time and enforces a fixed 5-minute timestamp window.
import { Webhook } from 'svix'; // svix 2.x is ESM-only
// rawBody: the exact bytes received (express.raw({ type: '*/*' }) / request.text()), NOT re-serialised JSON
function verifyActOnWebhook(rawBody, headers) {
const secret = process.env.ACT_ON_WEBHOOK_SECRET; // as shown in the Act-On portal
if (!secret) throw new Error('ACT_ON_WEBHOOK_SECRET not set'); // fail closed -> 500
new Webhook(secret).verify(rawBody, {
'svix-id': headers['svix-id'] ?? headers['webhook-id'], // fall back to the webhook-* prefix
'svix-timestamp': headers['svix-timestamp'] ?? headers['webhook-timestamp'],
'svix-signature': headers['svix-signature'] ?? headers['webhook-signature'],
}); // throws WebhookVerificationError -> 400
return JSON.parse(rawBody.toString('utf8')); // svix 2.x verify() returns nothing
}
Python: from svix.webhooks import Webhook, then Webhook(secret).verify(raw_body, headers) followed by json.loads(raw_body). Missing headers or a bad signature: return 400 (or 401).
Hookdeck retries and replays resend the original timestamp. The
svixlibrary always rejects a timestamp more than 5 minutes old, so a retry or replay that arrives later fails verification even though the signature is valid. references/verification.md has a manual verifier (HMAC-SHA256 over{id}.{timestamp}.{raw body}, everyv1entry compared in constant time, timestamp must be a plain positive integer) where the window can be dropped or widened.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
The Payload Has No Event Type
Each webhook body is the event's own object. There is no type or event field; the event type exists only in Svix's message metadata. For example contact.added sends:
{ "contact": { "E-mail Address": "[email protected]", "First Name": "John" },
"contactReportLink": "https://example.actonsoftware.com/acton/ng-ui/[email protected]",
"email": "[email protected]", "timestamp": 1689343863 }
So:
- Subscribe each endpoint to the events it handles, in the endpoint's Message Filtering. Or create one endpoint (and one handler route) per event type, which is the only reliable way to separate events that share a shape.
- Handle by shape when one endpoint receives several events. The examples infer the type from distinguishing fields (
formId->form.submitted,hasOptedOut: true->contact-opt.global-opt-out,startedTime->automated-program.started).contact.added/contact.updated,crm.connected/crm.disconnectedandsubscription-category.added/deleted/updatedare identical in shape, so they resolve to a group of candidates. - Deduplicate on
svix-id, which is the same on every retry. The body has no event ID.
Common Event Types
| Event | Fired when | Identifying fields | |-----
Установить act-on-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл act-on-webhooks?
Receive and verify Act-On outgoing webhooks (marketing automation, delivered through Svix). Use when setting up Act-On webhook handlers, debugging Svix signature verification (svix-id, svix-timestamp, svix-signature, whsec_ Signing Secret), telling events apart when the payload has no event type, or handling contact.added, contact.updated, contact-bounce.hard, form.submitted, contact-opt.global-opt-out, automated-program.started and subscription-category.opt-in events.
Как установить скилл act-on-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл act-on-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic