
The task is to process incoming emails and route them to French or English support teams. This means we need to detect the language of each email.
Let’s break it down:
Which Cognitive Service is needed?
Azure Text Analytics (part of Azure AI Language) provides a Language Detection API.
The Translator service is used for translation, not just detecting the original language. Since the requirement is only to decide whether to send emails to French or English teams, we just need to detect the language.
Endpoint selection
Text Analytics uses regional endpoints such as:
https:// < region > .api.cognitive.microsoft.com/
For example: eastus.api.cognitive.microsoft.com is valid.
api.cognitivemicrosofttranslator.com → incorrect (this is for Translator service).
portal.azure.com → Azure portal, not an API endpoint.
API Path selection
To detect language, you call:
/text/analytics/v3.1/languages
/text/analytics/v3.1/entities/recognition/general → entity recognition, not language.
/translator/text/v3.0/... → translation, not language detection.
Correct Answer Combination:
eastus.api.cognitive.microsoft.com
/text/analytics/v3.1/languages
Microsoft References
Text Analytics Language Detection API
Text Analytics REST API v3.1