Use Case

AI Marketing Intelligence Agent for Competitor Research, Creative Scoring & Ad Copy Generation

Automated competitor ad research across Meta and TikTok using AI to analyze creatives, rank top-performing ads, and generate optimized marketing copy in minutes.

Retool logo next to a badge labeled Agency Partner with a blue checkmark.
Case Study
Ad Intelligence
Industry
AI & Automation
Platform
Retool
Type
AI Agent

Business Outcomes

Automated cross-platform competitor ad research

Eliminated manual review of ad creative quality

Reduced turnaround time on new ad copy drafts

Enabled consistent, structured scoring of competitor ads

Accelerated identification of top-performing ad examples

Client Intro

Problem Statement

๐—™๐—ฟ๐—ฎ๐—ด๐—บ๐—ฒ๐—ป๐˜๐—ฒ๐—ฑ ๐—ฎ๐—ฑ ๐—น๐—ถ๐—ฏ๐—ฟ๐—ฎ๐—ฟ๐—ถ๐—ฒ๐˜€: Competitor ad data lived across separate platforms with different search interfaces and formats, requiring manual cross-referencing.

๐— ๐—ฎ๐—ป๐˜‚๐—ฎ๐—น ๐—ฐ๐—ฟ๐—ฒ๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฟ๐—ฒ๐˜ƒ๐—ถ๐—ฒ๐˜„: Judging whether an ad's visual creative was strong or weak required a human to open and evaluate each image individually.

๐—œ๐—ป๐—ฐ๐—ผ๐—ป๐˜€๐—ถ๐˜€๐˜๐—ฒ๐—ป๐˜ ๐˜€๐—ฐ๐—ผ๐—ฟ๐—ถ๐—ป๐—ด: Without a structured scoring method, ranking ads by quality or relevance was subjective and varied between reviewers.

๐—ฆ๐—น๐—ผ๐˜„ ๐—ฐ๐—ผ๐—ฝ๐˜†๐˜„๐—ฟ๐—ถ๐˜๐—ถ๐—ป๐—ด ๐˜๐˜‚๐—ฟ๐—ป๐—ฎ๐—ฟ๐—ผ๐˜‚๐—ป๐—ฑ: Drafting new ad titles and descriptions inspired by top-performing competitor creative was a manual writing task for every campaign.

๐—ก๐—ผ ๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ๐—ฑ ๐—ผ๐˜‚๐˜๐—ฝ๐˜‚๐˜: Findings had no consistent format for reporting or reuse, making it hard to share results or revisit past research.

Solution Design

The agent was built as a multi-stage pipeline combining fixed scraping and normalization logic with two distinct AI judgment points: visual creative analysis and ad copy generation.

๐—ง๐—ฟ๐—ถ๐—ด๐—ด๐—ฒ๐—ฟ ๐—ฎ๐—ป๐—ฑ ๐—ฐ๐—ผ๐—ป๐—ณ๐—ถ๐—ด๐˜‚๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป (๐—ณ๐—ถ๐˜…๐—ฒ๐—ฑ ๐—น๐—ผ๐—ด๐—ถ๐—ฐ): An Ad Intelligence Form collects search parameters, which a Build Search Config step turns into a structured query, followed by country code normalization.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐—ฟ๐—ผ๐˜‚๐˜๐—ถ๐—ป๐—ด: An Ad Source Router splits the workflow across ad platform sources based on rules, sending requests down parallel scraping paths.

๐——๐—ฎ๐˜๐—ฎ ๐—ฐ๐—ผ๐—น๐—น๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป (๐—ณ๐—ถ๐˜…๐—ฒ๐—ฑ ๐—น๐—ผ๐—ด๐—ถ๐—ฐ): Separate scraping steps pull ad data from a Meta Ad Library and a TikTok Ads Library, each returning a set of items that are normalized into a consistent structure.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—บ๐—ฒ๐—ฟ๐—ด๐—ถ๐—ป๐—ด: A Combine All Ads step appends both normalized datasets into a single unified list for downstream processing.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐˜ƒ๐—ฎ๐—น๐—ถ๐—ฑ๐—ถ๐˜๐˜† ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ: A Has Valid Creative step filters out ads without usable creative before attempting any download.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ฟ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น: A Download Ad Creative Image step fetches the actual image file, followed by a check confirming the download succeeded.

๐—”๐—œ ๐˜ƒ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜€๐—ถ๐˜€ (๐—ด๐—ฒ๐—ป๐˜‚๐—ถ๐—ป๐—ฒ ๐—ท๐˜‚๐—ฑ๐—ด๐—บ๐—ฒ๐—ป๐˜ ๐—ฐ๐—ฎ๐—น๐—น): An "Analyze Ad Creative" step using OpenAI Vision examines each downloaded ad image and produces a structured creative analysis, a task requiring visual interpretation rather than a fixed rule.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐˜€๐—ฐ๐—ผ๐—ฟ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ฟ๐—ฎ๐—ป๐—ธ๐—ถ๐—ป๐—ด: The parsed analysis feeds a Score Ads step and a Sort by Score step, ranking every ad based on the AI's analysis output.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐˜๐—ผ๐—ฝ-๐—ฝ๐—ถ๐—ฐ๐—ธ ๐—ณ๐—น๐—ฎ๐—ด๐—ด๐—ถ๐—ป๐—ด: A Flag Top Picks step and an "Is Top Pick?" condition determine which ads qualify for copy generation based on their rank.

๐—”๐—œ ๐—ฐ๐—ผ๐—ฝ๐˜† ๐—ด๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป (๐—ด๐—ฒ๐—ป๐˜‚๐—ถ๐—ป๐—ฒ ๐—ท๐˜‚๐—ฑ๐—ด๐—บ๐—ฒ๐—ป๐˜ ๐—ฐ๐—ฎ๐—น๐—น): For flagged top ads, a "Generate Title & Description" AI node, equipped with tool access, writes original ad titles and descriptions informed by the creative analysis, a genuine generative and judgment-based task.

๐—™๐—ถ๐˜…๐—ฒ๐—ฑ ๐—ณ๐—ฎ๐—น๐—น๐—ฏ๐—ฎ๐—ฐ๐—ธ ๐—ฎ๐—ป๐—ฑ ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐˜๐—ถ๐—ป๐—ด: A Fill Empty Generated Fields step ensures no ad is left without copy, and the results are merged and rendered into an HTML report via a template generation step.

Technology Stack

Orchestration: n8n workflow automation

Data collection: Apify actors for scraping Meta Ad Library and TikTok Ads Library datasets

AI/LLM: OpenAI Vision for ad creative image analysis

AI/LLM: AI copywriting model for generating ad titles and descriptions

Data processing: JSON normalization and merge steps for combining multi-platform ad data

Output: HTML template generation for the final report

E-commerce & Retail
Streamline logistics operations with a centralized platform for shipment tracking and documentation, ensuring accuracy, transparency, and efficiency at every step of delivery each time.
Read moreIkonik Icon
AI & Automation
Automated invoicing, payment reminders, collections, CRM updates, and SMS notifications with an AI-powered QuickBooks accounts receivable workflow.
Read moreIkonik Icon
Business Intelligence
Replaced manual weekly reports with live dashboard giving leadership instant visibility into sales, operations, and KPIs. Increased decision-making speed 40%.
Read moreIkonik Icon
We are here to help you

Are you ready to optimize efficiency and drive growth?
Get in touch today.

Book My Operational Audit
graph of growthgross volume
retool-table
Contact
LinkedInYouTubeconnect@retoolpro.com
ยฉ 2026 RetoolPro Pvt Ltd.
Privacy Policy