Templates / AI Facebook ad spy tool with Apify, OpenAI, Gemini & Google Sheets

AI Facebook ad spy tool with Apify, OpenAI, Gemini & Google Sheets

Ready for 3.0

by Nick Saraev ✓ · 5,917 views · created 2025-06-27 · Market Research, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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”.

  1. Run Ad Library Scraper (HTTP Request): calls api.apify.com (POST)
  2. Filter: keeps only the items that match a condition
  3. Switch: routes items into 2 branches
  4. Loop Over Video Ads (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Loop Over Image Ads (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Loop Over Text Ads (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Download Video (HTTP Request): calls an HTTP API
  8. Analyze Image (OpenAI): analyze (image)
  9. Output Text Summary (OpenAI): uses OpenAI
  10. Upload Video to Drive (Google Drive): uses Google Drive

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

Services it uses

Google DriveOpenAIGoogle Sheets

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)

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…

Excerpt from Nick Saraev'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.