Triggers
Decide when your agent picks up the task: run it by hand, on a schedule, from a signed webhook, or on an event from a connected integration.
A trigger decides when a workflow runs. A workflow can have any number of triggers, of any mix of types, each with its own label. Whichever one fires, the agent receives your prompt plus that trigger's payload as context.
There are four types: manual, schedule, webhook, and integration events.
Manual
Run the workflow yourself, on demand. Every workflow can be dispatched manually regardless of which other triggers it has, which makes this the easiest way to test a prompt.
A manual run can carry an arbitrary JSON input payload. The agent sees it as trigger context, so you can rehearse an event-driven prompt by handing it a sample event.
Schedule
Run the workflow on a schedule, using a standard cron expression with either five fields
(minute, hour, day-of-month, month, day-of-week) or six (a leading seconds field). Ranges (-),
lists (,), steps (/), and wildcards (*) all work.
0 9 * * 1-5 # 9:00 every weekday
*/15 * * * * # every 15 minutes
0 0 1 * * # midnight on the 1st of each monthSchedules run in UTC. Convert your local time before entering an expression, or describe the schedule in plain English and let Helios do it (below).
Natural language schedules
You can also describe the schedule in plain words - "every weekday at 9am Eastern", "the first Monday of the month" - and Helios converts it to a cron expression, handling the timezone conversion to UTC for you. You'll see the generated expression before you save it, and a plain-English readback of what it means.
If a description is too ambiguous to convert, Helios says so.
Default input
A schedule trigger can carry a default JSON input passed to the agent on every scheduled run.
Webhook
A webhook trigger exposes a public URL that any HTTP client can POST to:
https://<helios-host>/webhooks/agent-trigger/<workflowId>/<triggerId>The request body is parsed as JSON and handed to the agent as trigger context. An empty body is
treated as {}. A successful request returns the id of the run it started.
Signing
Because the URL is public, every request must carry a valid HMAC-SHA256 signature derived from a per-trigger signing secret. Helios generates the secret when you add the trigger; you can reveal it from the workflow's trigger panel.
| Header | Value |
|---|---|
X-Helios-Timestamp | Unix seconds at the moment of signing |
X-Helios-Signature | sha256=<hex digest> |
To sign a request:
- Capture the raw request body as bytes.
- Compute
HMAC-SHA256(secret, "<timestamp>.<rawBody>")and hex-encode it. - Send both headers above.
import crypto from "node:crypto";
const url = "<your webhook url>";
const secret = "<your signing secret>";
const ts = Math.floor(Date.now() / 1000);
const body = JSON.stringify({ hello: "world" });
const sig = crypto
.createHmac("sha256", secret)
.update(`${ts}.${body}`)
.digest("hex");
await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Helios-Timestamp": String(ts),
"X-Helios-Signature": `sha256=${sig}`,
},
body,
});Helios rejects a request with 401 when the signature header is missing or doesn't begin with
sha256=, when the timestamp is more than 5 minutes away from server time, or when the digest
doesn't match. The response body is deliberately generic; the precise reason is in your workflow's
server-side logs.
Three details that cause most signing bugs:
- The secret is signed as a UTF-8 string. Don't
Buffer.from(secret, "hex")on one side only. - The body is signed exactly as transmitted. A proxy that reformats JSON or changes whitespace will break the signature.
- An empty body signs as the empty string - sign over
"<timestamp>."with nothing after the dot.
Rotating the secret
Rotate a webhook trigger's signing secret from the workflow's trigger panel. Rotation takes effect
immediately and there is no overlap window - every existing sender gets 401 until it is
reconfigured with the new secret.
Integration events
Run the workflow when something happens in a connected service, such as a new GitHub pull request. Each integration's page lists its events, its filters, and any setup the service needs. Integrations without events can still be used by an agent. Start those workflows with a schedule, a webhook, or by hand.
Choose the integration, the event, and any filters. The agent receives the full event payload as trigger context.
Filters
Each event exposes a set of filter fields. Within one field, multiple values are OR'd; across different fields they are AND'd. Leaving an optional field empty means "match anything".
Fields marked as patterns accept glob syntax: * (any characters within a segment), ? (one
character), ** (across segments), [abc] / [a-z] (character classes), and {a,b} (alternation).
How events reach Helios
The service sends each event to a webhook URL that belongs to your connection. There are two ways that webhook gets set up, and each integration's page says which one it uses.
- Automatically. Helios registers the webhook or event subscription with the service when you save the connection. The credential needs permission to manage webhooks. The integration's page names that permission.
- By hand. You create the webhook in the service yourself. In Helios, open the connection and click Manage. Webhook Setup shows the URL to paste into the service and a field for the webhook secret. Enter the secret in Helios before you save the URL in the service, because some services send a test request as soon as you save it.
Some services turn off a webhook after repeated failed deliveries. If events stop arriving for a connection that sets up its webhook automatically, save the connection again to register it again.
Check that a trigger works
- Add the trigger to a workflow and fill in required filters, leaving optional filters empty.
- Cause the event in the service, for example by creating a test issue.
- Check that a run starts. Then open the connection and click Webhook events. It lists the events that matched a workflow.
If no run starts, see an integration event never fires. Once the trigger works, narrow the optional filters.
Guarding against events you don't want
Filters narrow which events reach your agent, but they can't express everything. The agent sees the event payload and your prompt together, so the prompt is the second filter - say plainly what should happen when the event doesn't warrant action:
When a pull request is opened in acme/api, review the diff.
If it only touches files under docs/, do nothing and stop.Agents are instructed to stop as soon as they determine no action is required, so a run that decides to do nothing still succeeds - it just has no side effects.
Runs that trigger themselves
An agent that changes the thing that started its run can start another run. For example, an agent
that comments on an issue in response to comment.created fires comment.created again, and an
agent that edits a record in response to an update event fires that update event again. Each
integration's page names the actions to watch for.
To stop a loop before it starts:
- Narrow the trigger with filters so the agent's own changes don't match.
- Mark the agent's own changes and tell it to skip them. For example: "Start every comment you write with [agent]. If the new comment starts with [agent], stop."
Next
- Runs and outputs - what happens after a trigger fires.
- Integrations - connecting the services your agents use.
Last updated on