Adding document classifiers
You can add custom document classifiers to agentic workflows to automatically identify document types. You can define the document classes such as invoices, contracts, and bills, and the classifier uses AI to categorize documents based on those classes.
To add a document classifier to an agentic workflow:
- From the menu
, go to Build > Agent Builder.
- Select All tools.
- Do one of the following based on your needs:
- To create a new agentic workflow with a document classifier, click Create tool and select Create an agentic workflow.
- To add a document classifier to an existing agentic workflow, select the tool, click the Options icon
, and select Open in flow builder.
- Click the Add tools icon
. - Select the Create new tab.
- Drag Document classifier to the agentic workflow.
Configuring a document classifier
To configure a document classifier to identify documents:
- Select the document classifier that you added to the agentic workflow.
- Add the classes to identify the documents such as invoices, contracts, and bills.
- Click Done in the document classifier dialog.
Testing a document classifier
To test the document classifier and see how documents are classified:
-
Select the document classifier in the agentic workflow.
-
Select Test classifier and upload up to five documents.
To delete a document, click the Delete icon
on the document row. You can click Delete all to delete all documents. To add documents, click Upload or drag the files to the panel.It might take some time to upload the documents. After your documents are processed, you can see the predicted classification for each of your documents.
Documents that do not match the defined classes are classified as Other. You cannot delete the Other class. Documents that are classified as Other trigger a human review. For more information, see Configuring a human review.
If you add, edit, or delete a class, all documents are reclassified.
- After you test and get the expected results, click Done in the document classifier dialog.
Mapping data to inputs
By default, auto-mapping is enabled. However, you can map values to the inputs.
To map values to inputs, complete the following steps:
- Select the document classifier node and then click Edit data mapping.
- Specify the input values for data mapping. For more information about data mapping, see Mapping data.
Configuring a human review
Documents that are classified as Other trigger a human review. Only the user who initiated the agentic workflow can review the document.
When you select the document classifier, Flow initiator is dispayed next to Send for human review. You can click the Edit icon
to view this configuration.
-
An agentic workflow defines a set of linked activities and controls that are designed to achieve a specific business purpose or goal. Learn more about agentic workflows.
Document classifier limits and restrictions
Document classifiers have the following limits and restrictions.
| Area | Description |
|---|---|
| Maximum file size | 10 MB |
| Maximum number of uploaded files | 5 files |
| Accepted file types | .doc, .docx, .jpe, .jpeg .jpg, .pdf, .png, .ppt, .pptx, .tif, .tiff |
| Minimum length of the class name | 3 characters |
| Maximum length of the class name | 30 characters |
| Maximum number of classes | 10 classes |