Introduction

Documents rarely arrive sorted. A single upload can receive an invoice, a contract, an ID, or something nobody expected, and each needs different handling. Sorting them by hand slows down every process that comes after.

Classification & Routing recognizes what each document is and sends it down the path built for it. Its core capabilities include:

  • Document Classification – Sorts each document into one of the labels you define, with a confidence score.
  • Rule-Based Routing – Sends each document down its own path based on what it turned out to be, with a catch-all for anything unexpected.

Document Classification

The same process often receives several kinds of document, and the kind decides what happens next. Asking a person to look at each file first adds a delay to every one of them.

Document Classification solves this by reading each document and returning one of a fixed set of labels you write, such as DRIVING LICENSE, PASSPORT, or OTHER, along with a confidence score. It can only answer with one of your labels, exactly as written, so the next step can rely on it. A document that fits none of the expected types lands on your catch-all label rather than being forced into the wrong one.

A Classify step with the labels DRIVING LICENSE, PASSPORT, OTHER

For example, a KYC team receives driving licenses and passports through one upload. Each file is classified on arrival, and a purchase order uploaded by mistake comes back as OTHER, with a low confidence score that shows nothing really fit.

A run in which a purchase order uploaded as a KYC document was classified as OTHER with 60% confidence and routed to the step that sets only the KYC Type column

Rule-Based Routing

Knowing what a document is only helps if each kind is then handled correctly, and a process that treats every document the same way either does too much or too little.

Rule-Based Routing reads the classification, or any other value found so far, and sends the document down the matching path. Rules are checked from top to bottom, the first match wins, and a no-match route catches everything else, so every document has somewhere to go. Each path can read different fields, write to different objects, or call a different Flow.

A workflow that classifies a document, then routes driving licenses and passports to an extract step and every other document to a step that sets only its KYC Type column

In the Smart SharePoint Column Updates test drive, a driving license or passport goes on to have its details read, written to its SharePoint columns, and checked against today's date, while any other document only has its KYC Type column set to OTHER. The KYC Upload Checker test drive uses the same pattern.

With Classification & Routing, mixed documents no longer need a person to sort them, and each one gets the handling it needs.

For step-by-step builds, see the Classify and Rename Uploaded Files and KYC Upload Checker tutorials.