# Nodes (/docs/nodes)



A decision is a graph of nodes. A run walks that graph from the **Input** node to the **Output** node, one node at a time, and at every node it follows **one port**. This section has a page for each node, with diagrams that show what it reads, what it does and where the run goes next.

<Diagram node="overview" kind="example" />

## How a run moves [#how-a-run-moves]

1. **The scope.** Every node reads the same scope: the payload (by its bare name, `amount`, or `input.amount`), the variables written so far (`vars.score`), the output of earlier nodes (`nodes`), and project constants (`global.rate`).
2. **Variables.** A node that produces a value writes it to a variable, and every node after it can read it. A variable shadows a payload field with the same name.
3. **Ports.** A node finishes by choosing a port: `Next`, `True` / `False`, `Success` / `Error`, `Found` / `Not found`, `Matched` / `No match`, or one per switch case. Each port connects to one node.
4. **The trace.** Every step appends to a single trace: what ran, what it saw and why it went that way. See [the trace](/docs/concepts/trace).
5. **Failure.** A node that fails stops the run, unless it is an integration node set to continue with a fallback.

## The palette [#the-palette]

### Entry and exit [#entry-and-exit]

* [Input](/docs/nodes/input) — The entry point of every decision: it validates the payload against the input model.
* [Output](/docs/nodes/output) — The exit of a decision: it builds the response the caller receives.

### Branching [#branching]

* [Condition](/docs/nodes/condition) — Branches the flow on a boolean expression: True or False.
* [Switch](/docs/nodes/switch) — Branches on the first matching case, with a Default for the rest.

### Data and rules [#data-and-rules]

* [Decision table](/docs/nodes/decision-table) — Runs a reusable decision table and branches on Matched or No match.
* [Calculate](/docs/nodes/calculate) — Computes a value with exact decimals and stores it in a variable.
* [Append to array](/docs/nodes/append-to-array) — Adds values to a list variable, creating the list on first use.
* [Lookup](/docs/nodes/lookup) — Looks a value up in a dataset and branches on Found or Not found.

### Scoring and AI [#scoring-and-ai]

* [Scorecard](/docs/nodes/scorecard) — Adds up points per characteristic into a score, with adverse reason codes.
* [Model](/docs/nodes/model) — Scores with a linear or logistic regression, or calls an inference endpoint.
* [AI judgement](/docs/nodes/ai-judgement) — Asks a model typed questions about the state and records each answer with its confidence.

### Integrations [#integrations]

* [API call](/docs/nodes/api-call) — Calls an external HTTP service and branches on Success or Error.
* [Query](/docs/nodes/query) — Reads from a Postgres or Redis connection, read-only.
* [Velocity](/docs/nodes/velocity) — Aggregates a feature series for one entity over a time window.
* [Action](/docs/nodes/action) — Describes a side effect for the runtime to perform: webhook, event, alert, review.

### Composition [#composition]

* [Sub-decision](/docs/nodes/sub-decision) — Runs another published decision and writes its outputs into the flow.
* [For each](/docs/nodes/for-each) — Runs a published decision once per list element and collects the outputs.
* [Parallel](/docs/nodes/parallel) — Starts several published decisions at once and joins them before continuing.

## Which node do I need? [#which-node-do-i-need]

| I want to...                              | Use                                                                                                            |
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| Make a yes/no decision                    | [Condition](/docs/nodes/condition)                                                                             |
| Pick one path out of several              | [Switch](/docs/nodes/switch) or [Decision table](/docs/nodes/decision-table)                                   |
| Derive a number from the payload          | [Calculate](/docs/nodes/calculate)                                                                             |
| Collect values into a list                | [Append to array](/docs/nodes/append-to-array)                                                                 |
| Check a value against reference data      | [Lookup](/docs/nodes/lookup)                                                                                   |
| Score an applicant with points or a model | [Scorecard](/docs/nodes/scorecard) or [Model](/docs/nodes/model)                                               |
| Judge free text                           | [AI judgement](/docs/nodes/ai-judgement)                                                                       |
| Call a service or read a database         | [API call](/docs/nodes/api-call) or [Query](/docs/nodes/query)                                                 |
| Count what a customer did recently        | [Velocity](/docs/nodes/velocity)                                                                               |
| Notify, alert or queue a review           | [Action](/docs/nodes/action)                                                                                   |
| Reuse another decision                    | [Sub-decision](/docs/nodes/sub-decision), [For each](/docs/nodes/for-each) or [Parallel](/docs/nodes/parallel) |

## Settings every node shares [#settings-every-node-shares]

* **Name**, shown on the canvas and in the trace.
* **Notes** and **comments**, kept with the flow. The engine ignores them. See [comments and notes](/docs/guides/comments-and-notes).
* **Checks.** The panel validates the graph as you edit. Errors block publishing; warnings do not.

## Related [#related]

* [Build a decision](/docs/guides/build-a-decision)
* [Expressions](/docs/concepts/expressions)
* [The model](/docs/concepts/model)
