Analyze Competitor Facebook Ads with AI (GPT-4 & Gemini) & Email Reports

Go to Workflow
758 views
Built by SamirLiu SamirLiu
Created on May 03, 2025

Description

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:
Add api key to environment variable
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.

This workflow was created by SamirLiu and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing
Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured