How do I add custom filter words to my Social Listening tool?
Published:
Est. reading time: 2 minutes
Author: Mia Hatton
Your social listening tool uses plug-and-play AI from Microsoft Azure to measure the sentiment of Tweets mentioning your brand, and alerts you when the sentiment is negative. However, you may wish to include custom ‘negative words’, for example if you are listening for Tweets in a language not supported by Azure’s Text Analytics. To add custom ‘negative words’ to your solution: Open your SocialListening-checkText Logic App from the Azure Portal.
Your social listening tool uses plug-and-play AI from Microsoft Azure to measure the sentiment of Tweets mentioning your brand, and alerts you when the sentiment is negative. However, you may wish to include custom ‘negative words’, for example if you are listening for Tweets in a language not supported by Azure’s Text Analytics.
To add custom ‘negative words’ to your solution:
- Open your SocialListening-checkText Logic App from the Azure Portal.
- Open the Logic App Designer.
- Hover between the actions
Condition
andFlag negative or inappropriate content
and click the+
icon that appears. SelectAdd an action
. - Search for an select the
Condition
action from theChoose an action
box. - In the condition box you can add as many ‘negative words’ as you wish. For each word you want to filter for, click on
Choose a value
and scroll down the the list of Dynamic Content that appears until you findText
underWhen a HTTP request is received
. - Set up the condition:
Text contains [your chosen word]
. - Change the
And/Or
dropdown toOr
so that the condition will be triggered if any of your list of words are detected. Click+ Add
>+ Add row
to add another word. - Once you have built your list, within the
If true
box clickAdd an action
. - Search for and select the
Set variable
action. - From the
Name
dropdown, selectnegativeSentiment
, and forValue
entertrue
(this must be all lower case with no spaces either side). - Save the logic app and exit.
That’s it - you’re all set up!
What does the extra action do?
You have added a condition that checks the text of the social media post to see if it contains any of the words on your list. If one or more of the words is detected, the post is flagged as negativeSentiment
and you will be alerted!
Read more about Logic Apps condition functions here.