Learn how to import a flow using the Staffbase Sentiment Analysis templates for Power Automate.
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
To set up a flow using the Staffbase Sentiment Analysis template for Power Automate, you need the following:
- You have downloaded the Sentiment Analysis template package from the Staffbase Studio.
- You have the administrator role in Staffbase Studio.
- You have a good working knowledge of the following platforms, in order to set up the flow:
- Microsoft Power Automate
- Microsoft Azure
- You have at least the per user license plan for Power Automate.
- You have access to the following connectors:
Complete the following steps before importing the sentiment analysis flow:
- Generate an API token with read-only access.
- 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
-
- API token in the following format:
- Office 365 Outlook
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.
- You have extracted the content of Staffbase Power Automate Sentiment Analysis .zip file you downloaded from Staffbase Studio.
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.
- In Power Automate, navigate to My flows > Import > Import Package (Legacy).
The Import package page opens. - Click Upload to upload a flow .zip file of your choice from the .zip file package you extracted.
- Under Review Package Content, for the resource type Flow, select Create as new as the import setup.
- 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 type | Import setup | User account | ||
---|---|---|---|---|
Office 365 Outlook Connection | Select during import | Office 365 Outlook | ||
Azure Cognitive Service for Language Connection | Select during import | Azure Cognitive Service for Language | ||
Staffbase Connection | Select during import | Staffbase | ||
Content Conversion | Select during import | Content Conversion |
- Click Import.
You have imported the flow. Now you can configure the flow.