Skip to content

Commit 3dc7440

Browse files
committed
docs: address webhooks review comments
Keep batched bodies intact in the Hookdeck transformation, drop the Stripe-only filter from the generic Hookdeck example, add Slack's install step and Typeform's On switch, filter Zendesk on event.type, correct retry, header and ordering wording, and remove the Composio page until its secret format is supported.
1 parent 93d7f32 commit 3dc7440

12 files changed

Lines changed: 26 additions & 63 deletions

‎docs/docs.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@
196196
"webhooks/providers/cal-com",
197197
"webhooks/providers/calendly",
198198
"webhooks/providers/clerk",
199-
"webhooks/providers/composio",
200199
"webhooks/providers/discord",
201200
"webhooks/providers/docusign",
202201
"webhooks/providers/elevenlabs",
@@ -906,6 +905,10 @@
906905
"source": "/webhooks/providers/intercom",
907906
"destination": "/webhooks/providers"
908907
},
908+
{
909+
"source": "/webhooks/providers/composio",
910+
"destination": "/webhooks/providers"
911+
},
909912
{
910913
"source": "/webhooks/providers/zoom",
911914
"destination": "/webhooks/providers"

‎docs/webhooks/deliveries.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ When the source maps a provider event ID, that ID becomes the key, so the provid
8989

9090
| Key | Providers |
9191
| --- | --- |
92-
| A header | GitHub (`X-GitHub-Delivery`); Svix, Clerk, Resend and Autumn (`svix-id`); Standard Webhooks, OpenAI, Replicate, Recall.ai, Composio, Loops and Granola (`webhook-id`); Linear (`Linear-Delivery`); PagerDuty (`X-Webhook-Id`); Jira (`X-Atlassian-Webhook-Identifier`); Zendesk (`X-Zendesk-Webhook-Invocation-Id`); Attio (`Idempotency-Key`); Shopify (`X-Shopify-Webhook-Id`); Hookdeck (`X-Hookdeck-Eventid`, or `<prefix>-eventid` with a custom header prefix) |
92+
| A header | GitHub (`X-GitHub-Delivery`); Svix, Clerk, Resend and Autumn (`svix-id`); Standard Webhooks, OpenAI, Replicate, Recall.ai, Loops and Granola (`webhook-id`); Linear (`Linear-Delivery`); PagerDuty (`X-Webhook-Id`); Jira (`X-Atlassian-Webhook-Identifier`); Zendesk (`X-Zendesk-Webhook-Invocation-Id`); Attio (`Idempotency-Key`); Shopify (`X-Shopify-Webhook-Id`); Hookdeck (`X-Hookdeck-Eventid`, or `<prefix>-eventid` with a custom header prefix) |
9393
| A body field | Stripe, Vercel, WorkOS, Metronome, Mux, Langfuse and Plain (`id`); Square, Slack and Typeform (`event_id`); Firecrawl (`webhookId`) |
9494

9595
The other built-in providers (Calendly, Cal.com, Sentry, DocuSign, ElevenLabs, Vapi, Retell, Tailscale, Infisical, PlanetScale, Supabase, Discord, GitLab and WhatsApp) use the fallback below.

‎docs/webhooks/pricing-and-limits.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: "What webhooks cost on Trigger.dev Cloud, which plan limits apply,
66

77
Webhooks have no separate charge on Trigger.dev Cloud. Receiving, verifying, filtering and recording deliveries is included in every plan. The runs a delivery starts or resumes are billed like any other run: a per-run invocation cost plus compute time. See [pricing](https://trigger.dev/pricing).
88

9-
A delivery that no subscriber's filter matches starts no run for any subscriber, so it costs nothing. A run already waiting for that webhook still resumes. A run [waiting](/webhooks/waiters) for a webhook is suspended, so it uses no compute until the webhook arrives.
9+
A delivery that no subscriber's filter matches starts no run, so it adds no run cost. A run already [waiting](/webhooks/waiters) for that webhook still resumes and is billed like any other run. A run [waiting](/webhooks/waiters) for a webhook is suspended, so it uses no compute until the webhook arrives.
1010

1111
Each plan sets limits on the ingest rate, waiting runs, processing concurrency and how long deliveries are kept. See [Limits](/limits#webhook-ingest-rate-limits).
1212

‎docs/webhooks/providers.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ description: "Every built-in webhook provider, with its SDK function, the creden
1313
| [Cal.com](/webhooks/providers/cal-com) | `webhooks.calCom()` | You generate it |
1414
| [Calendly](/webhooks/providers/calendly) | `webhooks.calendly()` | You choose it (OAuth apps: issued by the provider) |
1515
| [Clerk](/webhooks/providers/clerk) | `webhooks.clerk()` | Issued by the provider |
16-
| [Composio](/webhooks/providers/composio) | `webhooks.composio()` | Issued by the provider |
1716
| [Discord](/webhooks/providers/discord) | `webhooks.discord()` | Provider's public key |
1817
| [DocuSign](/webhooks/providers/docusign) | `webhooks.docusign()` | Issued by the provider |
1918
| [ElevenLabs](/webhooks/providers/elevenlabs) | `webhooks.elevenlabs()` | Issued by the provider |

‎docs/webhooks/providers/composio.mdx‎

Lines changed: 0 additions & 40 deletions
This file was deleted.

‎docs/webhooks/providers/hookdeck.mdx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const hookdeck = webhooks.endpoint.define({
1717
export const hookdeckEvents = webhook({
1818
id: "hookdeck-events",
1919
endpoint: hookdeck,
20-
filter: "event.type == 'payment_intent.succeeded'",
2120
onEvent: async ({ event }) => {
2221
console.log(event);
2322
},
@@ -77,7 +76,7 @@ You can also point a Hookdeck destination at the [trigger task API](/management/
7776

7877
```javascript
7978
addHandler("transform", (request, context) => {
80-
request.body = { payload: { ...request.body } };
79+
request.body = { payload: request.body };
8180
return request;
8281
});
8382
```

‎docs/webhooks/providers/slack.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ To run a subscriber only for some events, add a [filter](/webhooks/filters) on `
4040
2. In your Slack app's settings, set the **Event Subscriptions** request URL to the webhook URL and subscribe to the bot events your subscribers need.
4141
3. Copy the app's **Signing Secret** from **Basic Information > App Credentials**, then choose **Set signing secret** on the Trigger.dev endpoint.
4242
4. Back on the Event Subscriptions page, choose **Retry**. Slack's `url_verification` challenge is answered by the endpoint once the secret is set.
43-
5. Send a test event from Slack, or use the endpoint's **Test** tab, and check the endpoint's **Deliveries** tab. See [Verify the connection](/webhooks/connect#verify-the-connection) if nothing arrives.
43+
5. Install the app to your workspace, or reinstall it if the bot events need new scopes. Slack only delivers events the workspace has authorized.
44+
6. Send a test event from Slack, or use the endpoint's **Test** tab, and check the endpoint's **Deliveries** tab. See [Verify the connection](/webhooks/connect#verify-the-connection) if nothing arrives.
4445

4546
## Build a Slack agent
4647

‎docs/webhooks/providers/typeform.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ To run a subscriber only for some events, add a [filter](/webhooks/filters) on `
3838
1. Start `trigger dev` or deploy, then copy the endpoint's **Webhook URL** from the **Webhooks** page.
3939
2. Choose **Generate secret** on the Trigger.dev endpoint and copy the value.
4040
3. In Typeform, open the form's **Connect > Webhooks** and add a webhook with the webhook URL. Edit it and paste the secret into **Secret**. You can also set `secret` when you create the webhook with Typeform's API.
41-
4. Send a test event from Typeform, or use the endpoint's **Test** tab, and check the endpoint's **Deliveries** tab. See [Verify the connection](/webhooks/connect#verify-the-connection) if nothing arrives.
41+
4. Turn the webhook **On**. Typeform creates dashboard webhooks switched off.
42+
5. Send a test event from Typeform, or use the endpoint's **Test** tab, and check the endpoint's **Deliveries** tab. See [Verify the connection](/webhooks/connect#verify-the-connection) if nothing arrives.

‎docs/webhooks/providers/zendesk.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Zendesk webhooks"
33
sidebarTitle: "Zendesk"
4-
description: "Receive and verify Zendesk webhooks with Trigger.dev. Check the HMAC-SHA256 signature in x-zendesk-webhook-signature and run a task for each Zendesk event, filtered on event.status."
4+
description: "Receive and verify Zendesk webhooks with Trigger.dev. Check the HMAC-SHA256 signature in x-zendesk-webhook-signature and run a task for each Zendesk event, filtered on its event type."
55
---
66

77
**`webhooks.zendesk()` verifies the HMAC-SHA256 signature Zendesk sends in `x-zendesk-webhook-signature` on every request.**
@@ -23,14 +23,14 @@ export const zendeskEvents = webhook({
2323
});
2424
```
2525

26-
To run a subscriber only for some events, add a [filter](/webhooks/filters) on `event.status`.
26+
To run a subscriber only for some events, add a [filter](/webhooks/filters) on `event.type` for Zendesk event subscriptions. For trigger and automation webhooks, you write the JSON body, so filter on a field your template sends.
2727

2828
| Setting | Value |
2929
| --- | --- |
3030
| Source | `webhooks.zendesk()` |
3131
| Verification | HMAC-SHA256 in `x-zendesk-webhook-signature` |
3232
| Credential | Signing secret issued by Zendesk |
33-
| Event type | `event.status` |
33+
| Event type | `event.type` for event subscriptions; a field from your template for triggers and automations |
3434
| Zendesk docs | [Zendesk webhook docs](https://developer.zendesk.com/documentation/webhooks/verifying/) |
3535

3636
## Set up Zendesk

‎docs/webhooks/session-routing.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Route verified webhook deliveries to a durable per-key session ins
44
sidebarTitle: "Session routing"
55
---
66

7-
**Session routing sends deliveries that share a key (a customer, an installation, an issue) to one durable [session](/ai-chat/sessions), handled in order with state carried across them.** A plain [`webhook()`](/webhooks/overview) starts a fresh, stateless run for every delivery instead.
7+
**Session routing sends deliveries that share a key (a customer, an installation, an issue) to one durable [session](/ai-chat/sessions), handled one at a time with state carried across them.** A plain [`webhook()`](/webhooks/overview) starts a fresh, stateless run for every delivery instead.
88

99
Instead of a handler, you declare a `chat.event` on an [endpoint](/webhooks/overview) and list it on an agent. The verified delivery is routed to a find-or-created session and arrives as an [action](/ai-chat/actions).
1010

0 commit comments

Comments
 (0)