πŸ“Š Generate weekly Twitter & Facebook performance reports with GPT-4o analysis

⚑ 90 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

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 visual HTML summary with GPT-4o, stores structured analytics in Notion, and broadcasts key results through Gmail and Slack β€” all in one seamless flow. Perfect for marketing, social media, and growth teams tracking weekly engagement trends. πŸš€πŸ’¬

What This Template Does

1️⃣ Starts on manual execution to fetch the latest performance data. πŸ•ΉοΈ 2️⃣ Collects live metrics from both Twitter (X API) and Facebook Graph API. πŸ¦πŸ“˜ 3️⃣ Merges API responses into one unified dataset for analysis. 🧩 4️⃣ Validates data completeness before processing; logs missing or invalid data to Google Sheets. πŸ” 5️⃣ Uses JavaScript to normalize data into clean JSON structures for AI analysis. πŸ’» 6️⃣ Leverages Azure OpenAI GPT-4o to generate a professional HTML analytics report. πŸ§ πŸ“ˆ 7️⃣ Updates Notion’s β€œGrowth Chart” database with historical metrics for record-keeping. πŸ—‚οΈ 8️⃣ Sends the HTML report via Gmail to the marketing or analytics team. πŸ“§ 9️⃣ Posts a summarized Slack message highlighting key insights and platform comparisons. πŸ’¬

Key Benefits

βœ… Eliminates manual social media reporting with full automation. βœ… Ensures clean, validated data before report generation. βœ… Delivers visually engaging HTML performance summaries. βœ… Centralizes analytics storage in Notion for trend tracking. βœ… Keeps teams aligned with instant Slack and Gmail updates.

Features

Requirements

Environment Variables

Target Audience

πŸ“ˆ Marketing and growth teams analyzing engagement trends. πŸ’‘ Social media managers tracking cross-channel performance. 🧠 Data and insights teams needing AI-based summaries. πŸ’¬ Brand strategists and content teams monitoring audience health. 🧾 Agencies and operations teams automating weekly reporting.

Step-by-Step Setup Instructions

1️⃣ Connect all required API credentials (Twitter, Facebook, Azure OpenAI, Notion, Gmail, Slack, Sheets). 2️⃣ Replace the username and page IDs in the HTTP Request nodes for your brand handles. 3️⃣ Verify the JavaScript node output structure for correct field mapping. 4️⃣ Configure the Azure GPT-4o prompt with your preferred tone and formatting. 5️⃣ Link your Notion database and confirm property names match (followers, likes, username). 6️⃣ Add recipient email(s) in the Gmail node. 7️⃣ Specify your Slack channel ID for automated alerts. 8️⃣ Test run the workflow manually to validate end-to-end execution. 9️⃣ Activate or schedule the workflow for regular weekly reporting. βœ…

πŸ”— Nodes Used

Google Sheets, HTTP Request, Facebook Graph API, Gmail, AI Agent, Azure OpenAI Chat Model

πŸ“₯ Import

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

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