[Power Automate] Translate incoming emails

This tutorial will help you to create a Power flow app that automatically translates the email content to any preferred language.

Click on the Automated flow

There will be many flow triggers available for power flow. choose “When a new email arrives” depends on your email setup

It may redirect the user to authenticate to access mailbox.

By default the mailbox folder will point to “Inbox”, it is flexible enough to change the folders.

We have additional options to create filter/rule for mails, example:
– if the subject has certain keywords
– If the mail received only from xxxx@xx.com
– etc.,
feel free to configure based on the need.

Click on “New step” and search for “translate” and then choose Microsoft Translator from the list of operations

First time when Microsoft translator is chosen, it will ask the user to provide the connection name, you don’t have to provide the key, yet it will translate the text. But the no of requests per day will be limited.

Based on the requirement, you can purchase the key from Microsoft cognitive servers, for now we are not going to use the key.

Connection name: <any name>
Subscription key : blank

NExt step is to choose the actions from Microsoft translator, They have three different actions available
1. Detect language – If the requirement is to just detect what the language of any content, this option is ideal
2. Translate text – If the content has to be translated to a different language, this would be the ideal option, In our example, we are going to use this option

The next step is to choose the target language to translate the actual content. In this example, it would be the mail content.
Microsoft Translator supports around 80 languages,

In this case, English has been selected as a target language, choose “Body” parameter in “text” field

Add a new step and choose “Mail” from the operations list. Now we are going to send an email notification with translated text

select “Send an email notification” and provide
1. email address, 2. Subject
In body, select “Translated Text” (this value is the output from the previous step “Microsoft translator”)

In below step, actual email body is also attached, so the user can cross-check the translation vs the original email.