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.For a non-GitHub source, use --provider generic_webhook and set --trigger-source yourself.2
Get the webhook URL
3
Send a signed test
4
Confirm it landed
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 run environment
By default a triggered run uses the agent’s current stage. To pin a trigger to a specific environment regardless:See also
- Triggers — how bindings behave.
jstm triggers— full reference.- Schedule an agent — for time-based runs instead.