Skip to content

Commit 6b69fe8

Browse files
authored
Merge pull request #262029 from kperla97/patch-21
Translating-chat.md
2 parents 6092e1c + e61da00 commit 6b69fe8

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
61.4 KB
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Translating chats and detecting sentiment
3+
titleSuffix: An Azure Communication Services tutorial
4+
description: Learn how to build use cases with the Chat SDK to enable users to chat in different languages and detect sentiment.
5+
author: kperla97
6+
manager: darmour
7+
services: Azure Communication Services
8+
9+
ms.author: kaperla
10+
ms.date: 12/28/2023
11+
ms.topic: tutorial
12+
ms.service: azure-communication-services
13+
ms.subservice: chat
14+
---
15+
16+
# Translating chats to enable users to communicate in their preferred language
17+
18+
In this guide, learn how you can use [Azure AI APIs](../../../ai-services/index.yml) with the Chat SDK to build use cases like:
19+
20+
- Enable users to chat with each other in different languages.
21+
- Help a support agent prioritize tickets by detecting a negative sentiment of an incoming message from a customer.
22+
- Analyze the incoming messages for key detection and entity recognition, and prompt relevant info to the user in your app based on the message content.
23+
24+
One way to achieve the use cases above is by having your trusted service act as a participant on a chat thread. Let's say you want to enable language translation. This service (as illustrated in diagram below) is responsible for listening to the messages
25+
exchanged by other participants [1], calling Azure AI APIs to translate content to desired language [2 and 3] and sending the translated result as a message in the chat thread [4].
26+
27+
[![Screenshot showing Azure AI services interacting with Communication Services.](./media/ai-services.png)](./media/ai-services.png#lightbox)
28+
29+
This way, the message history contains both original and translated messages. In the client application, you can add logic to show the original or translated message. See [this quickstart](../../../ai-services/translator/quickstart-text-rest-api.md) to understand how to use AI APIs to translate text to different languages.
30+
31+
## Sentiment analysis
32+
33+
Similarly for sentiment analysis as the users are having a conversation the Azure AI language service can be used.
34+
35+
## Next steps
36+
37+
* [Troubleshooting](../../concepts/troubleshooting-info.md)
38+
* Help and support [options](../../support.md)

articles/communication-services/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ items:
795795
href: https://azure.microsoft.com/pricing/details/communication-services/
796796
- name: Government clouds
797797
href: concepts/chat/government-cloud.md
798+
- name: Translating chats
799+
href: how-tos/chat-sdk/translating-chats.md
798800
- name: Events
799801
items:
800802
- name: Overview

0 commit comments

Comments
 (0)