# Build a decision (/docs/guides/build-a-decision)



Open a decision and go to the **Flow builder**. The canvas holds the graph; the palette on the
left lists the nodes; the inspector on the right configures the selected node.

## Wiring nodes [#wiring-nodes]

Drag a node from the palette onto the canvas and connect by dragging from an output port to an
input port. A branch node (Condition, Switch, Decision table, API call) exposes one port per
outcome, so the flow makes its decisions visible.

Select a node to configure it on the right. Select nothing to edit the **input** and **output**
models — the contract the caller's payload is validated against.

## Editing [#editing]

* **Undo / redo** covers structural and configuration changes.
* The draft **autosaves**; there is nothing to save by hand. Autosave writes the working draft,
  not a version — nothing a caller sees changes until you publish.
* Every node can carry **notes**: why it exists, where its numbers come from. Notes are part of the
  flow, so they are versioned and exported with it.

## The Checks panel [#the-checks-panel]

The **Checks** panel validates the graph as you work:

* **Errors** block publishing — an unreachable node, a missing key, a broken reference.
* **Warnings** do not — they flag things worth a look.

When it says **Ready to publish**, the draft is sound. See [Publishing](/docs/guides/publishing) for
what happens next.

<Callout title="Optimistic concurrency">
  Draft saves carry a `revision`. If two people edit the same decision at once, the second save is
  refused with a `409` rather than silently overwriting the first.
</Callout>
