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

![](/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
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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
