Analyze competitor Facebook ads with AI (GPT-4 & Gemini) & email reports
Needs changesWhat 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.
- Scrape ads (HTTP Request): calls an HTTP API
- Split Image Ads & Video Ads (Switch): routes items into branches
- Image duplicate key (Edit Fields (Set)): sets or maps fields
- Image Duplicate Key (Edit Fields (Set)): sets or maps fields
- Image Remove Duplicates (Remove Duplicates): removes duplicate items
- Video Remove Duplicates (Remove Duplicates): removes duplicate items
- Image Limit (Limit): keeps the first few items
- Video Limit (Limit): keeps the first few items
- Analyze Image (OpenAI): uses OpenAI
- Download video (HTTP Request): calls an HTTP API
…plus 10 more steps. See the full node list below.
Services it uses
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.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
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…