🎬 Generate competitor-style image ads from your product photos with Gemini

⚑ 273 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” For competitive intelligence, ScraperNode can automate the data collection β€” Yelp reviews, Glassdoor company data, and Crunchbase profiles all return structured JSON you can feed straight into this workflow.

View All Scrapers

Description

Image Ad Cloner AI Agent

This n8n workflow automates β€œcloning” a competitor ad style and re-generating it using your product image. A user uploads your product image and provides a competitor ad URL via a form trigger; the workflow downloads both images, converts them to inline/base64 parts, builds a detailed generation prompt, sends the request to a generative-vision model (Gemini-style endpoints), waits for the result, converts the output back to a file and returns it. Use-cases: rapid ad iteration, creative A/B variants, and scaled ad re-skins.


How it works (step-by-step)

  1. form_trigger β€” user submits: competitor image URL, their product file, and optional changes.
  2. convert_product_image_to_base64 β€” converts uploaded product file to base64 inline data.
  3. download_image β€” fetches the competitor ad image from the provided URL.
  4. convert_ad_image_to_base64 β€” converts downloaded competitor image to base64 inline data.
  5. build_prompt β€” assembles a careful prompt (handles partial text, labels, placements, CTA swaps, additional changes).
  6. generate_ad_image_prompt β†’ generate_ad_image β€” two HTTP Request nodes call generative endpoints (first to prepare prompt/content and then flash-image generation). These include inline image data and model-specific parameters.
  7. Wait β€” allows async generation to complete (workflow uses a wait/webhook pattern).
  8. set_result β†’ get_image β€” extract image result, convert binary to file for downstream use (download or return to the requester).
  9. Sticky Note β€” visual diagram / docs inside workflow.

Quick Setup Guide

πŸ‘‰ Demo & Setup Video πŸ‘‰ Course


Nodes of interest


What you’ll need (credentials & permissions)


Recommended settings & best practices


Customization ideas


Tags

image-ad-cloner, n8n, gemini, generative-ai, image-editing, ad-cloning, automation, form-trigger, viral

πŸ”— Nodes Used

HTTP Request, n8n Form Trigger, Convert to File, Extract from File

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup