🔓 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, catch negative comments fast

Lisa Granqvist Partner Workflow Automation Expert

You post on Facebook, the comments roll in, and the mood shifts before anyone notices. By the time someone on your team spots the problem, the thread is already messy, screenshots are circulating, and you’re stuck reacting instead of managing.

This is the kind of stress that hits social media managers first, but PR leads and ops-minded agency owners feel it too. With Facebook Slack alerts in place, you get a fast signal when sentiment turns negative, so you can jump in while it’s still fixable.

This workflow pulls recent posts and comments, runs GPT-powered sentiment analysis, logs everything to Google Sheets, and pings Slack only when it matters. You’ll see how it works, what you need, and how to tailor it to your brand and risk tolerance.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Facebook to Slack, catch negative comments fast

The Problem: Negative Comments Get Noticed Before You Do

Facebook comment sections can flip fast. A normal post turns into a complaint thread, then someone tags friends, then you’ve got a mini PR moment on your hands. The worst part is the “blind window” where negativity is building, but nobody is watching because your team is busy doing real work. Manual monitoring sounds simple until you’re checking multiple posts, scrolling hundreds of comments, and trying to decide if it’s a real issue or just noise. One miss can cost hours of cleanup, plus the brand damage that’s hard to measure but easy to feel.

It adds up fast. Here’s where things usually break down.

  • You only find negative threads after someone forwards a screenshot in Slack.
  • Team members interpret tone differently, so the escalation process becomes inconsistent.
  • There’s no clean log of sentiment over time, which makes reporting and trend-spotting basically guesswork.
  • When you do take action, you’re missing context because nobody captured what changed and when.

The Solution: Daily Facebook Sentiment Monitoring That Escalates to Slack

This n8n workflow checks your Facebook Page on a schedule (daily by default), pulls your recent posts, and collects engagement details plus up to 100 comments per post via the Facebook Graph API. Then it cleans and structures that data so an AI agent can review it consistently. GPT evaluates both the post tone and the audience response, returning sentiment scores, confidence, and short explanations you can actually use in a handoff. If the results cross your “negative” threshold, the workflow sends a focused alert to Slack right away, logs the full dataset to Google Sheets, and generates a color-coded HTML summary email through Microsoft Outlook for daily visibility. If something breaks, you still get notified via a dedicated error trigger.

The workflow starts at a set time, fetches posts and comments, and runs AI sentiment analysis with structured output. From there, it routes only the negative cases into Slack while still recording everything to Sheets and emailing a clean daily report to keep stakeholders aligned.

What You Get: Automation vs. Results

Example: What This Looks Like

Say your Page publishes 2 posts per day, and each post gets around 80 comments. Manually checking both threads, skimming for tone, and writing a quick internal update can take about 20 minutes per post, so you’re at roughly 40 minutes a day (and more when things get heated). With this workflow, you spend maybe 5 minutes glancing at the Slack alerts and the daily email summary, because only the risky stuff gets pushed to the front. That’s about 3 hours back each week, plus fewer “how did we miss this?” moments.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Facebook Graph API to fetch posts and comments
  • Slack to alert a channel when negativity spikes
  • OpenAI API key (get it from your OpenAI dashboard)

Skill level: Intermediate. You’ll connect accounts, paste a few credentials, and sanity-check the sentiment thresholds.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A daily schedule kicks it off. At 10 AM by default, n8n starts a run and targets your configured Facebook Page via the Graph API.

Facebook data is pulled and cleaned. The workflow retrieves recent posts along with reactions and engagement fields, then fetches up to 100 comments per post. A normalization step structures the payload so the AI gets consistent inputs instead of messy text blobs.

GPT reviews sentiment and returns structured scores. An AI agent evaluates the post tone and the audience response, then outputs sentiment labels, confidence, and short explanations. A routing step decides what qualifies as “negative enough” to escalate.

Alerts, logging, and reporting happen automatically. Negative items go to Slack for immediate attention, while all results are logged to Google Sheets for trend tracking. Finally, a color-coded HTML report is sent through Microsoft Outlook, and an error trigger will notify Slack if the workflow fails.

You can easily modify the negative threshold to match your brand’s risk tolerance based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Schedule Trigger

Set the daily schedule that initiates the sentiment workflow and begins data collection from Facebook.

  1. Open Daily Sentiment Trigger and confirm the rule interval is set to run at 10 (triggerAtHour).
  2. Connect Daily Sentiment Trigger to Retrieve Recent FB Posts to start the workflow on schedule.

If you want a different schedule, edit the hour in Daily Sentiment Trigger and keep the connection intact.

Step 2: Connect Facebook Data Source

Pull recent Facebook posts and ensure the required fields are returned for sentiment analysis.

  1. Open Retrieve Recent FB Posts and set Edge to posts and Graph API Version to v23.0.
  2. Confirm the Fields include the full payload list shown in the node (IDs, messages, comments, reactions, and page info).
  3. Credential Required: Connect your facebookGraphApi credentials in Retrieve Recent FB Posts (this node needs authentication but none is configured).

⚠️ Common Pitfall: If the Facebook Graph API permissions are missing (e.g., comments or reactions), the downstream sentiment analysis will have incomplete data.

Step 3: Set Up Processing and AI Sentiment Analysis

Normalize Facebook data, run AI sentiment analysis, and parse structured outputs for routing.

  1. Open Normalize FB Payload and keep the JavaScript formatter code as-is to flatten posts and comments.
  2. Open Sentiment Review Agent and confirm the prompt uses expressions like {{$json.postId}}, {{$json.message}}, and {{JSON.stringify($json.comments)}}.
  3. Ensure OpenAI Chat Model is connected as the language model for Sentiment Review Agent and set Model to gpt-4o with Temperature 0.4.
  4. Credential Required: Connect your openAiApi credentials in OpenAI Chat Model.
  5. Confirm Structured JSON Extractor is attached as the output parser for Sentiment Review Agent and retains the JSON schema example.
  6. Confirm Session Memory Buffer is attached as memory to Sentiment Review Agent with Session ID Type set to customKey and Session Key set to ="Candidate Screening".

For AI tool nodes like Structured JSON Extractor and Session Memory Buffer, add credentials and settings to the parent Sentiment Review Agent or its model (OpenAI Chat Model), not the sub-nodes.

Step 4: Configure Routing and Parallel Actions

Route sentiment results, send negative alerts, and prepare records for the sheet update.

  1. Open Sentiment Score Router and confirm the rules evaluate ={{ $json.output.overallCommentSentiment.score }} with thresholds -0.4 and 0.
  2. Note the parallel execution: Sentiment Score Router outputs to both Slack Negative Alert and Prepare Sheet Rows in parallel.
  3. In Slack Negative Alert, keep the alert message template and expressions such as {{ $json.output.postMessage }} and {{ $json.output.overallCommentSentiment.score }}.
  4. Credential Required: Connect your slackOAuth2Api credentials in Slack Negative Alert.

⚠️ Common Pitfall: If the switch rules are altered without matching score ranges, negative alerts may never trigger or always trigger.

Step 5: Configure Reporting Outputs

Store sentiment results in Google Sheets and email a formatted HTML report.

  1. In Prepare Sheet Rows, keep the JavaScript that flattens data and sets analyzedAt with new Date().toISOString().
  2. Open Update Sentiment Sheet and set Operation to appendOrUpdate, Document ID to [YOUR_ID], and Sheet Name to Sheet1 (gid=0).
  3. Credential Required: Connect your googleSheetsOAuth2Api credentials in Update Sentiment Sheet.
  4. Open Compose HTML Report and keep the email HTML builder code unchanged for styled output.
  5. Open Dispatch Outlook Report and set Subject to ={{ $json.subject }} and Body Content to ={{ $json.htmlBody }}; ensure Body Content Type is html.
  6. Credential Required: Connect your microsoftOutlookOAuth2Api credentials in Dispatch Outlook Report.

Step 6: Add Error Handling

Capture failures and notify your team in Slack when the workflow encounters errors.

  1. Open Failure Capture Trigger and keep it connected to Slack Error Notification.
  2. In Slack Error Notification, verify the message uses expressions like {{ $json.node.name }}, {{ $json.error.message }}, and {{ $json.timestamp }}.
  3. Credential Required: Connect your slackOAuth2Api credentials in Slack Error Notification (this node needs authentication but none is configured).

Step 7: Test and Activate Your Workflow

Run the workflow manually to validate the full sentiment pipeline and then enable it for daily reporting.

  1. Click Execute Workflow starting from Daily Sentiment Trigger and confirm Retrieve Recent FB Posts returns data.
  2. Verify Sentiment Review Agent outputs valid JSON through Structured JSON Extractor and routes through Sentiment Score Router.
  3. Confirm parallel results: Slack Negative Alert triggers for negative scores, and Update Sentiment Sheet appends rows.
  4. Validate the email by checking Dispatch Outlook Report for a message with subject from {{ $json.subject }} and HTML content from {{ $json.htmlBody }}.
  5. Turn the workflow Active to enable daily execution.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Facebook Graph API credentials can expire or lack the right access. If things break, check your token status and confirm you have pages_read_engagement access in your Meta 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.

Frequently Asked Questions

How long does it take to set up this Facebook Slack alerts automation?

About 45 minutes if you already have the API access and logins.

Do I need coding skills to automate Facebook Slack alerts?

No. You’ll mainly connect accounts and paste a few keys. The workflow already handles the logic and formatting.

Is n8n free to use for this Facebook Slack alerts 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, which are usually a few cents per run depending on how many posts and comments you analyze.

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.

Can I customize this Facebook Slack alerts workflow for different alert thresholds?

Yes, and you should. You can adjust the routing logic in the “Sentiment Score Router” so only certain confidence levels or sentiment labels trigger Slack. Common customizations include alerting only on high-confidence negative comments, adding a “warning” tier for mixed sentiment, and sending different Slack messages per product line.

Why is my Facebook Graph API connection failing in this workflow?

Usually it’s an expired access token or missing permissions like pages_read_engagement. Regenerate the token in Meta for Developers, confirm the Page you’re querying matches the page ID in the workflow, and then update the credential in n8n. If it fails only on certain posts, you may also be hitting data visibility limits (for example, comments that are hidden or restricted). Rate limiting can show up too when you pull lots of posts and up to 100 comments each, so reducing the number of posts fetched can stabilize runs.

How many posts and comments can this Facebook Slack alerts automation handle?

A typical daily run can comfortably process a handful of posts with up to 100 comments each, and the real ceiling depends on your n8n plan and your API limits.

Is this Facebook Slack alerts automation better than using Zapier or Make?

For this use case, n8n is often the better fit because you can run more complex logic (routing, structured AI output, and richer formatting) without fighting platform limits. Self-hosting also matters if you want unlimited executions and tighter control over data, especially when you’re pulling comments and sending them to an AI model. Zapier and Make can work, but multi-step AI parsing plus branching usually gets expensive or awkward. Honestly, the deciding factor is how much you care about customization and cost at scale. Talk to an automation expert if you’re not sure which fits.

Once this is running, you’re not “checking Facebook.” You’re getting clear signals when something needs attention, plus a tidy record for reporting and learning.

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