Analyze social media sentiment & trends from Twitter & Facebook using GPT-4o
Ready for 3.0What 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”.
- Fetch Recent Facebook Comments (Facebook Graph API): uses Facebook Graph API
- Fetch Recent Mentions (X API) (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Validate API Response Integrity (If): checks a condition and branches into true / false
- Consolidate Mentions & Comments (Code): runs custom JavaScript code
- Log Errors in Google Sheets (Google Sheets): append
- Perform Sentiment & Keyword Analysis (AI Agent): runs an AI agent, with model: Configure GPT-4o Model
- Parse AI Output to Structured JSON (Code): runs custom JavaScript code
- Generate Audience Sentiment Summary (AI Agent): runs an AI agent, with model: Configure GPT-4o Model
- Send Email Summary to Marketing Team (Gmail): uses Gmail
Services it uses
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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
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…