Moderate Content with Formulaic AI

Use Formulaic’s GenAI to easily evaluate user-generated content for harmful or inappropriate material. Automate your moderation process to save time and ensure consistent content reviews.

Step 1: Set Up Your Environment

To begin, create a free account on Formulaic, and then install the Formulaic Node.js library in your project using this command:

npm install formulaic-node

Step 2: Create Your Moderation Formula

You can create a moderation formula directly on the Formulaic platform or programmatically using the code below.

Loading...
{
  "id": "12345",
  "name": "Moderation Decider",
  "description": "Decide if a comment follows community policies",
  "status": "unpublished"
}

Step 3: Upload Policy Documents (Optional)

You can enhance your moderation by uploading policy documents that the AI can reference.

Loading...
{
  "fileId": "file_67890",
  "message": "File uploaded successfully."
}

Step 4: Evaluate User Content

Now you can evaluate user-generated content using the formula you created.

Loading...
{
  "decision": "approve",
  "reason": "Content complies with policies."
}

Full Working Code Example

Here's the complete code integrating all the steps above.

Loading...