Switch
Has the document classified by AI according to categories you define (for example "Invoice" / "Contract" / "Other"), and routes the flow to the matching branch — useful for applying different checks depending on the type of document received.
Ports
- Input (left, content type).
- Dynamic outputs — one per route defined in the configuration, plus always a "Default" output used when the AI doesn't recognize any defined type.
Configuration
- Classifier — AI model (default): an LLM reads the document and names the type. Decision model: a decision model gives each route (and "none") a probability — faster and cheaper.
- Classification AI model (AI model classifier) — optional, defaults to the organization's first active model.
- Decision model and minimum score (Decision model classifier) — the most likely route wins, unless its probability is below the minimum score (in %): the document then takes the "Default" output. Empty = no threshold. The test panel's node details show each route's probability.
- Routes — a list managed via an add/edit/delete modal, each route made up of a label and a description. The description directly guides classification: the more precise it is, the better the classification.
Refusing off-category documents
A route can lead to a refusal rather than to checks: wire it (typically "Default") to an Error message, itself wired to the Error exit. A document that gets there ends the job with the "Rejected" status and your message, instead of a job finished with no annotation.