Skip to main content

Moderate Facebook comments with AI and send reports to Slack & Telegram

Workflow preview

Workflow preview
100%
Moderate Facebook comments with AI and send reports to Slack & Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.cron, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.supabase, n8n-nodes-base.telegram, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Moderate Facebook comments with AI and send reports to Slack & Telegram
Workflow name
Moderate Facebook comments with AI and send reports to Slack & Telegram

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

  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:

  • 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

  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:

  • 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Scheduled Workflow Trigger

Type / Role
n8n-nodes-base.cron - cron
Config choices
Version 1

Block 2 - Fetch Facebook Page Comments

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4

Block 3 - Prepare Comment Items for Processing

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - AI-Based Comment Moderation

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2

Block 5 - Normalize AI Moderation Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Store Moderation Logs in Database

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 7 - Aggregate Moderation Statistics

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Send Moderation Reports to Telegarm

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 9 - Send Moderation Reports to Team via Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Moderate Facebook comments with AI and send reports to Slack & Telegram
Complexity intermediate
Nodes 14
Categories Ticket Management, AI Summarization
Author WeblineIndia
Published 22 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12028/12028.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Moderate Facebook comments with AI and send reports to Slack & Telegram do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.