const run = await workflow.run({ input: { since: "2026-10-01", channel: "ops" } });
console.log(run.id, run.data.status); // "running"run = workflow.run(input={"since": "2026-10-01", "channel": "ops"})
print(run.id, run.data["status"]) # "running"inputobject{}Feeds the {{input.…}} templates. Any shape you like.
It does not wait
The run is started and handed back. To follow it, call wait(), or keep the identifier and pick it up later with getRun().
const run = await workflow.run({ input });
await run.wait(); // until it finishes, or waits for a human
if (run.data.status === "waiting") {
const step = run.data.steps.find((s) => s.status === "waiting");
await run.resume(step.id, { approved: true });
}run = workflow.run(input=payload)
run.wait() # until it finishes, or waits for a human
if run.data["status"] == "waiting":
step = next(s for s in run.data["steps"] if s["status"] == "waiting")
run.resume(step["id"], {"approved": True})input is the only thing a run takes
Models, storages, prompts and addresses are fixed when the workflow is saved. That is the point: a run with nobody watching should not be able to be told, at launch, to do something different.
Other ways a run starts
| Trigger | Started by |
|---|---|
manual | this call |
cron | the schedule |
webhook | an inbound request |
mail | a message arriving |
All four produce the same kind of run, and input is filled from whatever started it.
What a run costs
Whatever its steps cost — model calls, searches, fetches, conversions, media. Each step reports its own credits, and the run carries the total.