Analyze competitor Facebook ads with AI (GPT-4 & Gemini) & email reports
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (15)
- HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Aggregate
n8n-nodes-base.aggregate - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - OpenAI
@n8n/n8n-nodes-langchain.openAi - Remove Duplicates
n8n-nodes-base.removeDuplicates - Limit
n8n-nodes-base.limit - n8n Form Trigger
n8n-nodes-base.formTrigger
What it does
Facebook Ads Competitor Creative Analysis & Automated Email Report 📝 What this workflow does This workflow automates the process of competitor creative analysis for Facebook Pages. When a user submits their email and a target Facebook Page URL via a web form, the workflow: - Scrapes the latest image and video Facebook ads from the submitted Page using Apify. - Deduplicates and selects the top 5 image and top 5 video ads for further analysis. - Applies advanced AI analysis: - Uses OpenAI Vision (GPT-4) to analyze image ads. - Uses Google Gemini to analyze video ads. - Aggregates all ad insights and generates a structured, visually engaging creative analytics report. - Sends the report directly to the user’s email with ad previews and detailed creative evaluation. 👥 Who is this for? - Marketers and agencies conducting competitor research on Facebook. - Brand managers who want quick, actionable insights into rival ad creative. - Growth hackers and performance advertisers analyzing top-performing creative trends. - Anyone in need of an automated, AI-based Facebook ad evaluation and reporting tool using n8n. 🎯 What problem does this workflow solve? - Manual ad analysis is time-consuming: Scraping, filtering, and reviewing Facebook competitor ads by hand is labor-intensive. - Creative insight requires expertise: Understanding the message, visuals, and targeting of competitor ads needs marketing/creative skill. - Lack of automated reporting: Easily and visually summarize findings for yourself or stakeholders—without manual collation or formatting. This workflow provides a turnkey, end-to-end solution for competitor creative analysis, combining real ad data with unbiased, AI-driven creative insights in a shareable email format. ⚙️ Setup instructions (About 10-15 minutes) Before using this AI marketing automation tool, you'll need: 1. Add api key to environment variable 2. Add required credentials 🔧 How to Customize This Workflow - Adapt Image/Video Analysis Goals: Modify the prompts or parameters sent to OpenAI Vision and Gemini to suit your specific analysis objectives—e.g., evaluate branding consistency, detect call-to-action effectiveness, or extract emotional tone. - Revise Email Report Design: Customize the formatting, insights, and visuals in the delivered report to match your organization’s standards or stakeholder preferences. - Expand Input Fields: Add more fields to the user-facing form, such as a competitor list, campaign dates, or target audience details, for more granular analysis.