workflows.fit
Back to n8n workflows
n8n templateFreeBy Kirill Khatkevich

Meta Ads Performance Analysis with GPT-4 & Gemini AI Comparisons

This workflow transforms raw Meta Ads data into actionable, expert-level insights. It acts as a virtual performance marketer, analyzing each creative's performance, comparing it against your historical benchmarks, and...

Data & StorageProductivityDevelopmentCore NodesAILangchainSchedule TriggerFacebook Graph Api
Loading interactive preview...

Template notes

This workflow transforms raw Meta Ads data into actionable, expert-level insights. It acts as a virtual performance marketer, analyzing each creative's performance, comparing it against your historical benchmarks, and delivering clear recommendations on whether to scale, optimize, or stop the ad. By running parallel analyses with both OpenAI and Gemini, it provides a unique, dual-perspective evaluation. This template is the perfect sequel to our "Automation of Creative Testing" workflow but also works powerfully on its own.

Use Case Manually sifting through ads manager reports is tedious, and identifying true winners from early data is challenging. This workflow solves these problems by automating the entire analysis pipeline. It's designed for performance marketing teams who need to: - Make faster, data-driven decisions on which creatives to scale. - Get objective, AI-powered second opinions on ad performance. - Systematically evaluate creatives against consistent, pre-defined benchmarks. - Maintain a central log in Google Sheets with both raw metrics and qualitative AI analysis. - Save hours spent on manual data crunching and report generation.

How it Works The workflow is structured into three logical stages:

1. Configuration & Data Ingestion: - A central ⚙️ Set parameters node holds all key variables: the data source (Meta or Sheets), campaignid, and, most importantly, your historical performance benchmarks as a simple text block. - An IF node directs the workflow to fetch data either directly from a Meta Ads campaign or from a specified Google Sheet (ideal for analyzing a curated list of ads).

2. Data Processing & AI Analysis (Parallel Execution): After fetching raw performance data (spend, impressions, clicks, actions), the workflow splits into three parallel branches for maximum resilience: - Branch 1 (Data Logging): Immediately writes or updates a row in Google Sheets with the raw metrics for the creative. This ensures no data is lost, even if the AI analysis fails. - Branch 2 (OpenAI Analysis): Prepares a CSV string of the creative's data, sends it along with the benchmarks to an OpenAI model (e.g., GPT-4), and instructs it to return a structured JSON analysis. - Branch 3 (Gemini Analysis): Performs the exact same process but using Google's Gemini model via a LangChain agent, providing a second, independent evaluation.

3. Results Aggregation: - The results from both AI models are received as structured JSON. - Two final Google Sheets nodes take these results and update the original row (matching by AdID), adding the evaluation, significance, summary, and recommendation into separate columns. The final sheet contains a complete picture: raw data side-by-side with analyses from two different AIs.

---

Setup Instructions