Moderate Facebook Comments with AI and Send Reports to Slack & Telegram

Go to Workflow
0 views
Built by WeblineIndia WeblineIndia
Created on June 13, 2026

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:

Automated Facebook comment moderation
AI-based intent, toxicity, and spam detection
Database logging of all moderated comments
Clean Slack & Telegram summary reports

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

Quick Start – Implementation Steps

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

What It Does

This workflow automates Facebook comment moderation by:

Running on a scheduled interval (every 6 hours).
Fetching recent comments from a Facebook Page.
Preparing each comment for AI processing.
Sending comments to OpenAI for moderation analysis.
Extracting structured moderation data:
Comment intent
Toxicity score
Spam detection
Abusive language detection
Flagging risky comments based on defined rules.
Storing moderation results in Supabase.
Generating a summary report.
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:

Social media teams
Community managers
Marketing teams
Customer support teams
Moderation and trust & safety teams
Businesses managing high-volume Facebook Pages
Anyone wanting AI-assisted comment moderation

Requirements to Use This Workflow

To run this workflow, you need:

n8n instance** (cloud or self-hosted)
Facebook Page access token**
OpenAI API key**
Supabase project and table**
Slack workspace** with API access
Telegram bot** and chat ID
Basic understanding of APIs and JSON (helpful but not required)

How It Works

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

Setup Steps

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

How To Customize Nodes

Customize Flagging Rules

Update the normalization logic to:

Change toxicity thresholds
Flag only spam or abusive comments
Add custom moderation rules

Customize Storage

You can extend Supabase fields to include:

Language
AI confidence score
Reviewer notes
Resolution status

Customize Notifications

Slack and Telegram messages can include:

Emojis
Mentions (@channel)
Links to Facebook comments
Severity labels

Add-Ons (Optional Enhancements)

You can extend this workflow to:

Auto-hide or delete toxic comments
Reply automatically to positive comments
Detect language and region
Generate daily or weekly moderation reports
Build dashboards using Supabase or BI tools
Add escalation alerts for high-risk comments
Track trends over time

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

| Issue | Possible Cause | Solution |
|-----|---------------|----------|
| No comments fetched | Invalid Facebook token | Refresh token & permissions |
| AI output invalid | Prompt formatting issue | Use strict JSON prompt |
| Data not saved | Supabase mapping mismatch | Verify table fields |
| Slack message missing | Channel or credential error | Recheck Slack config |
| Telegram alert fails | Wrong chat ID | Confirm bot permissions |
| Workflow not running | Trigger disabled | Enable 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 (6)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
Slack
n8n-nodes-base.slack
Supabase
n8n-nodes-base.supabase
Telegram
n8n-nodes-base.telegram