Spot winning competitor ads in the Meta Ad Library every day
Every day, the agent pulls competitor ads from the Meta Ad Library via Apify, scores them (run length, variations, placements, offer keywords) then has OpenAI analyse them, logs results to Google Sheets, sends hot ads to Slack for review, emails a warm digest via Gmail and produces a weekly report.
- Difficulty
- Intermediate
- Setup time
- ≈ 45 min (estimate, not counting choosing search terms and country)
- Estimated cost
- n8n: €0 self-hosted or from €20/month (Starter, billed annually); Apify: billed per use per the meta-ad-library Actor page; OpenAI: billed per use (gpt-4o-mini, batches of 5); Google Sheets, Slack and Gmail: free
- Category
- Marketing
⏱ Trigger
Every day at 7 am + every Monday at 8 am (cron) or on demand
✋ Human approval
Hot ads wait for your Slack approve/dismiss before the decision is written. The agent never publishes an ad and never clicks in Ads Manager: watch and log only. Digests and the weekly report go out without review.
→ Output
Google Sheets log + Slack (hot for review) + Gmail digest (warm) + weekly Gmail report
Autonomy level 3 — Autonomous: Runs end to end on its own; only low-risk actions (read, notify, archive).
01Connected tools
- n8n – Schedule Trigger ↗
- n8n – HTTP Request ↗
- Apify – Meta Ad Library ↗
- n8n – Google Sheets ↗
- n8n – Basic LLM Chain ↗
- n8n – OpenAI Chat Model ↗
- n8n – Slack ↗
- n8n – Gmail ↗
02What the agent does on its own
- step 01
Every day at 7 am (or manually), reads Config: search terms, country, Actor filters, hot/warm thresholds, offer keywords, minimum days running, AI criteria, Sheet, Slack and email.
- step 02
Starts the Apify Meta Ad Library Actor, polls until success, then downloads the dataset items.
- step 03
Validates required fields and deduplicates against prior runs (30-day memory); stops quietly if no new ads are found.
- step 04
Scores each ad with rule-based signals (run length, variations, placements, copy keywords…) then sends each record to OpenAI (gpt-4o-mini) for fitScore, verdict, summary, outreach angle and red flags.
- step 05
Blends the rule score and AI fit into a final tier, then upserts ads into Google Sheets keyed by ad id.
- step 06
Sends hot ads as one Slack approval message (approve/dismiss, 24 h) and writes the decision back to the Sheet; sends warm ads as an HTML Gmail digest; cold ads stay in the Sheet only.
- step 07
Every Monday at 8 am, reads the Sheet, compiles a 7-day tier and review summary with top ads, and emails it via Gmail; any failure alerts Slack.
03Agent instructions
> You are a paid-social creative strategist. You read a competitor's Meta ad and judge what it reveals: the offer, the angle, whether the run time and variations suggest it is a proven winner, and what a competitor could learn from it. Ideal match criteria: {CRITERIA}. Rule-based pre-score: {SCORE} ({REASONS}). Record (JSON): {RECORD}. Score fit from 0 to 100. Use only facts in the record; if something is unknown, say so instead of guessing. Reply in JSON: {"fitScore", "verdict", "summary", "outreachAngle", "redFlags"}.04Limits and legal points
Sample Config searches "running shoes" in the US — adapt searchTerms, country and criteria. The Meta Ad Library is public; respect its terms and Apify's. Data is sent to OpenAI (GDPR). gpt-4o-mini will be removed on 14 January 2027. minDaysRunning defaults to 14: very new ads may stay cold. Template messages are in English. With no new ads, there is no alert.
05In short
- When does the agent run, and what does it produce?
- Trigger: Every day at 7 am + every Monday at 8 am (cron) or on demand. Output: Google Sheets log + Slack (hot for review) + Gmail digest (warm) + weekly Gmail report.
- What stays under your control?
- Hot ads wait for your Slack approve/dismiss before the decision is written. The agent never publishes an ad and never clicks in Ads Manager: watch and log only. Digests and the weekly report go out without review. Autonomy level 3 — Autonomous: Runs end to end on its own; only low-risk actions (read, notify, archive).
- How much does it cost and how long does setup take?
- Estimated cost: n8n: €0 self-hosted or from €20/month (Starter, billed annually); Apify: billed per use per the meta-ad-library Actor page; OpenAI: billed per use (gpt-4o-mini, batches of 5); Google Sheets, Slack and Gmail: free. Setup time: ≈ 45 min (estimate, not counting choosing search terms and country), difficulty "intermediate". Tools: n8n – Schedule Trigger, n8n – HTTP Request, Apify – Meta Ad Library, n8n – Google Sheets, n8n – Basic LLM Chain, n8n – OpenAI Chat Model, n8n – Slack, n8n – Gmail.
Answers taken from this recipe · updated 5 November 2026
06Source
07Related recipes
Same category or same connected tools.