Block 1 - form_trigger
- Type / Role
- n8n-nodes-base.formTrigger - formTrigger
- Config choices
- Version 2.2
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 UR...
n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.extractfromfile, n8n-nodes-base.converttofile, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.wait
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Pratyush Kumar Jha.
Original n8n.io sourceThis 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.
form_trigger — user submits: competitor image URL, their product file, and optional changes. convert_product_image_to_base64 — converts uploaded product file to base64 inline data. download_image — fetches the competitor ad image from the provided URL. convert_ad_image_to_base64 — converts downloaded competitor image to base64 inline data. build_prompt — assembles a careful prompt (handles partial text, labels, placements, CTA swaps, additional changes). 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. Wait — allows async generation to complete (workflow uses a wait/webhook pattern). set_result → get_image — extract image result, convert binary to file for downstream use (download or return to the requester). Sticky Note — visual diagram / docs inside workflow.form_trigger (n8n-nodes-base.formTrigger) — entry point; validates inputs. convert_product_image_to_base64 & convert_ad_image_to_base64 (extractFromFile) — convert uploaded/downloaded binaries to inline/base64 data for the model. download_image (httpRequest) — fetches competitor image URL. Add robust URL validation. build_prompt (set) — builds the natural-language prompt that instructs the model how to replace branding, packaging, and CTAs. generate_ad_image_prompt & generate_ad_image (httpRequest) — POST to generative APIs (examples use Gemini endpoints). Have retry/backoff settings. Wait — used to allow model generation to complete before extracting results. set_result / get_image / convertToFile — assemble the final binary file to deliver to the user.httpHeaderAuth). httpBearerAuth). retryOnFail and waitBetweenTries for httpRequest nodes (example uses retryOnFail: true and waitBetweenTries: 5000). Limit retries to avoid abuse. mime_type in inline data (png/jpeg) to avoid corrupt outputs. build_prompt to detect and list text to replace automatically. image-ad-cloner, n8n, gemini, generative-ai, image-editing, ad-cloning, automation, form-trigger, viral
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Generate competitor-style image ads from your product photos with Gemini |
|---|---|
| Complexity | intermediate |
| Nodes | 14 |
| Categories | Content Creation, Multimodal AI |
| Author | Pratyush Kumar Jha |
| Published | 04 Feb 2026 |
Use the JSON export at /data/workflows/13209/13209.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 UR...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.