For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
AI Hub
OverviewApp editorFlow editorAdminAPI & SDK
OverviewApp editorFlow editorAdminAPI & SDK
  • Flow editor
    • About flows
    • Creating flows
    • Flow step reference
      • Process files
      • Map records
      • Agent classifier
      • Apply classifier
      • Apply checkpoint
      • Creating validation checkpoints
      • Agent extract
      • Apply refiner
      • Creating refiner programs
      • Process case
    • Using custom functions
    • Flow guides
    • Reviewing flow results
AI Hub
On this page
  • Parameters
  • Sample classification schemas
Flow editorFlow step reference

Agent classifier

Was this page helpful?
Built with
Enterprise Single-tenant

The Agent classifier step assigns each record to a document class using an LLM, according to the schema defined in a linked agent classifier module.

Parameters

  • Schema configuration — Select the agent classifier module containing your classification schema JSON file.

    The JSON shape matches the extraction schema used by the Agent extract step: top-level keys are class names, and each class value has description and fields. You can reuse the same field objects as in your Agent extract module’s JSON schema, or list only the field names the classifier must consider.

    Every class must define fields as a non-empty array. Each entry must at least include name. Omitting fields or leaving it empty can cause classification to fail.

Sample classification schemas

The following schema defines field names only.

1{
2 "Invoice": {
3 "description": "An invoice document requesting payment for goods or services",
4 "fields": [
5 { "name": "Invoice Number" }
6 ]
7 }
8}

The following schema provides full field objects with the same structure as seen in the Agent extract step.

1{
2 "Invoice": {
3 "description": "An invoice document requesting payment for goods or services",
4 "fields": [
5 {
6 "name": "Invoice Number",
7 "data_type": "TEXT",
8 "description": "The unique invoice identifier or number"
9 }
10 ]
11 }
12}