# 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](https://docs.ngsurvey.com/ai-suite).
{% 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;

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCB5ZEbGQHgLWILXmrH%2F-MCB6p9prk29sb3kicmc%2Fimage.png?alt=media\&token=d243cbda-4eaa-4e8c-9d9e-9e94d338b234)

The cognitive resource should be of type Text analytics

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MeeyfR9H-bLG9cessQn%2F-MeeypX7pBBEt_ze8_x6%2Fimage.png?alt=media\&token=28a5cf3d-6fc3-4a83-98c9-49f4a38f401a)

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

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCB5ZEbGQHgLWILXmrH%2F-MCB6YSu4kERG8CXqgE0%2Fimage.png?alt=media\&token=68fe05ff-a6d4-4f68-9396-1b12197e5d3b)

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***

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MeeyfR9H-bLG9cessQn%2F-Meez9MNZep_9WJWs8Mq%2Fimage.png?alt=media\&token=d16a2d45-f17a-495d-a8b3-2053c90ba02a)

## 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.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCB5ZEbGQHgLWILXmrH%2F-MCB8VDM5i3sEK2kWrRR%2Fimage.png?alt=media\&token=dee3dd43-8ab9-42d4-8926-679020b4ccac)

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

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCB5ZEbGQHgLWILXmrH%2F-MCB9WTeDRp2Y2a2eRvO%2Fimage.png?alt=media\&token=f3275b97-0136-4e6a-b673-ecc8cd23789c)

And past it into your ngSurvey settings page.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCB5ZEbGQHgLWILXmrH%2F-MCB9dYVyFZp1LGx5EQD%2Fimage.png?alt=media\&token=f653acfb-88c5-452e-afc5-6cecebf0da04)
