Remix winning Meta ads into weekly image and video creatives with Groq and Kie.ai
Ready for 3.0What this workflow does
This AI workflow has 42 nodes and runs on a schedule (cron 0 9 * * 1). Along the way it connects Google Sheets, Groq Chat Model and Gmail. It also calls api.apify.com, api.rendi.dev and api.kie.ai over HTTP.
How it runs
Trigger: On a schedule (cron 0 9 * * 1).
- Set Configuration Parameters (Edit Fields (Set)): sets 16 fields: agency_name, owner_email, sheet_url…
- Read Past Remixes from Sheets (Google Sheets): uses Google Sheets
- Read Products from Sheets (Google Sheets): uses Google Sheets
- Prepare Meta Library Searches (Code): runs custom JavaScript code
- Execute Meta Ad Library Scrape (HTTP Request): calls api.apify.com (POST)
- Score and Shortlist Ads (Code): runs custom JavaScript code
- Select Winners and Craft Copy (Basic LLM Chain): sends a prompt to an LLM, with model: Groq Model Execution; output parser: Parse Winners Format
- Develop Remix Plans (Code): runs custom JavaScript code
- Check for Long Videos (If): checks a condition and branches into true / false
- Generate Split Commands (Code): runs custom JavaScript code
…plus 29 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Apify + Google Sheets templates (402) · Other Groq + Google Sheets templates (156)
HTTP calls to: api.apify.com, api.rendi.dev, api.kie.ai
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Gmail
n8n-nodes-base.gmail
From the author
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…