When numerous documents flow in, segregating them becomes labour-intensive. To automate it using AI, Staple AI launched Labelling. Invoice, purchase order, and delivery note classification is a great example in retail. In the Insurance industry, it can be classifying claims, hospital bills, outpatient receipts, and settlement invoices. Now, let’s check out how Staple AI automates classification.
Labels in Staple AI automatically classify and route documents to the correct queues. Instead of manually sorting invoices, purchase orders, receipts, or claims, Labels can automatically
This reduces manual sorting and speeds up document processing workflows. For example, we’ll classify invoices, purchase orders and delivery notes.
The classification flow has four main components.
Once configured,
Go to Models screen and click the ”+ NEW MODEL” to create a model called “Document Classifier”. (Also, please refer to this page on how to create models)

Upload an invoice and a purchase order to train the AI

Create a field “Document_Type” as showcased in the image below. Also, add a detailed field description(character limit 1024). This guides the AI to extract the right information from the document and help classify.

Create four queues, namely, Classifier, Sales Invoice, Purchase Order, Receipt. When we upload documents into the classifier, they’ll be automatically classified and moved to the respective queues.

In the classifier queue settings, make sure the custom model is “Document Classifier,” which we had created earlier.

Go to Labels and create a label for each document type. Click “+New Label” in the right corner of the screen. These labels are tags that, when applied to a document, trigger an automatic action. Delete and edit labels using the options under the “Actions” column.

Create a label to tag sales invoices.
Likewise, multiple options can be set when a label is applied.

Likewise, create two more labels for classifying purchase orders and receipts.


Navigate back to the Classifier queue. Rules help us apply labels automatically. Post which, the entire flow becomes automatic.

In the queue setting of the “Classifier queue”, scroll to the “Rules” section. First, set rules for classifying sales invoices.

Create rules for classifying purchase orders and receipts.


Once configured,
Receipts, when uploaded to the “classifier queue,” automatically move to the “Receipt” queue. Please note that the label “RECEIPT - C…” is automatically applied to the “lunch bill” receipt.

Likewise, Invoice and purchase orders are automatically classified and moved to their respective queues.


The classifier queue will appear empty because documents are automatically routed.

Apply labels to a document in the scanning screen as well as in queues


Apply labels without any action. This is useful for tagging and filtering