Skip to main content
Classify reads the parsed document and picks one of the categories you define. Each category is an outgoing branch, so a mixed inbox of invoices and receipts can flow to an Extract node built for each kind. It lives in the Intelligence section of the Studio palette. A Classify node needs at least one category: an id, a name and a description the model reads. Every edge leaving the node names the category it fires for.

The node

In the API, routing lives on the edges. An edge that leaves a Classify node must set branch to a category id, not its name:
The SDKs write these edges for you. branch accepts the category object or its id string. Once a workflow has a Classify node, every extract() call needs a branch. The same node with extra instructions for the classifier:

In Studio

Click the Classify node on the canvas to open its panel. Add a category with its Type (the name) and Description. The Describe classification process box is the user_prompt. Each category appears as a port on the node; drag from a port to the node that handles that category. Configuring the Classify node in Studio

Options

categories is required. user_prompt is optional. The schema the API accepts is generated from the same source: Classify node schema.

What it returns

Classify fills the classifications section of the run results, one verdict per Classify node that ran:
category is the category name, not its id. confidence is on a 0 to 100 scale, null when no score was measured. evidence is one free-form string the classifier wrote, not a list of snippets; it is null when none was captured. The Extract node on the chosen branch fills extractions[] as usual: one entry, with split_name and partition set to null, because Classify routes the whole document and does not split it. See Extract.

Connects to

Each outgoing edge carries one category id, and each category id appears on one edge at most. Several categories may point at the same Extract node. A workflow has one Classify node at most in the SDK builders. To split a file after classifying it, connect one category to a Split node. In the SDKs, split(..., route_from=<category>) names that category.

Billing

Billed at 10 credits per page. Full price list: How credits work.

Examples