Generate competitor-style image ads from your product photos with Gemini
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when someone submits an n8n form (“Facebook Ad Thief Form”). It uses only n8n's built-in nodes. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Facebook Ad Thief Form”).
- convert_product_image_to_base (Extract from File): extracts data from a file (binary to propery)
- download_image (HTTP Request): calls an HTTP API
- convert_ad_image_to_base (Extract from File): extracts data from a file (binary to propery)
- build_prompt (Edit Fields (Set)): sets 1 field: prompt
- generate_ad_image_prompt (HTTP Request): calls generativelanguage.googleapis.com (POST)
- generate_ad_image (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Wait: pauses before continuing
- set_result (Edit Fields (Set)): sets or maps fields
- get_image (Convert to File): converts data to a file (to binary)
HTTP calls to: generativelanguage.googleapis.com
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.
Nodes used (6)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Convert to File
n8n-nodes-base.convertToFile - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait
From the author
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,…