MODERATE YAMMER FOR PROFANITY USING MS FLOW
Scenario
The admin in the organization wants to get notified if people post certain monitored keywords (racist, adult content, rival organization names etc.). Also, such posts should be auto-deleted without any human intervention.
Accounts you will require
You will require a valid account, license, and admin rights for the below-mentioned tools.
- Office 365: https://login.microsoftonline.com/ : O365 Plan should include a valid license for yammer, flow, and Outlook.
- Azure: https://portal.azure.com/
- Content moderator human review tool: (Optional) https://contentmoderator.cognitive.microsoft.com/
Note
Create an account on O365 and Azure with the same Microsoft account.
Your MS Flow will be integrated with Azure Content Moderator API and Outlook.
- Register to Azure content moderator cognitive service
This service will analyze text, image, and video content for material that is potentially offensive, risky, or otherwise undesirable. When such material is found, the service applies appropriate labels (flags) to the content. - Register on Content Moderator human review tool: (Optional)
You can use this tool so human moderators can make the final moderation decisions. You can set up team reviews of text, image, and video content, according to filters that you specify. The human input does not train the service, but the combined work of the service and human review teams allows developers to strike the right balance between efficiency and accuracy. - Get yammer authorization token
This token will be required for REST calls to yammer from MS Flow. - Create Azure Term list: (Optional)
Azure term list will store blocked keywords relevant to your organization. You can skip this if you do not wish to add organization relevant keywords. - Create MS Flow
This is the final step to achieve your goal. You can select MS Flow trigger either for a group or for feeds you follow.
So, let’s begin the endeavor...!!!
Register to Azure Content Moderator Cognitive Service
- Assuming you have a valid subscription to Azure Portal, navigate to https://portal.azure.com/ .
- Click on Create a resource (‘+’ symbol) from left navigation, to create new resource. Search for ‘Content Moderator’ in ‘Search the Marketplace’ bar.
- The below cognitive service will be populated. Click on ‘Create’ button.
- The user will be prompted to fill in mandatory fields to register for service as below,
- Name: Use a unique name for your service.
- Subscription: Choose valid subscription from the dropdown.
- Location: Choose the nearest location available to your area. (This denotes location where your resources will be residing).
- Pricing tier: You can choose F0 pricing tier as it is a free trial version
- Resource group: You can create a new resource group or use the existing one. You can create a resource group from the article: create new resource group.
- Note and copy one of the subscription keys from ‘Grab your Keys’ section and endpoint from ‘Make an API call to this endpoint’ section. This piece of information will be used in upcoming steps.
Get yammer authorization token
Join the conversation! Your thoughts help the community grow.