Templates / Analyze competitor Facebook ads with AI (GPT-4 & Gemini) & email reports

Analyze competitor Facebook ads with AI (GPT-4 & Gemini) & email reports

Needs changes

by SamirLiu ✓ · 1,113 views · created 2025-05-03 · Market Research, AI Summarization

Needs 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 this workflow does

This AI workflow has 24 nodes and runs when someone submits an n8n form. Along the way it connects OpenAI Chat Model, Gmail and OpenAI.

How it runs

Trigger: When someone submits an n8n form.

  1. Scrape ads (HTTP Request): calls an HTTP API
  2. Split Image Ads & Video Ads (Switch): routes items into branches
  3. Image duplicate key (Edit Fields (Set)): sets or maps fields
  4. Image Duplicate Key (Edit Fields (Set)): sets or maps fields
  5. Image Remove Duplicates (Remove Duplicates): removes duplicate items
  6. Video Remove Duplicates (Remove Duplicates): removes duplicate items
  7. Image Limit (Limit): keeps the first few items
  8. Video Limit (Limit): keeps the first few items
  9. Analyze Image (OpenAI): uses OpenAI
  10. Download video (HTTP Request): calls an HTTP API

…plus 10 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGmailOpenAI

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace 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)

From the author

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…

Excerpt from SamirLiu's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.