Automated Product Ad Image Creation with OpenAI, Gemini & Google Workspace
How it works
This workflow automates the generation of ad-ready product images by combining product and influencer photos with AI styling. It runs on a scheduled trigger, fetches data from Google Sheets, and retrieves product and influencer images from Google Drive. The images are processed with OpenAI and OpenRouter to generate enhanced visuals, which are then saved back to Google Drive. Finally, the result is logged into Google Sheets with a ready-to-publish status.
Step-by-step
-
Trigger & Data preparation
Schedule Trigger** – Runs workflow automatically on a set schedule.
Google Sheets (Get the Raw)** – Retrieves today’s product and model URLs.
Google Drive (Download Product Image)** – Downloads the product image.
Google Drive (Download Influencer Image)** – Downloads the influencer image.
Extract from File (Binary → Base64)** – Converts both product and model images for AI processing. -
AI analysis & image generation
OpenAI (Analyze Image)** – Creates an ad-focused visual description (lighting, mood, styling).
HTTP Request (OpenRouter Gemini)** – Generates an AI-enhanced image combining product + influencer.
Code Node (Cleanup)** – Cleans base64 output to remove extra prefixes.
Convert to File** – Transforms AI output into a proper image file. -
Save & update
Google Drive (Upload Image)** – Uploads generated ad image to target folder.
Google Sheets (Append/Update Row)** – Stores the Drive link and updates publish status.
Why use this?
Automates the entire ad image creation process without manual design work.
Ensures product visuals are consistent, styled, and ad-ready.
Saves final creatives in Google Drive for easy access and sharing.
Keeps campaign tracking organized by updating Google Sheets automatically.
Scales daily ad production efficiently for multiple products or campaigns.
Related Templates
Send structured logs to BetterStack from any workflow using HTTP Request
Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for...
Provide latest euro exchange rates from European Central Bank via Webhook
What is this workflow doing? This simple workflow is pulling the latest Euro foreign exchange reference rates from the E...
Convert Tour PDFs to Vector Database using Google Drive, LangChain & OpenAI
🧩 Workflow: Process Tour PDF from Google Drive to Pinecone Vector DB with OpenAI Embeddings Overview This workflow au...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments