Automate Product Photography with n8n & OpenAI

Struggling with creating professional product photos? This unique n8n workflow uses Google Sheets, OpenAI, and Google Drive to analyze product images and generate realistic photography prompts, saving hours of manual editing and improving your ecommerce visuals.
lmChatOpenAi
googleSheets
httpRequest
+7
Workflow Identifier: 2130
NODES in Use: lmChatOpenAi, merge, googleSheets, httpRequest, openAi, chainLlm, convertToFile, googleDrive, manualTrigger, stickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow reads product image URLs from a Google Sheets file. It downloads each image, uses OpenAI to analyze and describe the image briefly, then creates detailed prompts to generate realistic product photos. The images get edited by OpenAI’s API to get a professional look. Final images upload to Google Drive, and new URLs update back in the sheet. This saves time and keeps product photos consistent and high quality.


Who should use this workflow

This workflow is for ecommerce store owners or anyone handling many product photos. It helps people who want to avoid manual editing and inconsistent styles. Users who have product images online and want to create professional photos fast will find this useful.

Basic knowledge of n8n and accounts for Google Sheets, Google Drive, and OpenAI API is needed.


Tools and services used

  • Google Sheets: Stores the list of product image URLs.
  • Google Drive: Uploads the edited images.
  • OpenAI API: Analyzes images and edits them based on prompts.
  • n8n: Automates the whole process in one workflow.

Inputs, processing, and outputs

Inputs

  • Spreadsheet with product image URLs.
  • OpenAI API key and Google credentials.

Processing steps

  • Read URLs from Google Sheets.
  • Download images from URLs.
  • Use OpenAI image analysis to describe images shortly.
  • Create detailed photography prompts with OpenAI’s GPT-4.
  • Send images and prompts to OpenAI’s image editing endpoint.
  • Convert OpenAI’s base64 response to files.
  • Upload final images to Google Drive.
  • Update Google Sheets with new image URLs and prompts.

Outputs

  • Edited product photos in Google Drive.
  • Updated Google Sheets rows with new image links and prompt info.

Beginner step-by-step: How to use this workflow in n8n

Importing the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor where the workflow will run.
  3. Use the “Import from File” option to load the workflow JSON file.

Configuring credentials and settings

  1. Add your Google Sheets and Google Drive OAuth credentials in the respective nodes.
  2. Insert your valid OpenAI API key in the OpenAI nodes.
  3. Update the Google Sheets node to point to your spreadsheet by setting the correct Document ID and Sheet Name.
  4. Set the Google Drive upload node’s folder ID to your target folder.

Running and activating

  1. Test the workflow using the Manual Trigger node by clicking ‘Execute Workflow’.
  2. Check outputs for errors and verify new images appear in Google Drive, and URLs update in Sheets.
  3. Activate the workflow for automatic or scheduled runs within n8n.

If you want more control or security, consider self-host n8n on your server.


Edge cases and failures

Errors reading Google Sheets often come from missing or wrong OAuth permissions.

OpenAI image editing can fail if the HTTP Request node does not send proper multipart/form-data or misses the image binary.

Make sure to use correct document IDs, API keys, and binary references to avoid these problems.


Customization ideas

  • Change the OpenAI image model in the editing HTTP Request node for different photo styles.
  • Edit the photography prompt in the Chain LLM node to adjust lighting, human model pose, or effects.
  • Add an image processing node to add watermarks after editing and before upload.

Summary of workflow results

✓ Saves hours of manual photo editing.
✓ Ensures all product photos have a consistent, professional look.
✓ Automatically updates product photo links in Google Sheets.
✓ Reduces errors in photo management and speeds product launches.

Frequently Asked Questions

Download the workflow file using the Download button, then import it into n8n with the Import from File option.
Google Sheets and Google Drive OAuth credentials are required, along with a valid OpenAI API key.
Check the HTTP Request node to ensure multipart/form-data is used and the correct image binary is attached.
Yes, but it needs modifications to replace the Google Drive node with another cloud storage service like Dropbox.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free