Skip to content

end

Terminator. Captures a final result template so {{.Run.final_result}}-style reads can pick it up.

Sourceinternal/agents/workflow/nodes/end.go
When to useExplicit end-of-flow with a result payload. Implicit end is fine for fire-and-forget workflows — only declare it when you want a final value stored in run metadata.

Schema

FieldTypeRequiredNotes
resulttemplateFinal result expression. Rendered and stored in {{.Run.final_result}} on meta.json.

Output

result from the rendered template. When omitted, the node sets result: "".

Example

json
{
  "id": "done",
  "type": "end",
  "result": "Resolved {{.Node.triage.verdict}} for {{.Event.User.Name}}"
}

Implicit end

Any node with no outgoing edges acts as an end node. Declaring type: end is only needed when you want to capture a templated final result distinct from the last executed node's output.

Built with ❤️ by a developer, for developers.