> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/installation-setup/system-settings/third-party-apis/microsoft.md).

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

![](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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/installation-setup/system-settings/third-party-apis/microsoft.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
