AI Facebook ad spy tool with Apify, OpenAI, Gemini & Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive, OpenAI and Google Sheets. It also calls api.apify.com and generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Run Ad Library Scraper (HTTP Request): calls api.apify.com (POST)
- Filter: keeps only the items that match a condition
- Switch: routes items into 2 branches
- Loop Over Video Ads (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop Over Image Ads (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop Over Text Ads (Loop Over Items (Split in Batches)): loops over the items in batches
- Download Video (HTTP Request): calls an HTTP API
- Analyze Image (OpenAI): analyze (image)
- Output Text Summary (OpenAI): uses OpenAI
- Upload Video to Drive (Google Drive): uses Google Drive
…plus 13 more steps. See the full node list below.
Services it uses
HTTP calls to: api.apify.com, generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Switch
n8n-nodes-base.switch - Filter
n8n-nodes-base.filter - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets
From the author
AI Facebook Ad Spy Tool with Apify, OpenAI, Gemini & Google Sheets Categories: Competitive Intelligence, Marketing Automation, AI Analysis This workflow creates a comprehensive Facebook ad spy tool that scrapes competitor ads from Facebook's ad library and…