# Input (/docs/nodes/input)



The **Input** node is where every run starts. It takes the payload the caller sent, checks it against the decision's **input model** and hands it to the first node. Every flow has exactly one, and it cannot be deleted.

## When to use it [#when-to-use-it]

* Declare the contract of the decision: which fields exist, their types, which are required and which values are allowed.
* Reject malformed requests early, before any rule, table or external call runs.

## How it works [#how-it-works]

<Diagram node="input" kind="anatomy" />

1. The payload is validated against the input model (a JSON Schema). An **empty model accepts anything**: "no contract yet" is not the same as "reject everything".
2. If it does not match, the run stops and fails with `VALIDATION_FAILED`, listing every violation with its path. Nothing downstream runs.
3. If it matches, the node records what arrived in the trace and passes the payload, unchanged, through its single **Next** port.

## Ports [#ports]

| Port   | Taken when                         |
| ------ | ---------------------------------- |
| `Next` | Always, once the payload is valid. |

## Configuration [#configuration]

| Field       | What it does                                                                                                                                    |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Name        | Label shown on the canvas and in the trace.                                                                                                     |
| Input model | The schema builder: fields, types, required flags and allowed values. It is also what the simulator form and the generated docs are built from. |

## What it writes [#what-it-writes]

Nothing is written to variables. The payload stays readable by every node by its bare name (`amount`) or through `input.amount`. The trace records `Input received` with the payload.

## In a real flow [#in-a-real-flow]

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

The caller posts a payload. A valid one flows on to the first rule; an invalid one is rejected right here, so a bad request never reaches your logic.

## When it fails [#when-it-fails]

* The payload does not match the model: the run fails with `VALIDATION_FAILED`.
* The model itself is invalid (for example `required` lists a field that is not declared): the Checks panel shows an error and publishing is blocked.

## Good to know [#good-to-know]

* A variable shadows a payload field with the same name. Write `input.amount` when you need the raw value.
* A flow can only have one Input node. A new draft ships with it, so it only shows up in the palette if it was removed.

## Related [#related]

* [The model](/docs/concepts/model)
* [Output](/docs/nodes/output)
