Skip to content

Enable Agent-Specific Real-Time Translation#86

Open
joriskalz wants to merge 1 commit intomicrosoft:masterfrom
joriskalz:agent-specific-translations
Open

Enable Agent-Specific Real-Time Translation#86
joriskalz wants to merge 1 commit intomicrosoft:masterfrom
joriskalz:agent-specific-translations

Conversation

@joriskalz
Copy link

This pull request introduces code changes that enable agent-specific real-time translation in Omnichannel for Customer Service by leveraging the agent's preferred language setting in the systemuser entity within Dataverse.

The following modifications have been made to the sample script:

  1. A new function getAgentPreferredLanguage has been introduced. This asynchronous function is responsible for:

    • Retrieving the current user's ID using the Dynamics 365 client API.
    • Fetching the user's details from the systemuser entity, including the new custom field that holds the agent's preferred language code.
  2. The initializeNewConversationInWebResource function has been updated to:

    • Call getAgentPreferredLanguage to obtain the agent's preferred language code.
    • Set the c1Language variable to the agent's preferred language if the enableAgentSpecificTranslation flag is true and a preferred language is defined. If not, the default language from the conversation configuration is used.

These enhancements ensure that each agent can serve customers in their chosen language, thus personalizing the support experience and improving communication efficiency.

Please review the code changes and the updated README file that includes instructions on how to configure the agent-specific translation feature.

@joriskalz
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant