{
name: "Weekly digest",
trigger: { type: "cron", cron: "0 8 * * 1" },
steps: [
{ id: "read", type: "storage.query", config: { … } },
{ id: "write", type: "model.generate", config: { … } },
],
edges: [
{ from: "__trigger", to: "read" },
{ from: "read", to: "write" },
],
}{
"name": "Weekly digest",
"trigger": {"type": "cron", "cron": "0 8 * * 1"},
"steps": [
{"id": "read", "type": "storage.query", "config": {}},
{"id": "write", "type": "model.generate", "config": {}},
],
"edges": [
{"from": "__trigger", "to": "read"},
{"from": "read", "to": "write"},
],
}namestringrequiredWhat it is called.
triggerobjectrequiredmanual · cron · webhook · mail.
stepsarrayrequiredOne to 30 steps.
edgesarrayThe graph. Absent means the order of steps is the chain.
Step identifiers
A letter, then letters, digits, underscores or dashes, 40 characters at most, unique in the workflow. They are what templates and edges name, so they are worth choosing readably: draft, approve, send.
Templates
| Written | Reads |
|---|---|
{{input.since}} | The run's input. |
{{steps.read.output.result}} | An upstream step's output. |
A reference to a step the workflow does not hold, or to one that is not upstream, is refused when the workflow is saved — see Errors.
Three step types require a human step
Each one acts outside the account, and a run has nobody to ask. A human step must be upstream on the path that reaches it — and a definition without one is refused when you save it.