Skip to main content
Alpha. The Input node is enabled per organization. Without it, the API rejects a workflow that holds one with 400 and names the node. Ask us to turn it on.
Input is the first node of a workflow that reads no document. You declare the fields the workflow needs, and each run sends their values. No file is parsed and no model runs: the values you send are the values the workflow uses. Use it when you already hold the data and want a document written from it, with a Report generator that fills a Word template.

The node

template_file_id is the id of a template uploaded to this same workflow. A template uploaded to another workflow is not found when the run starts.

Options

The schema the API accepts is generated from the same source: Input node schema.

Run it

Start a run with POST /v3/workflows/{workflow_id}/run/ and the values in metadata. No file is sent.
Each field takes the value under its result key, the field name in lower snake case. Nothing is converted: a value has to be what its field takes. A field you leave out, or send as null, is empty; a table you leave out has no rows. A key no field declares is ignored. A value that is not what its field takes refuses the run with 422 and error_code: "INPUT_VALUES_REFUSED", before anything runs. params.keys names each key and params.expected, at the same position, says what it takes:
You can also send the values as the metadata of Upload and run together with a file; the same check applies.

Connects to

A workflow starts at one Parse node or at one Input node, never both. Nothing feeds an Input.

What it returns

The values appear in the run results like the fields of an Extract node, under the Input node’s id. Each value has no confidence, because nothing was read: confidence is null, and its evidence cites the metadata key it came from. The run’s document packet holds one file, input-<id>.json, with the values as you sent them, so the packet reads like any other. The values are also the packet’s metadata. Pricing for runs that start at an Input node is not final while the feature is in alpha.