# Sentiment Analysis

## 😄 What is sentiment analysis

Using sentiment analysis you can generate a sentiment based on a natural free text entered by the respondent in one of your text based answers like fields for example. This way you can have a insight of the respondent's sentiment about a particular topic without having to to use a closed question to get his feedback.

## 🚀 Enabling sentiment analysis&#x20;

You can enable sentiment analysis on any [field answer type](/form-management/form-designer/questions/question-types/standard/text-comment-field.md) of your questions surveys using the **Compute sentiment** property of your answer.

![](/files/-MBZwz17edcghYW5t8GD)

{% hint style="warning" %}
Enabling the **Compute sentiment** will retroactively rate all the pre-existing respondent answers that were not rated yet.
{% endhint %}

Once you have enabled the sentiment on the answer ngSurvey will analyse all respondent answers and rate them according to a sentiment. An answer can be rated with following sentiments.

* Positive
* Neutral
* Negative
* Mixed

For example if a respondent would have been rated as Positive if the respondent entered following text.

![](/files/-MBZxlyVgD0yrvz2IDrF)

## 📊 Sentiments reporting

Once the sentiments have been calculated you may analyze the results in 2 different ways.

Either using the [text reports](/form-management/reports/text-reports.md) which will displays "smileys" next to each response to identify the sentiment of the respondent.

![](/files/-MB_-8HRLLR25mCAlW0r)

You can filter out the answers by a given sentiment category using the sentiment filter buttons

![](/files/-MB_-M12Uieqrf3Sgwy-)

You may also use the [Sentiment index report](/form-management/reports/report-builder/report-items/sentiment-index.md) to display a [sentiment index](/form-management/reports/report-builder/report-items/sentiment-index.md) ranging from -10 (very negative) to +10 (very positive).

![](/files/-MBZzgsulR1szcr7E39b)

{% hint style="info" %}
The last 25 sentiments of all the enabled sentiment answer is also displayed by default in the [overview dashboard](/form-management/overview-reports.md).
{% endhint %}

{% hint style="warning" %}
Sentiment analysis requires that you have linked ngSurvey [third party API settings](/installation-setup/system-settings/third-party-apis/microsoft.md) to the Microsoft Text Analysis API or to enable your [AI Suite](/ai-suite.md).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/form-management/reports/text-reports/sentiment-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
