Use the Language service in Power Automate

You can use Power Automate flows to automate repetitive tasks and bring efficiency to your organization. Using Azure AI Language, you can automate tasks like:

  • Send incoming emails to different departments based on their contents.
  • Analyze the sentiment of new tweets.
  • Extract entities from incoming documents.
  • Summarize meetings.
  • Remove personal data from files before saving them.

In this tutorial, you'll create a Power Automate flow to extract entities found in text, using Named entity recognition.

Prerequisites

  • Azure subscription - Create one for free
  • Once you have your Azure subscription, create a Language resource in the Azure portal to get your key and endpoint. After it deploys, select Go to resource.
    • You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
    • You can use the free pricing tier (Free F0) to try the service, and upgrade later to a paid tier for production.
  • Optional for this tutorial: A trained model is required if you're using a custom capability such as custom NER, custom text classification, or conversational language understanding.

Create a Power Automate flow

For this tutorial, you will create a flow that extracts named entities from text.

  1. Sign in to power automate

  2. From the left side menu, select My flows. Then select New flow > Automated cloud flow.

    A screenshot of the menu for creating an automated cloud flow.

  3. Enter a name for your flow such as LanguageFlow. Then select Skip to continue without choosing a trigger.

    A screenshot of automated cloud flow screen.

  4. Under Triggers select Manually trigger a flow.

    A screenshot of how to manually trigger a flow.

  5. Select + New step to begin adding a Language service connector.

  6. Under Choose an operation search for Azure AI Language. Then select Azure AI Language. This will narrow down the list of actions to only those that are available for Language.

    A screenshot of An Azure AI Language connector.

  7. Under Actions search for Named Entity Recognition, and select the connector.

    A screenshot of a named entity recognition connector.

  8. Get the endpoint and key for your Language resource, which will be used for authentication. You can find your key and endpoint by navigating to your resource in the Azure portal, and selecting Keys and Endpoint from the left side menu.

    A screenshot of A language resource key and endpoint in the Azure portal.

  9. Once you have your key and endpoint, add it to the connector in Power Automate.

    A screenshot of adding the language key and endpoint to the Power Automate flow.

  10. Add the data in the connector A screenshot of data being added to the connector.

    Note

    You will need deployment name and project name if you are using custom language capability.

  11. From the top navigation menu, save the flow and select Test the flow. In the window that appears, select Test. A screenshot of how to run the flow.

  12. After the flow runs, you will see the response in the outputs field.

    A screenshot of flow response.

Next steps