🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Facebook to Slack, cleaner comment moderation reports

Lisa Granqvist Partner Workflow Automation Expert

You open your Facebook Page, ready to respond to real customers, and instead you’re wading through spam, bait, and “helpful” comments that are anything but. Worse, the ugly stuff shows up after hours, sits there, and quietly damages trust.

Community managers live in the inbox. Marketing leads have brand reputation on the line. And support teams get dragged into threads that should’ve been flagged earlier. This Slack moderation reports automation gives you a clear, consistent snapshot of comment health without babysitting the feed.

This workflow pulls recent comments on a schedule, uses AI to score intent, toxicity, and spam, logs every decision in Supabase, then posts a clean summary to Slack (and Telegram). You’ll see what it fixes, what it costs, and how to adapt it to your own moderation rules.

How This Automation Works

See how this solves the problem:

n8n Workflow Template: Facebook to Slack, cleaner comment moderation reports

The Challenge: Keeping Up With Facebook Comments (Without Missing the Bad Stuff)

Facebook comment sections change fast. A post starts normal, then a spam wave hits, then one toxic reply triggers a pile-on. If you’re checking manually, you’re always late. Even when you do catch it, you’re still stuck doing repetitive triage: skim, guess intent, decide if it’s abusive, take screenshots for proof, then tell the team in Slack what happened. That mental overhead is the real tax. You end up reacting instead of moderating with a plan, and the audit trail is usually a messy chain of messages nobody wants to search later.

It adds up fast. Here’s where it breaks down in the real world.

  • Manual review means harmful comments can sit for hours, especially outside business hours or during launches.
  • People don’t moderate consistently, so the same kind of comment gets treated differently depending on who’s on duty.
  • Reporting to the team becomes a second job, because you’re copying examples, summarizing patterns, and trying to explain severity.
  • Without a database log, you can’t easily prove what happened later or spot trends like repeat offenders and recurring spam phrases.

The Fix: AI Moderation + Supabase Logging + Slack Summaries

This workflow runs on a schedule (every 6 hours) and checks your Facebook Page for recent comments. Each comment is formatted into a clean input, then sent to OpenAI for moderation analysis. The AI returns structured results: intent (positive/neutral/negative), plus flags for toxicity, spam, and abusive language. From there, the workflow standardizes the output so it stays consistent even when comments are messy or sarcastic. Every scored comment is saved into Supabase, which gives you a searchable moderation ledger. Finally, the workflow compiles a simple “what happened since the last run” report and posts it to Slack and Telegram, so your team sees problems early without living inside Facebook all day.

The workflow starts with a scheduled trigger, then grabs the latest comment feed through a Facebook API request. AI reviews each comment, the results get normalized and logged to Supabase, and a summary is pushed to Slack and Telegram for visibility.

What Changes: Before vs. After

Real-World Impact

Say your Page averages about 40 new comments a day across a few active posts. A quick manual pass is maybe 1 minute per comment once you include context-checking and deciding what’s “actually bad,” so you’re spending about 40 minutes daily, plus another 10 minutes writing a Slack update. With this workflow, you spend about 5 minutes skimming the Slack summary and only open Facebook when something is flagged. That’s roughly 45 minutes back each day, and your record is already stored in Supabase.

Requirements

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Facebook Page access token to fetch Page comments via API.
  • Slack to post moderation summaries to your team.
  • Supabase for database logging and audit trails.
  • OpenAI API key (get it from your OpenAI dashboard).
  • Telegram bot + chat ID to send the same report to Telegram.

Skill level: Intermediate. You’ll connect accounts, paste API keys, and map a few fields to your Supabase table.

Need help implementing this? Talk to an automation expert (free 15-minute consultation).

The Workflow Flow

Scheduled check-in (every 6 hours). A Cron trigger kicks the workflow off automatically, so moderation keeps happening even when nobody is watching the Page.

Comment retrieval from Facebook. An HTTP request pulls the latest comment feed for your Page using your Page ID and access token. If Facebook returns nothing new, the workflow effectively has nothing to process.

AI review and normalization. Comments get formatted, sent to the OpenAI chat model for moderation scoring, then cleaned up into a consistent structure (intent, toxicity, spam, abusive language, plus whatever fields you add).

Logging and reporting. Every analyzed comment is saved into Supabase, then the workflow aggregates totals and key flags. A readable summary is sent to Slack and Telegram so the team can react quickly.

You can easily modify the toxicity thresholds to match your tolerance based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Cron Trigger

This workflow starts on a schedule using the built-in cron trigger.

  1. Add the Scheduled Automation Start node.
  2. Set Trigger Times to everyX with Value 6 to run every 6 units (as configured in the node).
  3. Connect Scheduled Automation Start to Retrieve Page Comment Feed.

Step 2: Connect the Comment Data Source

Fetch the Facebook comment feed via HTTP and prepare items for AI analysis.

  1. Add the Retrieve Page Comment Feed node.
  2. Set URL to https://graph.facebook.com/v22.0/[YOUR_ID]/comments.
  3. Enable Continue On Fail in Retrieve Page Comment Feed if you want the workflow to proceed on API errors (already enabled in the template).
  4. Add the Format Comment Items node and connect it after Retrieve Page Comment Feed.
  5. In Format Comment Items, keep the JavaScript Code as provided to enrich each item with myNewField.

⚠️ Common Pitfall: The Facebook Graph API endpoint typically requires an access token. If you add authentication, ensure the token is included in the request (e.g., query string or headers) to prevent empty results.

Step 3: Set Up AI Moderation and Standardization

This step sends each comment to the AI model and standardizes the response into a consistent JSON structure.

  1. Add the AI Comment Review node and connect it after Format Comment Items.
  2. Set the Model to gpt-4.1-mini in AI Comment Review.
  3. In AI Comment Review, keep the prompt content as configured. It references the input comment with the expression {{$json.message}}.
  4. Credential Required: Connect your openAiApi credentials in AI Comment Review.
  5. Add the Standardize AI Output node and connect it after AI Comment Review.
  6. Keep the JavaScript Code in Standardize AI Output to parse AI JSON and compute flagged based on toxicity, spam, or bad words.

⚠️ Common Pitfall: If the AI returns malformed JSON, Standardize AI Output throws an error. Keep the strict JSON response rules in the prompt to avoid invalid outputs.

Step 4: Configure Data Storage and Reporting Outputs

Store moderation logs, compile metrics, and send reports to Slack and Telegram. Note the parallel execution at the end of this step.

  1. Add the Save Moderation Logs node and connect it after Standardize AI Output.
  2. Set Table ID to facebook_comment_moderation and Data to Send to autoMapInputData in Save Moderation Logs.
  3. Credential Required: Connect your supabaseApi credentials in Save Moderation Logs.
  4. Add the Compile Moderation Metrics node and connect it after Save Moderation Logs.
  5. Keep the JavaScript Code in Compile Moderation Metrics to generate the slack_message summary.
  6. Add the Slack Team Update node and connect it after Compile Moderation Metrics.
  7. Set Text to {{ $json.slack_message }} in Slack Team Update, choose a Channel, and keep Include Link to Workflow set to false.
  8. Credential Required: Connect your slackApi credentials in Slack Team Update.
  9. Add the Telegram Report Dispatch node and connect it after Compile Moderation Metrics.
  10. Set Text to {{ $json.slack_message }} and Chat ID to [YOUR_ID] in Telegram Report Dispatch.
  11. Credential Required: Connect your telegramApi credentials in Telegram Report Dispatch.

Execution Note: Compile Moderation Metrics outputs to both Slack Team Update and Telegram Report Dispatch in parallel.

Step 5: Test and Activate Your Workflow

Run a manual test to verify the moderation pipeline, then activate scheduling for production.

  1. Click Execute Workflow to run a manual test starting from Scheduled Automation Start.
  2. Confirm Retrieve Page Comment Feed returns items and AI Comment Review outputs structured JSON.
  3. Verify Save Moderation Logs inserts rows into facebook_comment_moderation and Compile Moderation Metrics generates slack_message.
  4. Check that both Slack Team Update and Telegram Report Dispatch deliver the moderation report.
  5. Toggle the workflow to Active to enable scheduled runs.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Watch Out For

  • Facebook access tokens expire and permissions can change. If comments suddenly stop fetching, check the token validity and Page permissions in the Meta developer/app settings first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Common Questions

How quickly can I implement this Slack moderation reports automation?

Usually about an hour if you already have your tokens and Supabase table ready.

Can non-technical teams implement this comment moderation reporting?

Yes, but you’ll want someone comfortable copying API keys and testing a run. No coding is required, although the Supabase field mapping needs a careful eye.

Is n8n free to use for this Slack moderation reports workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API costs (usually a few dollars a month for most Pages).

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

How do I adapt this Slack moderation reports solution to my specific challenges?

You can tighten or loosen what gets flagged by changing the rules right after the AI review, where the workflow standardizes the AI output. Common tweaks include raising the toxicity threshold, flagging only spam links, and adding a “needs human review” status that routes into a different Slack channel. If you want different reporting, change the metrics compilation step to group by post, keyword, or severity label.

Why is my Facebook connection failing in this workflow?

Most of the time it’s an expired access token or missing permissions on the Page. Regenerate the token, confirm the Page ID is correct, and re-check the Meta app settings that allow reading Page engagement. If it works in Facebook’s API tools but not in n8n, the credential stored in n8n is usually the mismatch.

What’s the capacity of this Slack moderation reports solution?

For most Pages, it comfortably handles hundreds of comments per run.

Is this Slack moderation reports automation better than using Zapier or Make?

Often, yes, because this workflow isn’t just “send a message when X happens.” You’re doing batch processing, AI classification, data normalization, database logging, and then an aggregated report, which is where Zapier and Make can get expensive or awkward. n8n also gives you a self-hosted option, so high-volume Pages don’t turn into a per-task bill shock. Zapier or Make can still be fine for a lightweight alert, especially if you don’t care about keeping an audit trail. If you’re unsure, Talk to an automation expert and describe your comment volume and reporting needs.

Once this is running, your team stops chasing comment fires and starts seeing patterns early. The workflow handles the repetitive review and reporting so you can focus on the conversations that actually matter.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal