๐ŸŽซ Moderate Facebook comments with AI and send reports to Slack & Telegram

โšก 154 views ยท ๐ŸŽซ Ticket Management & Triage

Description

Facebook Page Comment Moderation Scoreboard โ†’ Team Report

This workflow automatically monitors Facebook Page comments, analyzes them using AI for intent, toxicity & spam, stores moderation results in a database and sends a clear summary report to Slack and Telegram.

This workflow runs every few hours to fetch Facebook Page comments and analyze them using OpenAI. Each comment is classified as positive, neutral or negative, checked for toxicity, spam & abusive language and then stored in Supabase. A simple moderation summary is sent to Slack and Telegram.

You receive:

Ideal for teams that want visibility into comment quality without manually reviewing every message.

Quick Start โ€“ Implementation Steps

  1. Import the workflow JSON into n8n.
  2. Add your Facebook Page access token to the HTTP Request node.
  3. Connect your OpenAI API key for comment analysis.
  4. Configure your Supabase table for storing moderation data.
  5. Connect Slack and Telegram credentials and choose target channels.
  6. Activate the workflow โ€” moderation runs automatically.

What It Does

This workflow automates Facebook comment moderation by:

  1. Running on a scheduled interval (every 6 hours).
  2. Fetching recent comments from a Facebook Page.
  3. Preparing each comment for AI processing.
  4. Sending comments to OpenAI for moderation analysis.
  5. Extracting structured moderation data:
    • Comment intent
    • Toxicity score
    • Spam detection
    • Abusive language detection
  6. Flagging risky comments based on defined rules.
  7. Storing moderation results in Supabase.
  8. Generating a summary report.
  9. Sending the report to Slack and Telegram.

This ensures consistent, repeatable moderation with no manual effort.

Whoโ€™s It For


This workflow is ideal for:

Requirements to Use This Workflow

To run this workflow, you need:

How It Works

  1. Scheduled Trigger โ€“ Workflow starts automatically every 6 hours.
  2. Fetch Comments โ€“ Facebook Page comments are retrieved.
  3. Prepare Data โ€“ Comments are formatted for processing.
  4. AI Moderation โ€“ OpenAI analyzes each comment.
  5. Normalize Results โ€“ AI output is cleaned and standardized.
  6. Store Data โ€“ Moderation results are saved in Supabase.
  7. Aggregate Stats โ€“ Summary statistics are calculated.
  8. Send Alerts โ€“ Reports are sent to Slack and Telegram.

Setup Steps

  1. Import the workflow JSON into n8n.
  2. Open the Fetch Facebook Page Comments node and add:
    • Page ID
    • Access token
  3. Connect your OpenAI account in the AI moderation node.
  4. Create a Supabase table and map fields correctly.
  5. Connect Slack and select a reporting channel.
  6. Connect Telegram and set the chat ID.
  7. Activate the workflow.

How To Customize Nodes

Customize Flagging Rules

Update the normalization logic to:

Customize Storage

You can extend Supabase fields to include:

Customize Notifications

Slack and Telegram messages can include:

Add-Ons (Optional Enhancements)

You can extend this workflow to:

Use Case Examples

1. Community Moderation

Automatically identify harmful or spam comments.

2. Brand Reputation Monitoring

Spot negative sentiment early and respond faster.

3. Support Oversight

Detect complaints or frustration in comments.

4. Marketing Insights

Measure positive vs negative engagement.

5. Compliance & Auditing

Keep historical moderation logs in a database.

Troubleshooting Guide

IssuePossible CauseSolution
No comments fetchedInvalid Facebook tokenRefresh token & permissions
AI output invalidPrompt formatting issueUse strict JSON prompt
Data not savedSupabase mapping mismatchVerify table fields
Slack message missingChannel or credential errorRecheck Slack config
Telegram alert failsWrong chat IDConfirm bot permissions
Workflow not runningTrigger disabledEnable Cron node

Need Help?

If you need help customizing, scaling or extending this workflow โ€” such as advanced moderation logic, dashboards, auto-actions or production hardening, then our n8n workflow development team at WeblineIndia can assist with expert automation solutions.

๐Ÿ”— Nodes Used

Cron, HTTP Request, Slack, Telegram, Supabase, OpenAI

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup