---
title: "Create a classifier"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/sofi/predictions-and-routing/create-a-classifier/
type: task
application: sofi_core
last_updated: 2026-12-03
commit: 6777698daac5
---


Create a classifier when you want Sofi to suggest field values on a table that no shipped classifier covers, or to predict other fields. This page is for Sofi administrators.

<Callout type="info">
  **Changed in 2027.1.** The confidence and auto-fill thresholds are set on the classifier itself, not on a classifier context. A form setting, not a UI event, shows the suggestions on a form.
</Callout>

## Before you begin

- You need the `sofi_administrator` role, and the `administrator` role to run a server script.
- The table needs past records with the fields you want to predict filled in correctly. Sofi learns only from those.
- Know the field names, as the table defines them, of the text field to read and the fields to predict.

## Steps

<Steps>
  <Step>
    Go to **Predictions & routing → Intelligent predictions → Classifiers** and select **New**.

    <Image src="asset:screenshots/admin/sofi-predictions-and-routing-create-a-classifier/classifiers-menu.png">The Classifiers item in the Predictions & routing menu.</Image>

    <Image src="asset:screenshots/admin/sofi-predictions-and-routing-create-a-classifier/incident-classifier.png">The shipped Incident classifier, with its search fields, classification fields and training information.</Image>
  </Step>
  <Step>
    Enter a unique **Name**, choose the **Table** and set **Type** to **Classification**. Add a **Description**.
  </Step>
  <Step>
    In **Search fields**, enter the field whose text Sofi reads, for example `ShortDescription`. Separate several fields with commas.
  </Step>
  <Step>
    In **Classification fields**, enter the fields Sofi suggests, separated by commas, for example `Classification,AssignmentGroup,Service`.
  </Step>
  <Step>
    Under **Form suggestions**, set **Minimum confidence**. Select **Auto-fill** if Sofi should fill fields itself, and set the **Auto-fill threshold**.

    <Image src="asset:screenshots/admin/sofi-predictions-and-routing-create-a-classifier/classifier-thresholds.png">The Form suggestions and Inbound email thresholds of the Incident classifier.</Image>
  </Step>
  <Step>
    Under **Inbound email**, set the same values for records created from email: **Email minimum confidence**, **Email auto-apply** and **Email auto-apply threshold**.
  </Step>
  <Step>
    To narrow the past records Sofi compares with, select **Advanced**. On the **Filtering** tab, set **Filter fields** to the field on past records that holds the filter value. Set **Filter source fields** to the field on the new record that supplies it.
  </Step>
  <Step>
    Select **Active** and save.
  </Step>
  <Step>
    Create the search configuration for the classifier's table. Run this server script, with your classifier's name:

    ```javascript
    Sofi.updateGlobalSearchConfigurationForClassifier("My classifier");
    ```

    Shipped tables already have one. Without it, **Train** fails.
  </Step>
  <Step>
    Select **Train** on the classifier. It rebuilds the table's search index.
  </Step>
</Steps>

To show the suggestions on the table's form, also [show Sofi suggestions on a form](page:sofi/predictions-and-routing/show-sofi-suggestions-on-a-form).

## Result

The classifier suggests values for its classification fields from similar records in the search index. With **Auto-fill** on, Sofi fills a field when the confidence reaches the threshold. Suggestions below the minimum confidence are not shown.

## Related

- [Intelligent predictions](page:sofi/predictions-and-routing/intelligent-predictions)
- [Classifier fields and default classifiers](page:sofi/predictions-and-routing/classifier-fields)
- [Show Sofi suggestions on a form](page:sofi/predictions-and-routing/show-sofi-suggestions-on-a-form)
- [Run a server script](page:automation/scripts/run-a-server-script)
