# Microsoft

ngSurvey uses Microsoft Cognitive services to analyze respondent sentiments and Microsoft translator to auto-translate texts.

{% hint style="info" %}
For better translation and sentiment results we would recommend using [AI suite edition](/ai-suite.md).
{% endhint %}

## Microsoft Cognitive Services

To setup Microsoft Cognitive services you may go to your [Azure portal](https://portal.azure.com/) and create a new cognitive resource in your account.

&#x20;&#x20;

![](/files/-MCB6p9prk29sb3kicmc)

The cognitive resource should be of type Text analytics

![](/files/-MeeypX7pBBEt_ze8_x6)

Once you have created your resource you may copy the key 1 and endpoint.

![](/files/-MCB6YSu4kERG8CXqgE0)

and in your ngSurvey settings copy the key 1 and set your endpoint URL and suffix it with following route ***text/analytics/v3.0/sentiment***

![](/files/-Meez9MNZep_9WJWs8Mq)

## Microsoft Translator

To setup Microsoft Translator services you may go to your [Azure portal](https://portal.azure.com/) and create a new resource in your account.

![](/files/-MCB8VDM5i3sEK2kWrRR)

Once you have created the Translator service you may copy its key 1

![](/files/-MCB9WTeDRp2Y2a2eRvO)

And past it into your ngSurvey settings page.

![](/files/-MCB9dYVyFZp1LGx5EQD)


---

# 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/installation-setup/system-settings/third-party-apis/microsoft.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.
