---
title: "Create a classifier"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/sofi/create-a-classifier/
type: task
application: sofi_core
last_updated: 2026-10-18
commit: c0e55f26ec7b
---


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.

## 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 **Intelligent automation → Intelligent predictions → Classifiers** and select **New**.

    <Image src="asset:screenshots/admin/sofi-create-a-classifier/cleanshot-2025-06-23-at-133140-2x.png">The shipped Incident classifier, with its search fields, classification fields and two classifier contexts.</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>
    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. Leave **Data analytic fields** empty.
  </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");
    ```

    Records of the table are indexed by the next search synchronisation.
  </Step>
  <Step>
    Under **Classifier contexts** on the classifier, select **Add/remove** and add a context. Choose the **Context**, select **Auto classify** if Sofi should fill fields itself, and set the **Auto classify threshold** and **Minimum confidence**.
  </Step>
</Steps>

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

## Result

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

## Related

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