Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Sentiment analysis for surveys

You can use sentiment analysis to determine whether user responses for a survey are considered positive, negative, or neutral.

Activate the Sentiment Analysis (com.snc.sentiment_analysis) plugin.

For a survey, you can select questions that should be used for analysis. The survey responses of these questions are sent to the thirdparty platforms for analysis through the specified connector configurations.

Note: You can only use string type questions for sentiment analysis.

The sentiment analysis results are displayed under Survey > Question Sentiment Results. The sentiment label is based on the normalized score:

Normalized scoreSentiment label
-1 to 0Negative
0Neutral
0 to 1Positive

API Version and Score Calculation

Currently, this plugin uses the MSAzure text analytics API (v2), which is now deprecated. To ensure continued functionality and compatibility, we are migrating to the newer v3 API.

v2 API response format:

               {
               "documents": [
               {
               "id": "1",
               "score": 0.14829033613204956
               }
               ],
               "errors": []
               }

v3 API response format:

               {
               "documents": [
               {
               "id": "1",
               "sentiment": "negative",
               "confidenceScores": {
               "positive": 0.02,
               "neutral": 0.0,
               "negative": 0.97
               },
               "sentences": [
               {
               "sentiment": "negative",
               "confidenceScores": {
               "positive": 0.02,
               "neutral": 0.0,
               "negative": 0.97
               },
               "offset": 0,
               "length": 44,
               "text": "I love this hotel, but the service was slow."
               }
               ],
               "warnings": []
               }
               ],
               "errors": [],
               "modelVersion": "2025-01-01"
               }

Score Calculation for v3 API

Since the v3 API response format provides confidence scores instead of a single score, the normalized score is calculated using the following formula:

score = (1 × positive) + (0.5 × neutral) + (0.01 × negative)

This formula ensures:

  • Positive confidence pushes the score toward 1
  • Neutral confidence centers the score around 0.5
  • Negative confidence slightly pulls the score toward 0, with minimal weight (0.01) to account for negative sentiment

Since the three confidence scores always sum to 1, this formula generates a consistent value in the range of -1 to 1, representing the full mix of sentiment information from the Azure API.

  • Configure a sentiment connector
    Specify the service URL and other configuration information for third party APIs that are used for sentiment analysis.
  • Sentiment analysis property
    You can use the sentiment analysis property to customize the Sentiment Analysis module.
  • Sentiment analysis results
    The sentiment analysis results view contains a bar chart that displays the percentage of positive, negative, and neutral results, along with the instance count for each category.

Parent Topic:Survey administration

Related topics

View survey reports

Survey designer

View a survey instance

Survey users and groups

Copy a survey

Publish a survey

Customize the appearance of a survey

Survey definitions

Create a survey designer template question

Survey questions

Survey trigger conditions

Survey distribution

Outlook Actionable Messages

Surveys in Service Portal and the Now Mobile app

Surveys in ITSM Virtual Agent

Legacy survey migration