The TEXT_CLASSIFICATION action classifies text content into one of a predefined set of categories.
Use this action when you need to automatically categorize documents according to business-defined labels. The action analyzes the document text and selects the most appropriate classification from the list of candidate labels that you provide. The resulting classification can be used for content organization, governance, search, workflow routing, analytics, and downstream AI applications.
The action submits a Content Lake document reference to the Knowledge Enrichment service, evaluates the document against the supplied classification labels, and returns the selected category.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| classes | String | Required | Comma-separated list of classification labels that can be assigned to the document, for
example:
contract, invoice, report |
| content | Content | Required | The Content Lake document to process. The connector submits the referenced document for
classification, for
example:{
"uri": "hxpr:/1234567890"
}
|
| instructions | JSON | Optional | Action-specific instructions that influence the classification process. Example: {"language":"English","style":"concise"}. |
| pollingInitialDelayMs | Integer | Optional | Overrides the initial polling delay in milliseconds. The default value is 1000 milliseconds (1 second). |
| pollingTimeoutSeconds | Integer | Optional | Overrides the timeout period, in seconds, while waiting for processing to complete. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| textClassification | String | Optional | The classification label selected for the document. |