πŸ“Š Analyze Facebook comment sentiment with GPT-4, Slack, Sheets & Outlook reports

⚑ 356 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly β€” no app review needed.

View All Scrapers

Description

πŸ“Š Description

Automatically analyze the sentiment of Facebook posts and their audience comments using GPT-4 to identify trends and potential PR risks. πŸ§ πŸ’¬ This workflow fetches recent posts via the Facebook Graph API, performs AI-powered sentiment analysis on both posts and comments, routes negative results to Slack for immediate attention, logs all data into Google Sheets, and sends a beautifully formatted sentiment summary report via Outlook. πŸ“ˆπŸ“§

What This Template Does

1️⃣ Trigger – Runs daily at 10 AM to fetch the latest Facebook posts. ⏰ 2️⃣ Data Extraction – Pulls post text, reactions, and up to 100 comments per post using Facebook Graph API. πŸ“² 3️⃣ Formatting – Structures and cleans Facebook data for AI analysis. 🧩 4️⃣ AI Sentiment Analysis – GPT-4 evaluates post tone and audience sentiment with confidence scores and explanations. πŸ€– 5️⃣ Routing – Sends negative sentiment alerts directly to Slack for quick response. ⚠️ 6️⃣ Logging – Records all sentiment metrics in Google Sheets, including positivity ratio and engagement data. πŸ“Š 7️⃣ Reporting – Generates a color-coded HTML email report and delivers it via Outlook. πŸ’Œ 8️⃣ Error Handling – Sends Slack alerts if any node in the workflow fails. πŸ›‘οΈ

Key Benefits

βœ… Monitors brand reputation automatically across Facebook comments βœ… Provides structured AI sentiment reports for data-driven decisions βœ… Flags negative audience sentiment for timely intervention βœ… Maintains an always-updated sentiment log in Google Sheets βœ… Delivers professional HTML summary emails to teams

Features

Requirements

Target Audience

Step-by-Step Setup Instructions

1️⃣ Connect Facebook Graph API credentials and set your page ID. 2️⃣ Add OpenAI credentials for GPT-4 sentiment analysis. 3️⃣ Configure Slack and provide your channel ID for alerts. 4️⃣ Set Google Sheets credentials and specify sheet ID and name. 5️⃣ Connect Microsoft Outlook for email report delivery. 6️⃣ Adjust the daily schedule (default 10 AM) as needed. 7️⃣ Run once manually to verify setup, then enable automation. βœ…

πŸ”— Nodes Used

Google Sheets, Slack, Facebook Graph API, Microsoft Outlook, Schedule Trigger, AI Agent

πŸ“₯ Import

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

πŸ“– Importing guide Β· πŸ”‘ Credential setup