Scrape & analyse Meta Ad Library image ads with Apify and OpenAI
Needs changesWhat this workflow does
This AI workflow has 16 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model, Google Drive and Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Settings (Edit Fields (Set)): sets or maps fields
- Clean Prompt (Code): runs custom JavaScript code
- Scrape Meta Ad Library with Apify (HTTP Request): calls an HTTP API
- Calculate Runtime in Days (Edit Fields (Set)): sets or maps fields
- Sort: sorts the items
- Filter: keeps only the items that match a condition
- Limit: keeps the first few items
- Pass relevant Fields (Edit Fields (Set)): sets or maps fields
- Download Image (HTTP Request): calls an HTTP API
- Save Image to Google Drive (Google Drive): uses Google Drive
…plus 3 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 Analyze Image Contents (v1.8): 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) Analyze Image Contents (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Sort
n8n-nodes-base.sort - Filter
n8n-nodes-base.filter - Limit
n8n-nodes-base.limit - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets
From the author
Meta Image Ads Analyzer This n8n template builds an automated system to scrape, analyze, and extract insights from Meta advertising content. The workflow uses AI to perform deep analysis of image ads and organize the results in a structured format. How it…