See llms.txt for all machine-readable content.

Back to Templates

Create UGC-style product videos from Google Sheets with NanoBanana Pro and Veo

Quick overview

This workflow runs on an hourly schedule to read UGC tasks from Google Sheets, generate a selfie-style edited image using Google Gemini image generation and OpenAI image analysis, then create an 8-second vertical video via Atlas Cloud (Google Veo 3.1) and write results back to the sheet.

How it works

  1. Runs hourly and pulls the first Google Sheets row in the Task sheet with Status set to “Ready”.
  2. Uses an LLM agent (via OpenAI or Groq) to generate a concise UGC selfie image prompt from the product name and scene.
  3. Downloads the product, character, and background images from their URLs, converts them to base64, and sends them with the prompt to the Google Gemini image generation API to create an edited composite image.
  4. If image generation succeeds, OpenAI analyzes the generated image and the workflow updates the Google Sheets row with Status “Edited”, the image prompt, analysis text, and the image URL (otherwise it marks the row as Error).
  5. Runs hourly and pulls the first Google Sheets row with Status set to “Edited”.
  6. Uses an LLM agent to create a Veo-style video prompt (including short spoken dialogue) from the product details, target market, scene, and the stored image analysis.
  7. Sends the edited image and prompt to Atlas Cloud’s google/veo3.1/image-to-video endpoint, polls until the job completes, and updates Google Sheets with Status “Finished” and the video URL (or writes an error message if generation fails).

Setup

  1. Duplicate the provided Google Sheets template, connect Google Sheets OAuth2 credentials in n8n, and update each Google Sheets node to point to your spreadsheet and the “Task” sheet.
  2. Provide an LLM credential for the prompt agents (OpenAI API key for the OpenAI connection, and/or a Groq API key for the fallback model).
  3. Add your API keys for the Google Gemini image generation endpoint and Atlas Cloud (Bearer token) in the two HTTP requests that generate the image and the Veo 3.1 video.
  4. Ensure your sheet includes the required columns (for example: Task ID, Status, Product Photo, Character, Background, Product Name, Product Description, Target Market, Video Scene, Image Result, Analyze Image, Video Result), and create tasks with Status set to “Ready” to start processing.