Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions customer-service/omnichannel/real-time-translation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,27 @@

## Prerequisites

The real time translation behavior is defined by the web resource, therefore, verify the following checklist:
The real-time translation behavior is defined by the web resource, therefore, verify the following checklist:

- As an administrator, deploy a translation resource and get a translation key. For information, see [How to sign up for Translator](https://docs.microsoft.com/azure/cognitive-services/translator/translator-how-to-signup).
> [!NOTE] Make sure you create the translation resource for the "Global" location.

- All the agents and supervisors should have "Omnichannel agent" or "Omnichannel supervisor" role.
1. As an administrator, deploy an Azure translation resource for the "Global" location.
2. Get your authentication key for the Azure translation resource.
For more information, see [Create a translator resource](https://learn.microsoft.com/azure/cognitive-services/Translator/create-translator-resource).

[!NOTE] All the agents and supervisors should have "Omnichannel agent" or "Omnichannel supervisor" role.

## What does this sample do?

The webResourceV2.js is a sample web resource that you can use to enable real-time translation of the conversation messages exchanged between the customer and the agent. Perform the following steps before using the sample:

1. Directly download the file and change the API key for the translation API engine that is used in your organisation, in `webResourceV2.js` at:
1. Download the `webResourceV2.js` file and add the authentication key of the translation resource for the following end point:

```
bingTranslateApiClientSecret: '<please add your own azure translation api key>',
googleTranslateApiClientSecret: '<please add your own google translation v2 api key>',
useAzureTranslationApis: true,//please override it to false if planning to use google translation v2 api
```
Additional changes can also be made in the web resource logic as per your business needs.


2. Add this javascript file as a web resource to your organisation. Follow the instructions in the topic [Add a web resource for real time translation](https://docs.microsoft.com/dynamics365/omnichannel/developer/how-to/add-web-resource-real-time-translation) to copy its URL in the Omnichannel Administration app, and enable real-time translation feature in Omnichannel for Customer Service.
2. Add this javascript file as a web resource to your organisation. Follow the instructions in the topic [Add a web resource for real time translation](https://docs.microsoft.com/dynamics365/omnichannel/developer/how-to/add-web-resource-real-time-translation) to copy its URL in the Customer Service admin center app, and enable real-time translation feature in Omnichannel for Customer Service.

### See also

Expand Down