Change an insight to use a different field for sentiment analysis

task brazil Updated Sep 10, 2026 2 min read change-sentiment-analysis-insight-to-use-different-field.md
Raw file servicenow.com

Change a sentiment analysis insight to display sentiment data from a different field. This requires updates to both the UI Builder component and AI Skill Kit.

Before you begin

Role required: admin

General ServiceNow platform knowledge is required for this procedure.

About this task

For sentiment analysis insights, changing the field requires modifications to both the UI Builder component and the associated AI Skill Kit skill. It involves cloning components, creating new skills, and modifying scripts. This procedure confirms proper configuration of the sentiment analysis insight with a different field.

The Sentiment analysis dashboard includes the following UI Builder components:

  • Default Sentiment Analysis Dashboard
  • Sentiment Over Time Visualization
  • Sentiment Breakdown Visualization
  • Sentiment Top Drivers Insight (Negative sentiment and Positive sentiment drivers)
  • Sentiment by Assignment Group Insight
  • Sentiment After Escalation Insight
  • Sentiment by Channel Insight

Procedure

  1. Navigate to All > UI Builder.

  2. Under Components tab search for the corresponding component.

    For example, open Sentiment by Channel Insight. Make a clone if needed.

  3. Duplicate Sentiment by Channel Insight

  4. Rename all components to your desired field (for example, Consumer) or create a generalized component name.

    Update the following:

    • UIB component name (in Settings) and Save
    • Stylized text title (in Editor)
  5. In the Get Sentiment by Field Data resource, change the Field(s) value to your desired field ID.

    For example, consumer.

  6. In a new tab or window, navigate to All > AI Skill Kit.

  7. Under ServiceNow skills, search for Sentiment by Channel Insight.

  8. Select Clone to clone the skill under your desired field name.

  9. Under the Tool editor, select SentimentChannelScript and open the tool.

  10. Replace every instance of the existing field (contact_type) with your desired field (consumer).

  11. Select Continue till the Edit script tool guided set up reaches summary page.

  12. Select Save changes.

  13. In the Prompt editor tab, replace every instance of "channel" except the very last occurrence in {{SentimentChannelScript.output}}.

  14. Select Finalize prompt.

  15. Publish the prompt.

  16. Navigate to the sys_one_extend_capability table and find the record corresponding to the AI Skill Kit skill you just created.

    Right click to copy the sys_id.

  17. Return to the UI Builder page and in the Get Sentiment Insight by Capability ID data resource, paste the copied sys_id from previous step into the Capability ID field.

  18. Select Save.

    Now add the newly created component to any base system dashboard page or your own custom page. Use other nearby insights as reference for the correct event handler and optimization setup.

    The sentiment analysis insight now uses the specified field to display data and the associated AI skill has been properly configured.

Related topics

Add a filter

Change graph visualization

Keywords Generative AIGenerative AI for Customer Service ManagementGenerative AI for customer service agents
Search documentation
Search document titles and file paths on the brazil branch