Hereβs how this Agent works:
1οΈβ£ Trigger & Data Preparation
2οΈβ£ AI Analysis & Image Generation
3οΈβ£ Save & Update
π οΈ Step-by-Step Breakdown (Node View)
STEP 1 β Trigger & Data Preparation
Node 1: Schedule Trigger β Runs the workflow daily at a defined interval.
Node 2: Google Sheets (Get the Raw) β Fetches the product and influencer image URLs scheduled for today.
Node 3: Download Product Image β Downloads the product image from Google Drive.
Node 4: Convert Binary to Text β Converts the downloaded product image to a format suitable for AI input.
Node 5: Download Influencer Image β Downloads the influencer/model image from Google Drive.
Node 6: Influencer Image Convert to Text β Converts the influencer image for AI input.
STEP 2 β AI Analysis & Image Generation
Node 7: Analyze Image β Uses OpenAI GPT-4o-mini to create a detailed ad-focused description of the product image, including lighting, background, styling, and mood.
Node 8: Image Generation β Uses OpenRouter Gemini API to combine the product and influencer images into a polished ad-ready visual.
Node 9: Base64 Cleanup β Cleans up the AI output by removing the data:image/...;base64, prefix.
Node 10: Convert to File β Converts the cleaned base64 output into a usable image file.
STEP 3 β Save & Update
Node 11: Upload Image β Saves the generated ad image to the specified Google Drive folder.
Node 12: Update Spreadsheet with Results β Updates the Google Sheets row with the new ad image link and marks it as βPublishβ.
π‘ Why is this powerful?
Fully automates the creation of ad-ready product images.
Integrates AI image analysis and generation with Google Workspace tools.
Saves hours of manual image editing and design work.
Ensures a consistent marketing schedule with automatic Google Sheets updates.
Flexible for any product and influencer combination without manual intervention.
Need help with your n8n? Get in Touch!
Your inquiry could not be saved. Please try again.