Triggers
A trigger determines when a workflow runs. Every run is created by exactly one trigger, and the trigger metadata is recorded on the run for auditability.
Trigger types
Section titled “Trigger types”| Type | How it starts a run |
|---|---|
| Manual | A user clicks Run in the editor, or invokes orvanta flow run / orvanta script run. |
| Schedule | A cron expression fires the workflow on a recurring basis. See Schedules. |
| Webhook | An inbound HTTP request to the workflow’s unique webhook URL. |
| API | A programmatic call to the REST API. |
Webhook triggers
Section titled “Webhook triggers”Each workflow (script or flow) gets an autogenerated webhook URL. Posting to it creates a run and passes the request body in as arguments, matched by key to the workflow’s input parameters:
curl -X POST https://app.orvanta.cloud/api/w/demo/jobs/run_wait_result/p/u/bot/process_order \ -H "Authorization: Bearer $ORVANTA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"order_id": "ord_123"}'See Webhooks for the full set of synchronous, asynchronous, and SSE stream endpoint variants, including the equivalent path for flows.
Manual triggers
Section titled “Manual triggers”orvanta flow run f/demo/welcome --data '{"env": "production"}'Run a single script directly with orvanta script run <path> --data '{...}'.
Choosing inputs
Section titled “Choosing inputs”Whatever the trigger, inputs are validated against the workflow’s declared input schema before the run starts. Invalid input is rejected with a clear error rather than producing a partial run.
Related
Section titled “Related”- Schedules: Cron-based recurring triggers.
- Workflows: How triggers fit into a workflow.
- Jobs and runs: What a trigger creates.