A webhook is how two systems "call each other when something happens." Here there are two directions:
- Outbound: something happens on your site (someone pays, a refund goes through, a tag gets added...), and the system sends a request to an address you provide, carrying that event's data. Use this to connect your own ERP, spreadsheets, WeCom bots, and so on.
- Inbound: another system sends a request to a dedicated address on your site, which triggers one of your workflows. For example, when a third-party form tool receives a sign-up, it can make your site automatically send a welcome email.
The "Webhook" page in the admin panel is the master log for both directions: who called whom, whether it succeeded, and how many retries a failed call has had — it's all here.
Where to find it
Admin → Settings → Webhook. At the top are six numbers for the last 7 days: inbound successes, inbound failures, outbound successes, outbound failures, pending retries, and dead letters. Below that are four tabs:
| Tab | What's there |
|---|---|
| 📊 Overview | Your inbound addresses, and the signature-verification toggle for each one |
| 📥 Inbound log | Every request that came in from an external system |
| 📤 Outbound log | Every request your site has pushed out |
| ⚙️ System Webhooks | A fixed reference list (see the end of this article) |
You don't set outbound addresses on this page — those live in automation rules, covered in the next section.
Outbound: which events you can push, and how to set them up
An outbound webhook is an action inside an automation. The rule's "Trigger event" decides when it fires, and the "Call a webhook" action decides where it goes.
Which events can trigger a push
Any trigger event available to automation rules can push a webhook. The common ones:
| Category | Events |
|---|---|
| Buying & selling | Purchase succeeded, refund requested, refund completed, payment failed, subscription cancelled, cart abandoned |
| Customers | Tag added, form submitted, contact-us message, lead score reached a threshold |
| Email opened, email link clicked, email unsubscribed | |
| Courses & access | Access about to expire, access expired |
| Bookings & webinars | New booking, booking cancelled, booking completed, no-show; webinar registered, attended, watched to the end |
| Content | New blog post published, new item in an external RSS feed |
| Visits | Visited a specific page |
For the full list, and whether each event carries customer identity, see "What can trigger an automation."
Set it up in the admin panel (address + method)
- Admin → Marketing → Automations, open or create a rule, and choose a trigger event.
- Add a "🔗 Fire a webhook" action, and enter the URL (the receiving address the other system gave you); if you leave Method blank it defaults to POST.
- Save, and make sure the rule is enabled. Rules created in the admin panel are enabled by default; rules your AI creates are disabled by default — ask it to call
enable_automationas well.
Workflows have the same action too, called "🔗 Call a webhook" — fill in the address and method the same way.
What gets sent
The request body an automation rule sends is JSON, and by default carries these fields (only meaningful when they have a value):
event: the trigger eventuserId,userEmail,userName,userCountry: who the customer isproductId,amount,currency,paymentIntentId: purchase-relatedfunnelId,stepId: funnel-relatedtriggerPayload: the raw data attached at the moment it fired
The request header includes Content-Type: application/json.
Signing, custom headers, and a custom body (currently AI-only)
The admin form only has two fields: address and method. To add a signature to an outbound request, add custom headers, or change the body, ask your AI to write it into the action using upsert_automation:
secret: the signing key. Once set, every request carries a signature header, so the receiving side can verify the request really came from your siteheaders: extra request headers, as a JSON objectpayload: a custom request body, as JSON, merged with the default fields
Tell your AI: "Add a signing key to the webhook action on the 'push purchases to ERP' rule — the key is ..." upsert_automation only needs the fields you're changing when editing an existing rule; everything else stays as-is.
What happens on failure
- Only a 2xx response counts as success. A failed connection or a 4xx/5xx response both count as a failure.
- After the first failure it automatically moves to "Pending retry," then retries once each at 1 minute, 5 minutes, and 30 minutes later.
- If all three retries fail, it becomes a "Dead letter" and won't retry automatically again.
- In the "Outbound log," any failed or dead-letter row has a "Retry" button — clicking it queues a fresh retry from scratch.
- Every row has a "Details" link showing exactly what was sent and what the other side replied.
You'll also see Lark / Slack / Discord group-notification requests in the outbound log — they travel through the same sending channel.
Inbound: let an external system trigger your workflow
Step 1: create a workflow triggered by "an external system calling in" (currently AI-only)
You can't change the trigger type on the workflow canvas in the admin panel — ask your AI to create it instead. Tell it:
"Create a workflow triggered by an external system calling in. When it receives a call, send a welcome email to this address and add this tag."
It will first call describe_workflow_schema to see the available triggers and actions, then call upsert_workflow with the webhook_inbound trigger. New workflows are disabled by default — once you've checked it over, have it call enable_workflow.
Step 2: generate an address
- Admin → Settings → Webhook → "📊 Overview," and find this workflow in the list of inbound trigger endpoints.
- A freshly created address ends in
(missing-token)and can't be used yet. Click "🔄 Rotate token" to generate one. - Click "Copy," and paste the address into the other system.
The address looks like this: https://your-domain/api/automation/webhook/a-random-string. That string is the key — anyone who knows it can trigger your workflow. If you suspect it's leaked, click "🔄 Rotate token" again and the old address stops working immediately.
Step 3 (strongly recommended): turn on signature verification
Click "🔐 Turn on HMAC signing" to generate an HMAC secret, then click "Copy" and give it to the other system. Once this is on, any request without the correct signature is rejected outright.
- To change the key: "🔄 Rotate secret"
- To turn off signature checking: "✕ Turn signature checking off" (once it's off, anyone who knows the address can call it — you'll get a confirmation popup)
What the other side should send
- Method: POST, with a JSON body
- If the body includes
emailandnamefields, the system reads them as who this request is for - When signature verification is on, the request header must include
X-TST-Signature, in the formatt=timestamp,v1=signature - If the workflow grants access, changes roles, adds people to communities or applies a community access tag, signature verification is required and can't be turned off. If it isn't on yet, the first call automatically generates a secret and is rejected — copy the secret here and give it to the other system
The signature is calculated like this:
- Use the current Unix timestamp in seconds
- Concatenate, in order: the timestamp, a period, and the raw request body
- Run HMAC-SHA256 on that string using the HMAC secret, and convert the result to lowercase hex — that's the signature
If the timestamp is more than 5 minutes off from our server's clock, the request is rejected — this prevents someone from capturing an old request and replaying it.
What we respond with
| Status code | Meaning |
|---|---|
| 200 | Received — the workflow has been triggered |
| 400 | The token in the address is malformed |
| 401 | Signature check failed (missing signature header, wrong signature, or clock skew too large) |
| 404 | This address doesn't exist, or the workflow isn't enabled |
Every call, whether it succeeds or fails, is logged in "Inbound log." A checkmark in the "Signature" column means the signature passed.
Let the AI do it
| You say | AI calls | Notes |
|---|---|---|
| "Push to this address when a payment succeeds" | upsert_automation | Disabled by default when created; use enable_automation once confirmed |
| "Add a signature to this webhook" | upsert_automation | Only changes the secret in the action |
| "Create a workflow that an external system can trigger" | describe_workflow_schema → upsert_workflow | Disabled by default when created; use enable_workflow once confirmed |
| "How has this rule been running lately" | list_automation_runs | Read-only |
There's currently no AI tool for webhook logs, retries, generating inbound addresses, or turning on signature verification — those need to be done on this admin page.
Things to watch for / FAQ
- Q: Outbound calls keep failing, and the log shows HTTP 401 or 403?A: The other system probably requires authentication. Ask your AI to add the authentication header they gave you using
headers. - Q: I turned on outbound signing, and the other side sometimes reports an expired signature?A: A retry resends the exact same request as the first attempt, including the original timestamp in the signature. The retry 30 minutes later still carries a timestamp from 30 minutes ago. If the other side uses a 5-minute replay window, their own system will reject the retry. Ask them to widen the window to at least an hour, or to de-duplicate based on the request body instead.
- Q: I created two inbound workflows, called one of the addresses, and both of them ran?A: Yes. Right now, a request to any inbound address runs every enabled "external system calling in" workflow — the address is only used to confirm the request is valid. If you need to handle requests differently by source, keep just one inbound workflow and use a conditional branch inside it instead.
- Q: "⚙️ System Webhooks" says Stripe is configured, but I haven't set it up yet?A: That section is a fixed reference list, not a live check. To see whether your Stripe payment callback is actually set up, ask your AI to call
get_my_credentialsand check the Stripe section, or see "Receiving payments (Stripe)." - Q: Do the pending-retry and dead-letter counts stick around forever?A: The six numbers at the top only cover the last 7 days.
Related articles
- "What can trigger an automation" (automation-triggers)
- "Remember to enable automation rules after creating them" (automation-enable)
- "Receiving payments (Stripe)" (stripe-setup)