See llms.txt for all machine-readable content.

Back to Templates

Remix winning Meta ads into weekly image and video creatives with Groq and Kie.ai

Quick overview

This weekly workflow reads active products from Google Sheets, uses Apify to scrape the Meta Ad Library for long-running ads, and uses Groq plus Kie.ai to generate new image and video ad variations based on those winners. It logs results back to Google Sheets and emails a Gmail digest.

How it works

  1. Runs every Monday at 9:00 AM on a schedule trigger.
  2. Loads your Products and Remixes tabs from Google Sheets to find active products and avoid reusing ads that were already remixed successfully.
  3. Uses Apify to scrape up to the configured number of active ads from the Meta Ad Library for each product’s keyword search, then scores and shortlists proven ads based on days running and number of versions.
  4. Uses Groq to pick the best ads to remix per product and generate original headline, primary text, and CTA for your product.
  5. Sends remix jobs to Kie.ai to generate new creatives (Nano Banana for images and Seedance 2.5 for videos), optionally splitting long reference videos into parts with Rendi and polling Kie.ai until jobs finish.
  6. If a video was generated in multiple parts, joins the parts into a single MP4 with Rendi and marks any failed or timed-out remixes with a reason.
  7. Appends one row per remix to the Remixes tab, updates each product’s last_run and last_result in the Products tab, and sends a formatted weekly digest email via Gmail with links to the outputs and source ads.

Setup

  1. Create and populate a Google Sheets spreadsheet with Products and Remixes tabs (including fields like active, product, photo_url, niche_keywords, country, formats, and the remix log columns used by the workflow).
  2. Connect Google Sheets OAuth2 credentials and select your spreadsheet in all Google Sheets nodes.
  3. Add credentials for Apify (HTTP Bearer token), Groq, Kie.ai (HTTP Bearer token), Rendi (HTTP Header auth with X-API-KEY), and Gmail OAuth2.
  4. In the Configuration step, replace the placeholders for agency_name, owner_email, and optionally sheet_url, and adjust scan limits, minimum days running, and image/video model and format settings as needed.
  5. Run the workflow manually once to verify scraping, generation, logging, and email delivery before activating the schedule.