Skip to main content
A trigger binding connects an external event to an agent run. When a matching event arrives, the platform starts a run of the bound agent.

Bindings

A binding names the agent to run, the provider the event comes from, the trigger type, and the source that identifies which events match. For GitHub, you describe the source in parts and the platform assembles it:
Omitting --repo makes the binding org-wide. For other systems, use --provider generic_webhook and set --trigger-source directly.

Payload format

A webhook binding accepts either a CloudEvents 1.0 structured event or plain JSON. A body with specversion: "1.0" and string id, type, and source attributes is stored as the event; anything else is wrapped as the data of an envelope the platform builds from the binding. Either way, every recorded event is a CloudEvent. The CloudEvent id de-duplicates: a second delivery with the same id on the same binding is recorded as a duplicate and starts no run. If you can, have the sender set a stable id per event so retries are safe.

Signing

Webhook deliveries are verified in one of two ways. The default is HMAC-SHA256 over the raw body with a shared secret. --auth-scheme standard_webhooks uses Standard Webhooks instead: the server generates a whsec_ secret, prints it once, and verifies the webhook-id, webhook-timestamp, and webhook-signature headers with a five-minute replay window.
For HMAC, you either create the secret when the binding is created, or point at a credential you already hold: jstm trigger test sends a test delivery signed by the server using the real secret. The secret never leaves the backend, so the test exercises the true signature path rather than a mock.

Input mapping

An incoming payload rarely matches an agent’s declared inputs. --input-mapping bridges them:

Rate limits

Each binding can carry its own rate limit. The limit counts events that requested a run, per value of a chosen payload field within a window, and across the binding within the last hour:
An event over the limit is recorded with outcome rate_limited and starts no run. The sender still gets a 2xx, so it does not retry.

Inputs from a skill’s interview

When a skill asks its user questions — an interview rather than a fixed input list — those questions become fields in the agent’s input schema. They show up as fields on the run form in the web app, and a webhook binding fills them through --input-mapping like any other input.

Mode and version

Every trigger has its own mode and is pinned to one version of the agent. Both are set when the trigger is created (--mode simulation|run, and --version, the latest by default). A new build does not move a trigger. Change either later:
This is how you exercise a real webhook end to end while nothing takes effect — useful while confirming the mapping is right.

Events

Every delivery is recorded, whether or not it produced a run.
This is the first place to look when a webhook fired but nothing happened. The event record distinguishes “never arrived” from “arrived and was rejected” from “arrived and started a run that failed” — three very different problems.

Enabling and disabling

Disabling preserves the binding, its secret, and its event history:
Prefer this to deleting when the pause is temporary.

See also