Generate weekly Twitter & Facebook performance reports with GPT-4o analysis
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Azure OpenAI Chat Model, Gmail, Facebook Graph API and Google Sheets. It also calls api.x.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Recent Tweets (HTTP Request): calls api.x.com
- Fetch Recent Facebook Posts (Facebook Graph API): uses Facebook Graph API
- Format Twitter Post Data (Code): runs custom JavaScript code
- Format Facebook Post Data (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Validate API Response Integrity (If): checks a condition and branches into true / false
- Consolidate Social Data Summary (Code): runs custom JavaScript code
- Log Errors in Google Sheets (Google Sheets): append
- Generate HTML Social Performance Report (AI Agent): runs an AI agent, with model: Configure GPT-4o Model
- Send Email Summary to Marketing Team (Gmail): uses Gmail
Services it uses
HTTP calls to: api.x.com
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 - Gmail
n8n-nodes-base.gmail - HTTP Request
n8n-nodes-base.httpRequest - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Description Automate your weekly cross-platform social media analytics workflow with AI-powered insights. 📊🤖 This system retrieves real-time Twitter (X) and Facebook data, validates and merges the metrics, formats them via custom JavaScript, generates a…