Templates / Analyze social media sentiment & trends from Twitter & Facebook using GPT-4o

Analyze social media sentiment & trends from Twitter & Facebook using GPT-4o

Ready for 3.0

by Rahul Joshi ✓ · 352 views · created 2025-11-14 · Market Research, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Azure OpenAI Chat Model, Facebook Graph API, Gmail and Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Fetch Recent Facebook Comments (Facebook Graph API): uses Facebook Graph API
  2. Fetch Recent Mentions (X API) (HTTP Request): calls an HTTP API
  3. Merge: merges the data from its input branches
  4. Validate API Response Integrity (If): checks a condition and branches into true / false
  5. Consolidate Mentions & Comments (Code): runs custom JavaScript code
  6. Log Errors in Google Sheets (Google Sheets): append
  7. Perform Sentiment & Keyword Analysis (AI Agent): runs an AI agent, with model: Configure GPT-4o Model
  8. Parse AI Output to Structured JSON (Code): runs custom JavaScript code
  9. Generate Audience Sentiment Summary (AI Agent): runs an AI agent, with model: Configure GPT-4o Model
  10. Send Email Summary to Marketing Team (Gmail): uses Gmail

Services it uses

Azure OpenAI Chat ModelFacebook Graph APIGmailGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Description Gain real-time audience intelligence with this cross-platform AI Sentiment Analyzer for Twitter (X) and Facebook. 📊🧠 This workflow consolidates mentions and comments, performs GPT-4o-powered sentiment and keyword analysis, summarizes audience…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.