Blog

StreamShield and n8n – How to Build a Powerful Content Moderation System in 5 Minutes

Streamshield
Posted By Streamshield
StreamShield and n8n – How to Build a Powerful Content Moderation System in 5 Minutes

Moderating user-generated content (UGC) is a growing challenge for small and medium-sized website and app operators. Building and maintaining your own moderation system is time-consuming, expensive, and a compliance minefield.

That’s where StreamShield comes in.

StreamShield delivers powerful, AI-driven content moderation designed for businesses without dedicated moderation teams. Our usage-based pricing makes it accessible for projects of any size, helping you stay compliant with legislation like the Online Safety Bill (UK) and the Take It Down Act (US)—without the headache.

Over the years, we’ve helped countless companies manage the increasing complexities of UGC compliance. Thanks to automation and AI, it’s getting easier than ever.

In this tutorial, we’ll show you how to integrate StreamShield with n8n—a leading automation platform with over 400 integrations—to build a powerful moderation workflow in just 5 minutes.

Whether your content lives in Slack, Google Drive, WordPress, Notion, or any of the hundreds of platforms supported by n8n, you can now add content moderation into your workflows with no code and minimal effort.

To get started, you will need:

  • An n8n trial account – sign up for free
  • A StreamShield Flow trial account – sign up for free (1,000 free credits included without charge and you can cancel at any time)

Setting up StreamShield

  • Enter n8n.cloud as the domain and a description to describe your workflow
  • Log in to the StreamShield dashboard
  • Select Domains and click the + icon to Add Domain#
  • Click Save
  • Select the newly added domain from the list
  • Click the API Key tab
  • Click Create API Key
  • Copy the API Key and API Secret Key for use in the n8n workflow. If you lose your secret key you can click Regenerate Key at any time. Keep these credentials safe and secure!
  • Navigate to the Developers section on the left and copy your Tenant ID

Setting up n8n

  • Log in to the n8n dashboard
  • If you’re not familiar with n8n you should check out the Quick Start tutorials, but honestly, you just need to follow a few steps and import the example StreamShield workflow from this article and you’re good to go

In this example we are going to use the Google Drive integration to monitor a folder called Unmoderated Files which will serve as a staging post for images, video, text etc that requires moderation. Obviously this is a super simple example and can be expanded on with many more conditions, triggers and actions to suit your use-case.

  • After logging in, click the Variables section on the left navigation panel and add the following variables using information from the “Setting up StreamShield” steps above:
    • SS_KEY – paste in the API Key
    • SS_SECRET – paste in the API Secret
    • SS_TENANT_ID – paste in the Tenant ID
  • Navigate back to the Editor. If necessary, create a blank Project called “StreamShield” and select Start from Scratch
  • Download the StreamShield-n8n JSON file
  • Click the menu and then Import From File
  • Select the StreamShield-n8n.json file you downloaded above
  • The example workflow will now be shown in the n8n Editor
  • You will see red triangles next to the Google Drive Trigger and Google Drive action. This is because you need to authenticate with your Google Drive account to begin using this example workflow. If you prefer, you can swap these for your preferred source of file content.
  • To continue with Google Drive, double click the Google Drive Trigger node and from the Credential to connect with drop down choose +Create new credential.
  • Finally, double click the Google Drive Trigger node again and set Folder to your chosen folder, such as Unmoderated Files. If this does not exist on Google Drive, please create it
  • To test the workflow, slide the toggle from Inactive to Active
  • Log in to Google Drive and upload an image file to the new Unmoderated Files folder. After a few seconds, the n8n workflow will detect the new file and process it.

Moderating Content in StreamShield

Back in your StreamShield dashboard, click the Moderation section to view any content that has been sent for moderation from Google Drive.

You can Inspect the content to view details about each artefact (text, image, video, audio, etc) that was scanned and the extraction process (decompress, unzip, OCR, PDF analysis, etc), the categories and scores given and a full audit trail as the content passed through the StreamShield system.

Explore Further

StreamShield lets you fine tune the sensitivity of every scanner and every category so that you can decide at what point you want automatic moderation to take place.

Below the Moderate At threshold the artifact is considered clean and will be ignored. Between Moderate At and Unpublish At the content will receive a status of Moderate recommending human review. Above Unpublish At then StreamShield will call a webhook to tell your content platform to unpublish the content.

To extend the example workflow further you can implement the webhook handling and any other process or automation flow that n8n supports, such as sending notifications or logging the file on an AirTable or Excel sheet for transparency reporting!

For more information or to tell us about your cool workflows, please drop us a line at [email protected]


Back
IWF logo. AWS Logo. SafetyTech logo. Ostia logo. Oasis logo.