Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Start here

Build a first workflow

Create a synthetic manual graph, validate it and inspect exactly what executed.

23 Oct 2026 · 3 min read
Markdown ↗

Build your first graph using a pure calculation. This avoids provider setup and makes output, execution routing and version pins easy to inspect. The steps assume an existing ONF instance; see installation status for the public-release boundary.

Create a manual workflow#

Choose or create a workspace, then use the plus beside its workflow list to create a workflow. Give it a useful name such as Synthetic temperature check. Keep automatic execution disabled during construction. Graph changes are drafts until Save or Ctrl+S.

Add a manual trigger and an appropriate pure transformation from the available library. Search the actual catalog: asset IDs and socket IDs belong to the installed definitions. Read the selected asset's book documentation and inspector instead of assuming a label is its programmatic socket ID.

The manual run-input dialog accepts a JSON object. Use a harmless payload:

json
{"sampleId":"sample-001","temperature":28,"unit":"C"}

The manual trigger exposes the payload, and node code can also read the workflow input through context.input. A top-level array or primitive is not a valid manual run input.

Add a small code asset when needed#

If the installed library does not already provide the desired operation, create a Node asset with number input value, number output result, and optional control exec/next sockets. Use this TypeScript/JavaScript function body:

ts
const value = inputs.value;
if (typeof value !== 'number') throw new Error('Expected a number');
return { result: value + 2 };

Do not wrap the body in export default or paste a complete module. Test only the synthetic calculation, then Publish. A library Test executes real code; it is not a dry-run barrier for an API call.

Insert the published asset. Set its unwired value literal to 28, or wire an upstream numeric output into it. A wire takes precedence over a stored literal. Wire the desired execution route into exec when this operation must depend on a selected branch.

Validate, save and run#

Choose Validate and fix reported socket/configuration problems. A custom type needs an exact type ID and version; a similar-looking schema alone is insufficient. Save the draft explicitly. Run saves dirty workflow content before submitting execution, so reviewing the saved state first makes the action easier to understand.

With several trigger roots, select the intended manual entry before Run. An individually paused trigger must be resumed even when the workflow's automatic master remains off.

Inspect the result#

Run opens the evaluator attached to the accepted job. Select the calculation node to read its recorded Input, Output and Logs. A correct output includes result: 30. Inspect the overall run status separately from skipped alternative branches.

Closing or clearing the execution display does not cancel server work. Use Cancel on an active run when cancellation is intended. After this example works, try debugging with fixtures and a reusable subflow before adding external actions.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • docs/WORKFLOWS.md
  • docs/AUTHORING.md
  • docs/EXAMPLES.md
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗