OBLYTECH Logo
OBLYTECH Logo

ServiceNow Record Categorization With Task Intelligence

Record categorization is the feature in Task Intelligence for Customer Service that reads an incoming email or a case or interaction record, predicts values for fields on that record, and fills them in. Admins decide per field whether the predicted value is applied automatically, offered as a recommendation, or run quietly in the background for monitoring.

What record categorization reads and where it writes

Record categorization uses machine learning models to read text, work out which values fit the fields, and place those values on case, case type and interaction records. It handles records that arrive by email, web and chat, reads several languages, and can read attachments as well as the email or record text. Attachments can carry routing signals, so the option is worth weighing during setup.

The practical payoff is routing. When predicted values feed a routing engine, a request reaches the right service desk without a separate inbox for each request type, and routing on predicted values can avoid the need for several email inboxes and robotic process automation bots. For the wider routing approach, see customer service case routing.

Input What the model reads
Customer email Subject line and body
Case or interaction record Short description and description
Email and record attachments Text inside the attached files

The trigger decides when predictions run, and the choices are cases, emails and interactions. Attachment reading is an optional check box at training time, and the model can be configured to use different fields from the defaults.

How agents see predicted values

Predicted fields carry an AI icon and a label, and an information icon gives extra context about the prediction. In CRM Workspace the icon stays with the record for its whole life cycle. In Core UI it is removed as soon as the agent changes the value.

Recommendations work differently. Opening a predicted field shows a dropdown with the top three recommended values at the top and the remaining values listed beneath them. The agent can choose any value or type to filter the list, and the top three stay visible while filtering. They remain in the dropdown through the case life cycle, whatever value is selected. When no recommendations exist, a message in the Top Recommendations section says so. Recommendations can be used on choice lists, single and multi lookups, and single and multi text fields.

A banner sits at the top of a case when at least one field holds an autofilled prediction. In CRM Workspace the banner also relies on client-side configuration through the AI Banner Display Client, so check that setting before agents are expected to see it. It disappears when the agent changes the predicted value, and it does not appear when all predicted fields are recommendations. A system property, sn_csm_ml_task.ui.banner.enabled, switches the banner on or off. A second property, sn_csm_ml_task.case.categorization.enable_inactive_filter, removes inactive field values from predictions. It is false by default, so turning it on is a deliberate choice.

Choosing a preference for each field

Each predicted field gets one of four preferences during assessment.

Preference What happens
Autofill The best predicted value is placed in the field on the record
Recommendations Suggested values are offered and the agent decides
Monitor only Predictions run and are stored in Predictions History, and the record is not changed
Turn off predictions No predictions are made for the field

Choosing among these is a judgement call rather than a product rule. A sensible approach is to match the setting to what a wrong value costs. In most support teams a misrouted case costs agent time and delays the customer, so starting in monitor only, reading the accuracy, and then moving to autofill once the numbers support it is the cautious path. For the case rules these fields sit within, see case management for customers.

Setting up a categorization model

  1. Confirm that Predictive Intelligence is running on the instance. It is the platform layer that supplies the machine learning framework the models use. The plain-language overview of Predictive Intelligence explains that layer before you start.
  2. Activate the Task Intelligence for Customer Service application, identifier com.snc.csm_ml_task. Activating it also switches on the supporting plugins listed below.
Plugin Identifier
Predictive Intelligence for Customer Service Management com.snc.csm_ml
Case Management Core com.sn_customerservice
Skills Management com.snc.skills_management
Dynamic Translation com.glide.dynamic_translation
ServiceNow Language Detection Service Spoke com.glide.language_detection_spoke
Predictive Intelligence – Task Intelligence com.glide.platform_ml_task
Admin Center for Task Intelligence com.sn_ti_admin
  1. Import a training data set into the table you want to predict. That can be the Case table, a table that extends it, or the Interaction table. If you use case types on an extended table, include them in the set. The set should contain records that already hold the correct values for the fields you plan to predict, since those are the examples the model learns from.
  2. Open All > Task Intelligence for Customer Service > Setup and select the field prediction model titled “Predict field choices to reduce handle time”. The model opens as five pages.
  3. On the first page, choose the table type (Cases or Interactions), the trigger for predictions, and whether attachments feed training.
  4. Name the model, then choose the output table and output fields, which are the fields it predicts, and the input fields, which are the fields it reads. The template offers recommended input fields. You can keep them or change them. Conditions do two jobs here: they select the records used for training, and they filter which records receive predictions later. The page shows how many records the conditions return. A categorization model needs at least 500 records to train effectively, so widen the conditions if the count falls short. Launch training and, for a large set, ask for an email when it finishes.
  5. Assess the results. Sample results for each predicted field show what the model would have done, and you set a preference for each field from the four above.
  6. Review the summary and deploy.

Checking whether predictions are right

Three checks answer three different questions.

The first is the feedback table. The Predictor Result table records each prediction and what happened to it. For autofill, a prediction counts as correct when the predicted value equals the final value. For recommendations, it counts as correct when any one of the suggestions matches the final value. The same table holds skipped and failed predictions, and the ml_admin role can view it.

The second is field-level accuracy. A model has to be in Monitoring mode before you assess it field by field. In that mode the model runs in the background and does not write to records. To measure one field, open the Predictor Result list at ml_predictor_results_task.list, filter Predicted Output Value Name to that field, group by Predicted Correctly, and divide the count of true results by the total. Repeat the exercise for each field you care about.

The third is the monitoring screen. Under Task Intelligence for Customer Service, the Monitoring screen lets you pick a model, a field and a date range. It scores accuracy against the top autofilled value, or against the top three recommendations, depending on the preference set for the field.

Read the numbers with some care. The sample predictions on the Assess screen give a preview of what the model will do after deployment, and the field-level accuracy measured above shows how often it is right.

If a field’s accuracy is acceptable, move the model out of monitoring mode into real-time predictions and deploy it. If a field is not acceptable, remove that output field, retrain, and deploy again. Before a wider rollout, the testing and acceptance checklist for Predictive Intelligence gives a structure for the same decision across the team.

Languages and attachments

One multi-lingual model understands English, French, German and Spanish, and it reads emails and records written in any of those languages. A separate model for each language is not needed. Twelve further languages can be added on request: Arabic, Chinese (PRC), Chinese (Taiwan), Dutch, Italian, Japanese, Korean, Polish, Portuguese, Russian, Thai and Turkish. For those, the request goes to the product team.

Attachments are read alongside the email subject and body and the record short description and description, so one prediction draws on the whole set of text the customer sent.

Roles for the work

Role What it covers
Task Intelligence Admin (tia_admin) Contains the ml_admin and platform_ml_read roles; the Task Intelligence admin role (sn_csm_ml_task.ti_admin) can create, train, retrain, deploy and delete models
Task Intelligence Analyst (tia_analyst) Contains the ml_admin role; the Task Intelligence analyst role (sn_csm_ml_task.ti_analyst) can create, train and retrain models
Task Intelligence User (tia_user) Contains the ml_report_user role

Creating a field prediction model requires the ml_admin or ti_admin role. A narrower role is the better default whenever it does the job.

Frequently asked questions

Will record categorization change a record without anyone checking it?

Yes, for any field set to autofill. The best predicted value is placed in the field, and the banner appears on the case until the agent changes the value. Fields set to recommendations leave the decision with the agent, and fields set to monitor only leave the record as it is.

How many records does training need?

Training needs at least 500 records to be effective. If the conditions return fewer, widen them until they return enough.

Can I test predictions before agents see them?

Yes. Monitor only runs predictions without changing records, and Monitoring mode lets you assess field-level accuracy while the model stays in the background.

What should happen to a field with weak accuracy?

Remove that output field from the model, retrain, and deploy again.

Teams planning a wider rollout can start with the ServiceNow implementation section of this site.