Learn how to configure a sentiment analysis flow.
The sentiment analysis flow allows you to monitor the sentiment of News posts and comments. After importing the Sentiment Analysis template into a flow, you can configure it.
- In Power Automate, navigate to the sentiment analysis flow you imported.
- Click Edit to open the flow.
The sentiment analysis flow opens.
You have opened the flow. Now, you can configure the steps in the flow.
In the sentiment analysis flow, click the step Recurrence Interval to define how often you want to run the sentiment analysis flow.
In the Interval field, enter a value.
For example, enter 24 to run the analysis once every 24 hours.From the Frequency dropdown, select the frequency.
Define the frequency of your flow depending on your pricing plan for Microsoft Azure Cognitive Services.Click the step Staffbase Recurrence Interval.
In the Value field, enter the same value you entered for the Interval field.
Optionally, open the step Staffbase Channels if you want to analyze the comments of specific channels.
In the Value field, paste the channel IDs you copied in the following format:
[ "channelId1", "channelId2", …. "channelIdN" ]If you do not provide specific channel IDs, all channels are analyzed.
- In the sentiment analysis flow, open the step Staffbase URL.
- In the Value field, enter the URL of your Staffbase platform.
You have configured your Staffbase platform details. Now, you can configure the notification details.
- In the sentiment analysis flow, click the step Staffbase Notification Recipients.
- In the Value field, enter the email address of the recipient who needs to get a notification.
For example, this can be a shared mailbox — contentmanagement@yourcompany.comAlternatively, you can enter multiple recipients. If you are entering multiple email addresses, separate each email address with a semicolon. For example, contentmanager@yourcompany.com; contenteditor@yourcompany.com; communitymanager@yourcompany.com - Click the step Staffbase Notification Text.
- In the Value field, enter a subject line for the email notification.
For example, Negative sentiments detected - Click Save.
- In Power Automate, navigate to the sentiment analysis flow you configured.
- Click Turn on. You have enabled the flow.
Some steps can miss a mapping connection leading to errors. You need to fix all the errors before saving the flow.
- On the flow page, click Flow checker on the top toolbar.
The Flow checker dialog opens and displays any errors. - Click on an error.
You are redirected to the step in which the configuration is incorrect. - Provide the correct details to fix the error.
- Click Save.
After saving the flow, you can test the flow to ensure that it works as expected.
- On the flow page, click Test in the top toolbar.
The Test Flow dialog opens. - Click Manually.
- Click Save & Test.
You have tested the flow. If you have not encountered any errors, you can run the flow. If you encounter any errors, fix them and test the flow again.
On completing the test successfully, an email is sent out to the recipient if a negative sentiment is detected.