Get Started With the Sentiment Analysis Templates for Power Automate

Learn how to import a flow using the Staffbase Sentiment Analysis templates for Power Automate.

Employee App
Front Door Intranet

The Sentiment Analysis templates for Power Automate help you set up flows to detect the negative sentiments in Staffbase News posts and comments.

You can analyze the following:

  • Text
  • Emojis

Staffbase only supports the Staffbase services (APIs, Staffbase Power Automate connector, and backend service) required to run the flows. All other Power Automate features, APIs, services, and potential customizations are outside of the support services offered by Staffbase.

The Sentiment Analysis templates are available as two separate flows:

  • Sentiment analysis for posts
  • Sentiment analysis for comments

Prerequisites

To set up a flow using the Staffbase Sentiment Analysis template for Power Automate, you need the following:

Get started

Complete the following steps before importing the sentiment analysis flow:

  1. Generate an API token with read-only access.
  2. Create the following connections in Power Automate:
    • Office 365 Outlook
      This connection is used to send the analysis report email.
    • Azure Cognitive Service for Language
      This connection is used for sentiment analysis services.
    • Content Conversion
      This connection is used to convert the HTML text to regular text, which is then analyzed.
    • Staffbase
      You need to provide the following information to create the Staffbase connection:
      • API token in the following format: Basic {INSERT API TOKEN}
        You need to insert the API token you generated to replace {INSERT API TOKEN}, including the curly brackets.
      • Identifier for hosting infrastructure depending on the region in which your Staffbase platform is hosted.
        • German hosting infrastructure: de1

        • US American hosting infrastructure: us1

Import the sentiment analysis flow

You need to import a flow in order to use Sentiment Analysis. The Sentiment Analysis templates are available as the following two flows:

  • Sentiment analysis for posts
  • Sentiment analysis for comments

You need to import each flow template separately to Power Automate.

Prerequisite

The .zip file contains 2 different .zip files for each sentiment analysis type. You do not need to unzip the individual .zip files inside the .zip file package.

  1. In Power Automate, navigate to My flows > Import > Import Package (Legacy).
    The Import package page opens.
  2. Click Upload to upload a flow .zip file of your choice from the .zip file package you extracted.
  3. Under Review Package Content, for the resource type Flow, select Create as new as the import setup.
Connections
  1. Under Related Resources, configure the following import setup for the following resource types by selecting the account used for connection to the Power Automate platform, and click Save.
Resource typeImport setupUser account
Office 365 Outlook ConnectionSelect during importOffice 365 Outlook
Azure Cognitive Service for Language ConnectionSelect during importAzure Cognitive Service for Language
Staffbase ConnectionSelect during importStaffbase
Content ConversionSelect during importContent Conversion
  1. Click Import.

You have imported the flow. Now you can configure the flow.