Two Hat’s Community Sift - Content Moderation Platform
Enterprise-level AI-powered content moderation platform
Enterprise-level AI-powered content moderation platform with a full suite of customizable tools, including chat filter, username, image and video that automatically removes bullying, harassment, hate speech, adult content, and other disruptive behavior from your platform
Two Hat is an AI-powered content moderation platform that classifies, filters, and escalates messages, usernames, images, and videos, all in real-time. Powered by Two Hat, Community Sift is an all-in-one enterprise level content moderation solution that surfaces online harms including cyberbullying, abuse, hate speech, violent threats, and child exploitation.
Sign-up for a PubNub account, if you don't have one already.
Import the Integration Block into your PubNub account. You can choose to add this to an existing application or create a new one.
Configure the Integration Block module code, connecting it to your Two Hat Community Sift account:
API_URLparameter to the hostname from the Community Sift API setup step above.
Create a Secret in PubNub Vault, named
COMMUNITY_SIFT_APIKEY, with value equal to your Two Hat Community Sift API Key for this service, retrieved as part of step 1 above.
Start the Integration Block module.
Try a test message (you can click on
Publishto do this).
This Integration Block is setup to listen to a specific PubNub channel (
CHANNEL-to-community-sift-moderate) but you can configure it to listen to all channels or a subset, using wildcards, e.g.
chat.*. Thus, you can add content moderation even in private chats and other secure communication channels. The Integration Block is flexible in that it can be used both as part of a PubNub messaging flow, i.e. as part of publishing data, as well as accessed separately through a REST endpoint. Additionally, customization of capabilities can be done through publish message metadata or REST query parameters. In publish metadata, the customization properties are set as part of a JSON object specific for the function named
TEXT_LOCATION_ID: json dot notation for locating the text field in the message payload.
OUTPUT_LOCATION_ID: json dot notation for locating the output data in the final message payload. Specify
metaif you want the output data to be part of the metadata property of the message payload.
Publish message containing message body to input channel. Input Channel:
CHANNEL-to-community-sift-moderate. You can change this channel in the PubNub Administration Portal, using the Block's Function editor.
The response from Community Sift is included in the payload, or in the meta property of the published message.