The node
type on the wire is splitter. In the API, routing lives on the edges. An edge that leaves a Split node must set branch to a rule id, not its name, and each rule needs its own target node:
branch accepts the rule object or its id string. Once a workflow has a Split node, every extract() call needs a branch.
The same node after a Classify node. Only the documents in one category reach the Split node:
In Studio
Click the Split node on the canvas to open its panel. Add a rule with its Type (the name), Description and optional Partition key. Each rule appears as a port on the node; drag from a port to the Extract node that handles that rule.
Options
rules is required. partition_key is optional on each rule.
Partition keys. Without one, every page that matches a rule flows on as one document: a batch of ten statements from ten accounts reaches Extract as a single statement. Set
partition_key to the name of the value that tells the documents apart, for example account_number or invoice_number. The model reads that value on each page. Pages that share one value form one split, and each split is extracted on its own. Ten accounts become ten extractions, each with its own partition value in the results. The key is a hint to the model, not a reference to the Extract schema; it does not have to match a field name downstream.
The schema the API accepts is generated from the same source: Splitter node schema.
Connects to
A Classify node can feed Split in place of Parse. Split feeds Extract and nothing else.
What it returns
Split fills thesplits section of the run results, one entry per rule of each Split node. Two Split nodes that use the same rule name each get their own entry. The entry names the rule and lists the pages that fell under it, and a rule with a partition key adds one partition per distinct value.
name is the rule’s name. id names one sub-document. It is null for a rule with a partition key, because the rule is then several sub-documents, and each partition has its own id. Page numbers are 1-indexed. confidence is on a 0 to 100 scale: a partition reports the minimum across its page ranges, and a rule the minimum across its partitions. It is null when no page matched. A rule’s files is the union of its partitions, so the second partition of this rule is elided above.
Both partitions in full
Both partitions in full
extractions[], one entry per split and partition. Each entry names its split by split_id: the id of the entry in partitions[] when the entry has a partition value, and the id of the entry in splits[] otherwise. Join on split_id, because two Split nodes can use the same rule name, and each has its own entry in splits[]. A rule with a partition key can also find pages that have no partition value. Their entry has a split_id and a null partition, and no splits[] or partitions[] entry carries that id, so join those entries on split_name. GET /v3/splits/{split_id}/pdf/ still accepts it. split_name (the rule name) and partition (the partition value, null when the rule has no partition key) stay for display:
Billing
Billed at 25 credits per page. Full price list: How credits work.Examples
- Bank statement processing: one file, many statements, a partition key per account.
- Invoice processing: a scanned batch of invoices split by invoice number.

