trigger: { type: "webhook" }
// A step reads what arrived
{ id: "classify", type: "model.generate", config: {
model: "gemini-3.5-flash",
prompt: "Classify this event: {{input.event}}" } }trigger = {"type": "webhook"}
# A step reads what arrived
{"id": "classify", "type": "model.generate", "config": {
"model": "gemini-3.5-flash",
"prompt": "Classify this event: {{input.event}}"}}The input came from outside
A body that reaches a model's prompt is somebody else's text inside your instruction. Say what the step should do with it — « classify this », « extract the fields » — rather than letting the content set the task.
Validate the shape yourself
Nothing guarantees a field is there. A condition step early in the chain, checking that what you need exists, turns a malformed call into a branch rather than a failure five steps later.
{ id: "has_id", type: "condition", config: {
left: "{{input.id}}", operator: "exists" } }{"id": "has_id", "type": "condition", "config": {
"left": "{{input.id}}", "operator": "exists"}}The approval rule applies
An inbound request is the least supervised trigger there is. A chain that sends, publishes or writes DNS from one needs a human step upstream, and a definition without it is refused.
Volume is cost
Every call that arrives is a run, and every run costs what its steps cost. Put the cheap checks first — a condition before a model call is free, the other way round is not.