<h2>Machine learning model setup and behavior</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Machine learning model setup and behavior" /><meta name="abstract" content="Set up models to predict field values and sentiment for customer service cases." /><meta name="description" content="Set up models to predict field values and sentiment for customer service cases." /><meta name="DC.relation" scheme="URI" content="../../../product/customer-service-management/concept/csm-task-intel-admin-center.html" /><meta name="DC.relation" scheme="URI" content="../../../product/customer-service-management/concept/c_CustomerServiceManagement.html" /><meta name="DC.relation" scheme="URI" content="../../../product/customer-service-management/concept/csm-task-intelligence.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2025-01-30" /><meta name="mini-toc" content="yes" /><meta name="page-type" content="csm-config" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="csm-task-intel-model-setup-behavior" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Machine learning model setup and behavior</title></head><body id="csm-task-intel-model-setup-behavior"> <div class="breadcrumb"><a class="link" href="../../../product/customer-service-management/concept/c_CustomerServiceManagement.html" title="The ServiceNow Customer Service Management product enables you to provide the service and support that your external customers need. For example, your customers can communicate and receive support through the web, email, chat, telephone, and social media.">Customer Service Management</a> > <a class="link" href="../../../product/customer-service-management/concept/csm-task-intelligence.html" title="Task Intelligence for Customer Service offers several AI capabilities such as language detection, record categorization, Sentiment Analysis, and Document Intelligence. These capabilities automate several routine tasks across the case lifecycle and enable agents to focus on complex case resolution.">Task Intelligence for Customer Service</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Machine learning model setup and behavior</h1> <div class="body conbody"><p class="shortdesc">Set up models to predict field values and sentiment for customer service cases.</p> <div class="section" id="csm-task-intel-model-setup-behavior__section_gfc_lbn_g5b"><h2 class="title sectiontitle">Training a model</h2> <p class="p">Training a machine learning model is when the model learns patterns in past data to make predictions for new data. Models are trained using a lot of data so that they can learn patterns and the large data set makes the learned patterns statistically significant.</p> </div> <div class="section" id="csm-task-intel-model-setup-behavior__section_esq_2dn_g5b"><h2 class="title sectiontitle">Setting up a field prediction model</h2> <p class="p">Users with the ml_admin role can create and train a machine learning model to predict field values from the <a class="xref" href="csm-task-intel-admin-center.html" title="Use the Task Intelligence Admin Console to create, train, and deploy machine learning models that predict different types of information for case and interaction records.">Task Intelligence Admin Console</a>.</p> <div class="p">Using the field prediction model as a starting point, you can choose the training data set that the model learns from. The model can be trained using data from the following tables:<ul class="ul" id="csm-task-intel-model-setup-behavior__ul_ppc_swm_zyb"><li class="li">Email [sys_email] table</li><li class="li">Case [sn_customerservice_case] table</li><li class="li">Tables that extend the Case table</li><li class="li">Interaction [interaction] table</li></ul> Models can also be trained using data from email or case attachments.</div> <div class="p">You then direct the model to learn a pattern between two types of fields from that data:<ul class="ul" id="csm-task-intel-model-setup-behavior__ul_ent_3m3_d5b"><li class="li"><span class="ph uicontrol">Output fields</span> are the fields that you want your model to predict. For example, the Category and Priority fields for cases.</li><li class="li"><span class="ph uicontrol">Input fields</span> are the fields that the model uses as a basis for predictions. For example, text in the subject and body of an email.</li></ul> </div> <p class="p">You can use the recommended input fields or you can modify these fields and add your own preferences.</p> <div class="p">If the model is configured to use text from attachments, the system performs the following steps when a case or interaction is created: <ul class="ul" id="csm-task-intel-model-setup-behavior__ul_y24_2hl_d5b"><li class="li">The system checks the record for attachments with supported content types and file extensions. It ignores the attachments that have unsupported file extensions.</li><li class="li">If the record has attachments in a supported format, the system parses the text and sends it as an input to the categorization model, along with text from the input fields.</li><li class="li">If the record does not have attachments, or no attachments in a supported format, the system sends text from the input fields to the categorization model.</li></ul> </div> <p class="p">Supported content types and file extensions are stored in the <span class="keyword parmname">sn_csm_ml_task.categorization.allowed_content_types</span> system property. For more information, see <a class="xref" href="../reference/case-categorization-components.html#case-categorization-components__section_bqd_lqt_xrb">Components installed with Task Intelligence for Customer Service</a>.</p> </div> <div class="section" id="csm-task-intel-model-setup-behavior__section_jrk_533_h5b"><h2 class="title sectiontitle">Supporting multiple languages</h2> <p class="p">Categorization supports multiple languages including attachments, if the models are configured to include attachments. The categorization model returns the predicted language and stores it in the <span class="ph uicontrol">Detected Language</span> field in the Predictor Result [ml_predictor_results] table.</p> </div> <div class="section" id="csm-task-intel-model-setup-behavior__section_vpq_2dn_g5b"><h2 class="title sectiontitle">Setting up a case sentiment model</h2> <div class="p">The case sentiment model is pre-trained with a large data set to learn communication patterns. This data comes from customer emails and case descriptions and comments and reflects typical communication between agents and customers.<ul class="ul" id="csm-task-intel-model-setup-behavior__ul_tbz_kt3_d5b"><li class="li"><span class="ph uicontrol">Email</span>: The model uses the text in the subject and body of the initial email to predict sentiment when the case is created. Text from the body of subsequent emails is used to update the prediction.</li><li class="li"><span class="ph uicontrol">Cases</span>: The model uses the text in the case short description and description to predict sentiment when the case is created. Comments added to the case are used to update the prediction.</li></ul> </div> <div class="p">The case sentiment model supports case types. When setting up a sentiment model, you select the table on which to run sentiment analysis. You can select:<ul class="ul" id="csm-task-intel-model-setup-behavior__ul_iws_qzg_c5b"><li class="li">The Case table</li><li class="li">Tables that extend the Case table</li></ul> <div class="note"><span class="notetitle">Note:</span> The sentiment analysis feature supports one level of custom extension from the Case table.</div> </div> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../product/customer-service-management/concept/csm-task-intel-admin-center.html" title="Use the Task Intelligence Admin Console to create, train, and deploy machine learning models that predict different types of information for case and interaction records.">Task Intelligence Admin Console</a></div> </div> </div></body></html></div>