Prerequisites
- An agent that runs correctly on its own. Test with
jstm agent runfirst. - Permission to add a webhook in the source system.
1
Create the binding
github provider, --event, --org, and --repo build the trigger source for you. Omit --repo for an org-wide binding. --mode is required: start with simulation while you check the mapping. The trigger is pinned to the agent’s latest version unless you pass --version.For a non-GitHub source, use --provider generic_webhook and set --trigger-source yourself. The endpoint accepts a CloudEvents 1.0 body or plain JSON. If the sender supports Standard Webhooks signing, add --auth-scheme standard_webhooks and omit --webhook-secret; the server generates the secret and prints it once.2
Get the webhook URL
3
Send a signed test
4
Confirm it landed
id is recorded as a duplicate, and one over the binding’s rate limit as rate_limited; neither starts a run.Then check the run itself:Mapping event data into the run
Use--input-mapping to shape the incoming payload into the agent’s input:
@file form keeps a long mapping out of the command line.
Turning a trigger off
Disable rather than delete when the pause is temporary. The binding, its secret, and its event history survive:Choosing the mode and version
Every trigger has its own mode and is pinned to one version, both chosen when you create it (--mode simulation|run, --version). Start in Simulation while you confirm the mapping is right — the webhook fires end to end, but nothing takes effect — then switch:
jstm trigger update 3f21b8c0-5d7e-4a91-b2c6-8e0f4d1a9b37 --version 0.0.4.
See also
- Triggers — how bindings behave.
jstm trigger— full reference.- Schedule an agent — for time-based runs instead.