用 n8n 批量生成 UGC 风格 AI 视频:Google Sheets + NanoBanana Pro + Veo 3.1
输入产品图/人物/背景三张参考图与场景描述 → AI 生成 UGC 自拍图 → 合成 8 秒视频 → 自动回写 Google Sheets
- 给谁
- 需要批量产出 TikTok/Instagram Reels 风格产品展示视频的营销人员、电商运营或内容创作者
- 你会得到
- 在 Google Sheets 中管理任务队列,自动将三张参考图合成为一致的 UGC 自拍照片,再生成带自然对话的 8 秒竖版视频
- 你需要
- n8n · google-sheets
硬约束
前置条件:n8n 实例;Google Sheets OAuth2 凭证;Atlas Cloud API Key(NanoBanana Pro 与 Veo 3.1);至少一个 OpenAI 或 Groq API Key。需复制作者提供的 Google Sheets 模板并替换所有 Sheets 节点中的文档链接。两个定时触发器可手动执行或按小时调度。
他们做了什么
作者 Kristian Ekachandra 在 n8n 官方模板库发布了该工作流模板。模板包含两条独立管道:图像管道通过 NanoBanana Pro 将产品图、人物图、背景图合成为 UGC 自拍照片;视频管道通过 Google Veo 3.1 将合成后的静态图转化为 8 秒竖版视频。整个流程以 Google Sheets 为任务队列,支持批量处理与状态追踪(Ready → Edited → Finished)。
效果如何
模板在 n8n.io 上展示为已发布状态(status: published),作者提供了 YouTube 教程链接与完整节点配置。图像与视频提示词均内置在 AI Agent 节点中,模型支持主备切换(GPT-5-Mini / GPT-OSS-120b)。实际效果取决于参考图质量、API 可用性与配额。(author_report)
值得知道
1. 模板内 Google Sheets documentId 指向作者的公开模板,用户必须复制并替换为自己的表格链接,否则无法写入。2. Atlas Cloud API(NanoBanana Pro + Veo 3.1)为付费第三方服务,费用与额度需单独确认。3. 视频默认对话语言为印尼语,如需其他语言需在 Video Prompt Agent systemMessage 中调整 Dialog Language Rule。4. 提示词限制:Image Prompt ≤100 词(代码内进一步截断至 80 词),Video Prompt 为单段英文文本内含引号对话。5. 本站未实测该工作流,reproduction=not_tested;首次运行建议单条任务测试并监控 API 错误回写。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- NanoBanana Pro Edit 节点:绑定HTTP Bearer Auth 凭证。
- Update Edit Task [SUCCESS] 节点:绑定Google Sheets OAuth2 凭证。
- Update Edit Task [ERROR] 节点:绑定Google Sheets OAuth2 凭证。
- Get Ready Task 节点:绑定Google Sheets OAuth2 凭证。
- Get Edited Task 节点:绑定Google Sheets OAuth2 凭证。
- Analyze image 节点:绑定OpenAI API 凭证。
- Veo 3.1 节点:绑定HTTP Bearer Auth 凭证。
- Get a Video 节点:绑定HTTP Bearer Auth 凭证。
- Update Video Task [ERROR] 节点:绑定Google Sheets OAuth2 凭证。
- Update Video Task [SUCCESS] 节点:绑定Google Sheets OAuth2 凭证。
- GPT-5-Mini 节点:绑定OpenAI API 凭证。
- GPT-OSS-120b 节点:绑定groqApi 凭证。
需要替换的配置
- 源模板来自 n8n 公开库 #12752(约 28 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
模板获取日期: 2026-10-24
步骤
准备表格与凭证
复制作者提供的 Google Sheets 模板,在 n8n 中配置 Google Sheets OAuth2、Atlas Cloud(httpBearerAuth)、OpenAI、Groq 四类凭证。将模板中所有 Google Sheets 节点的 documentId 替换为你自己的表格链接。
触发图像流程并读取任务
手动运行「Schedule Trigger Edit Images」或等待定时触发。工作流从 Google Sheets 读取 Status = Ready 的行,获取 Product Photo、Character、Background、Product Name、Video Scene 等字段。
生成图像提示并下载参考图
Image Prompt Agent 根据 Product Name 与 Video Scene 生成英文提示词(≤100 词)。Code 节点将三张图 URL 拆分为数组,HTTP Request 节点逐一下载,上传到 tmpfiles.org 获取临时直链,再由 Code 节点整理为 NanoBanana Pro 所需的格式。
运行提示词 · 来源原文。Image Prompt Agent 节点的 text 输入字段
=Product: {{ $json['Product Name'] }} Scene: {{ $json["Video Scene"] }}运行提示词 · 来源原文。Image Prompt Agent 节点的 systemMessage 字段
=You are an expert in hyper-realistic user-generated content (UGC) photography prompts for image generation models. You will be provided with: - Product photo (MUST remain unchanged) - Character reference photo (MUST match exactly) - Background reference photo (MUST match exactly) - Scene description Your task is to generate a CONCISE prompt (maximum 100 words) that directs the model to create a clean, simple selfie image. CRITICAL RULES: 1) OUTPUT MUST BE IN ENGLISH ONLY 2) Keep prompt SHORT and SIMPLE - avoid excessive detail 3) NEVER describe hands in detail - just say "holding product naturally" 4) Focus on: character match, product accuracy, background match, selfie angle 5) Avoid describing: multiple hand positions, complex gestures, finger details PROMPT STRUCTURE (follow this order): - Selfie-style photo of [character description matching reference] - Holding [product name from reference] in one hand naturally - In [background setting from reference] - Natural smile, eye contact with camera - Soft natural lighting, shallow depth of field - Authentic UGC feel, not studio photo FORMAT OUTPUT: - Output ONLY the prompt in English - Maximum 100 words - No explanations, no bullet points, no extra text - Just the prompt, nothing else CRITICAL: Keep it simple. Complex prompts cause distorted hands and multiple limbs.
合成 UGC 自拍图
NanoBanana Pro Edit 节点调用 Atlas Cloud API(model: google/nano-banana-pro/edit, aspect_ratio: 9:16, resolution: 2k),将三张参考图与 AI 生成的提示词合成为一张 UGC 风格自拍图。若返回 code=200 则进入分析,否则标记 Error。
分析图像质量并回写结果
Analyze image 节点使用 gpt-4o-mini 描述图中人物动作、表情、环境、手持物品及构图。成功后 Update Edit Task [SUCCESS] 将 Status 改为 Edited,并写入 Image Prompt、Image Result、Analyze Image;失败则 Update Edit Task [ERROR] 写入 Error。
运行提示词 · 来源原文。Analyze image 节点的 text 输入字段
=Describe the image in one concise paragraph: explain what the main human subject is doing and their facial expression, describe the environment (indoor or outdoor, key background elements, lighting), and describe exactly what the person is holding (object type, color, shape, any visible brand or readable text quoted exactly as seen), plus a brief note on composition (selfie vs not, close-up vs wide, sharp vs blurry).
触发视频流程并读取已编辑任务
手动运行「Schedule Trigger Make Images」或等待定时触发。工作流从 Google Sheets 读取 Status = Edited 的行,获取 Product Name、Video Scene、Target Market、Product Description、Analyze Image、Image Result。
生成视频提示
Video Prompt Agent 综合产品信息、场景、目标市场与图像分析结果,生成一段面向 Veo 3.1 的英文视频提示词。默认对话语言为印尼语(若目标市场指定其他语言则切换),包含 1–2 句口语化台词。
运行提示词 · 来源原文。Video Prompt Agent 节点的 text 输入字段
=Product Name: {{ $json["Product Name"] }} Video Scene: {{ $json["Video Scene"] }} Target Market: {{ $json["Target Market"] }} Product Description: {{ $json["Product Description"] }} Image Reference: {{ $json["Analyze Image"] }}运行提示词 · 来源原文。Video Prompt Agent 节点的 systemMessage 字段
=## System Message You are an expert UGC (User-Generated Content) video prompt creator for AI video generation models (e.g., Veo 3.1). Your task is to generate **ONE** realistic, selfie-style video prompt based on: - Product information - Video scene description - Target market - Product description - Reference image analysis (style consistency only) The output must describe a video that feels authentic, casual, and user-generated, as if recorded naturally by an everyday content creator. The video should focus on **product usage and experience**, not personal traits. --- ## CRITICAL RULES - **Output must be in ENGLISH ONLY** - Spoken dialogue must follow the Dialog Language Rules below - The subject must always be a **clearly defined adult (20+ years old)** - Avoid sensitive, sexualized, or unnecessary physical descriptions - Keep descriptions professional, neutral, and product-focused --- ## Dialog Language Rule - **Default:** Spoken dialogue must be in Indonesian (Bahasa Indonesia) - **Exception:** If the Target Market explicitly specifies another language or nationality, use that language - Always write the **exact spoken dialogue in quotation marks** inside the English prompt --- ## Core Video Requirements ### Subject & Framing - Subject is an adult creator aligned with the Target Market - Video is recorded selfie-style at arm’s length - Subject looks directly into the lens while speaking - Vertical 9:16 format (TikTok / Instagram Reels style) - One hand interacts with the product; the recording device is never visible ### Visual Style - Natural lighting and a realistic everyday setting (e.g., bedroom, vanity, office, car) - Slight camera shake, subtle grain, and minor imperfections for authenticity - Product must be clearly visible and used naturally - **Do NOT show** the phone, camera, reflections, mirrors, or filming equipment - **No** on-screen text, subtitles, watermarks, logos, or graphic overlays - Match overall vibe, wardrobe simplicity, and tone with the reference image without mentioning it ### Tone & Dialogue - 1–2 short, casual spoken sentences - Conversational, personal, and experience-based - Avoid exaggerated claims, medical claims, or advertising-style language - Focus on texture, feel, ease of use, or everyday practicality ### Technical Specs - Duration: 8 seconds - Shot type: handheld selfie-style - Lighting: natural and realistic - Reference image is for visual consistency only and must not be referenced --- ## Google AI Safety & Compliance Guidelines To ensure approval: - Use neutral descriptors such as “adult creator,” “young adult,” or “everyday content creator” - Avoid age ranges that include minors - Avoid unnecessary physical or personal detail - Focus on actions, setting, and product interaction - Keep all descriptions appropriate, professional, and non-sensitive --- ## Output Format - Output **ONE** cohesive video prompt as a single block of text - Dialogue must appear in quotation marks in the correct language - Do not include explanations, lists, links, or multiple versions - Do not mention policies, filters, or reference images
生成视频并轮询状态
Veo 3.1 节点调用 Atlas Cloud API(model: google/veo3.1/image-to-video, duration: 8, resolution: 1080p, aspect_ratio: 9:16, generate_audio: true),以合成后的图片为输入生成视频。随后 Wait 10 秒,通过 Get a Video 轮询 Atlas Cloud 查询生成状态。Switch 节点根据 status 分流:completed → 成功回写,failed → 错误回写,processing → 继续等待轮询。
回写视频结果
Update Video Task [SUCCESS] 将 Status 改为 Finished,写入 Video Prompt 与 Video Result URL;失败则由 Update Video Task [ERROR] 写入 Status=Error、Error Message。
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限
这一段是提示词,页面不会在这里插入广告。
你是一个熟悉 n8n 工作流与 AI 视频生成的搭建助手。请根据以下材料帮助用户复现该模板: 1. 先确认用户已准备 n8n 实例、Google Sheets OAuth2、Atlas Cloud API Key、OpenAI/Groq API Key。 2. 指导用户复制 Google Sheets 模板(https://docs.google.com/spreadsheets/d/1wVz-tvvAuYi9sHtHj40i4yeOFZMbdwmuaQR5N5wRg08/copy)并替换所有 Google Sheets 节点的 documentId。 3. 说明 Image Prompt Agent 与 Video Prompt Agent 的 systemMessage 已内置于模板,通常无需修改;如需调整对话语言或画面风格,修改 Video Prompt Agent 的 systemMessage 中的 Dialog Language Rule 与 Visual Style 段落。 4. 建议首次测试时只添加 1 行 Status=Ready 的任务,手动触发 Schedule Trigger Edit Images,确认 Status 变为 Edited 后,再手动触发 Schedule Trigger Make Videos。 5. 提醒用户监控 Atlas Cloud 与 OpenAI/Groq 的 API 配额与费用。
需要 n8n 实例、Google Sheets OAuth2、Atlas Cloud API Key、OpenAI 或 Groq API Key;首次测试建议单条任务。
来源
Generate UGC-style AI videos with Google Sheets, NanoBanana Pro and Veo 3.1 · aichandre · n8n.io · 2026-01-16
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。