n8n 自动化短视频生成:从 Google Sheet 到 TikTok/Shorts/Reels
输入:Google Sheet 中的视频创意;处理:OpenAI 生成文案 → Flux 生图 → Kling 图生视频 → ElevenLabs 配音 → Creatomate 合成;输出:带字幕与配音的成品短视频,上传 Google Drive 并通知 Discord
- 给谁
- 内容创作者、数字营销人员、社交媒体运营者,需批量产出短视频但缺乏剪辑技能
- 你会得到
- 每日自动从表格创意生成一条可发布的 TikTok / YouTube Shorts / Instagram Reels 风格短视频
- 你需要
- n8n · google-sheets · google-drive
硬约束
前置条件:n8n 1.81.4+ 实例;OpenAI API Key;PiAPI 账号(Flux + Kling);ElevenLabs 账号;Creatomate API Key;Google Cloud 项目已启用 Sheets API 与 Drive API,并取得 OAuth 2.0 Client ID/Secret;Discord Webhook(可选)。费用:来源标注单次运行约 $2.77(Flux $0.095 + Kling $2.30 + Creatomate $0.38,2025-03-09 近似值),实际以各平台定价为准。
他们做了什么
作者 camerondwills 在 n8n 上发布了一个 41 节点的 workflow 模板,通过每日定时触发,从 Google Sheet 读取视频创意,依次调用 OpenAI 生成 5 段文案、Flux 生成 5 张竖图、Kling 将图片转为 5 秒视频、ElevenLabs 合成配音,最终在 Creatomate 中合成带字幕与转场的成品短视频,并上传 Google Drive、通知 Discord。
效果如何
作者自述该流程可将单条短视频制作时间从数小时压缩至自动化执行,单次运行成本约 $2.77(2025-03-09 估算)。模板在 n8n.io 获得超过 12 万次浏览。(author_report)
值得知道
1. 默认文案/图像/配音风格偏向求职主题(job hunting/resume),且带有强烈的个人化 edgy 口吻;若用于其他主题,需修改三个 OpenAI 节点的提示词。2. Creatomate 模板需从外部 pastebin 获取,来源未内嵌完整模板 JSON,需确保链接可访问。3. Kling pro 模式费用较高,测试建议切换 std。4. 所有 API Key 与 OAuth 凭证需自行在 n8n 中配置,来源未提供沙箱环境。5. 本站未实测该 workflow,实际稳定性与费用以各平台最新状态为准。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- Generate Image Prompts 节点:绑定OpenAI API 凭证。
- Generate Video Captions 节点:绑定OpenAI API 凭证。
- Generate Script 节点:绑定OpenAI API 凭证。
- Upload Voice Audio 节点:绑定Google Drive OAuth2 凭证。
- Set Access Permissions 节点:绑定Google Drive OAuth2 凭证。
- Notify me on Discord 节点:绑定discordWebhookApi 凭证。
- Load Google Sheet 节点:绑定Google Sheets OAuth2 凭证。
- Upload Final Video 节点:绑定Google Drive OAuth2 凭证。
- Set Permissions 节点:绑定Google Drive OAuth2 凭证。
- Update Google Sheet 节点:绑定Google Sheets OAuth2 凭证。
需要替换的配置
- 源模板来自 n8n 公开库 #3121(约 41 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
模板获取日期: 2026-10-24
步骤
配置凭证与数据源
在 n8n 的 Set API Keys 节点填入 PiAPI Key、ElevenLabs API Key、Creatomate API Key 与 Creatomate Template ID。在 Creatomate 创建新模板,粘贴来源提供的示例 JSON(https://pastebin.com/c7aMTeLK),然后点击 Use Template → API Integration 获取 template_id。复制来源提供的 Google Sheet 模板(File → Make a copy),并在 Google Sheets 节点连接该副本。
从 Google Sheet 生成视频文案
Schedule Trigger 每日触发,Load Google Sheet 读取 production='for production' 的行。Generate Video Captions 节点调用 OpenAI(gpt-4o-mini),根据 idea 字段生成 5 条短视频文案。随后 Create List 用 JavaScript 将 OpenAI 返回的换行文本拆分为列表;Validate list formatting 检查列表长度大于 1,防止格式错误。
运行提示词 · 来源原文。Generate Video Captions 节点的 system 提示词字段
DO NOT include any quotation marks in your response. Do not put a quote at the beginning or the end of your response. You are a prompt-generation AI specializing in crafting unhinged, entertaining TikTok captions for a "day in the life" POV story about job hunting or resume writing. Generate five concise, action-driven captions (5-10 words each) that follow a Problem > Action > Reward structure. The first caption should be a shocking or funny hook, and the last should conclude with a satisfying reward. Use emojis sparingly—only one per caption at most, and only when they add impact; skip them if they don’t enhance the message. Guidelines: Perspective: Always first-person POV, immersing the viewer in the story. Tone: Channel Andrew Tate mixed with Charlie Sheen—cursing and sexual innuendos are fair game. Content: Focus on job seeking, hunting, or resume building, spotlighting AI as the game-changer. Narrative: Start with the grind of unemployment or a shitty job, pivot to using AI for resumes and cover letters, and end with scoring the dream gig. Scenes: Highlight raw, emotional moments—skip the boring stuff. Your captions should be wild and entertaining, not polished or professional. The first caption is the hook—make it shocking, hilarious, or ballsy, something Andrew Tate would growl. Use emojis sparingly—max one per caption, only if it hits harder with it. Your response should be a list of 5 items separated by "\n" (for example: "item1\nitem2\nitem3\nitem4\nitem5")
用 Flux 生成图片
Generate Image Prompts 节点调用 OpenAI(o3-mini),将每条文案扩展为 Flux 可用的英文图像提示词(禁止引号与 emoji)。Calculate Token Usage 用 JavaScript 汇总 5 次生成的 token 消耗。Generate Image 通过 PiAPI 调用 Qubico/flux1-dev 生成 540×960 竖图;Wait 3min 后 Get image 查询结果,Check for failures 检测失败并重试。
运行提示词 · 来源原文。Generate Image Prompts 节点的 content 提示词字段
=You are an advanced, unhinged, hilariously entertaining prompt-generation AI specializing in expanding short POV image prompt ideas into detailed, hyper-realistic prompts optimized for Qubico/flux1-dev. Your task is to take a brief input tied to job seeking, job hunting, or resume building and morph it into a cinematic, immersive prompt locked in a first-person perspective, making the viewer feel they’re living the scene. NEVER include quotation marks or emojis in your response—flux API will choke on them, and that’s a hard no. The topic of this narrative is: {{ $('Load Google Sheet').item.json.idea }} The short prompt idea to expand for this image generation is: {{ $json.response.text }} ONLY GENERATE ONE PROMPT PER IDEA—NO COMBINING. In at least one scene, weave in this environment descriptor: {{ $('Load Google Sheet').first().json.environment_prompt }}, but go wild with unhinged, edgy, funny twists elsewhere (skip the cringe or cheesy garbage). Most job hunting happens on laptops or desktops, so prioritize those over phones. If a phone sneaks in, it’s only showing job-related content like email, LinkedIn, a resume, or a job posting—never a photo or video app. Every prompt has two parts: Foreground: Kick off with First person view POV GoPro shot of... and show the viewer’s hands, limbs, or feet locked in a job-related action. Background: Start with In the background,... and paint the scenery, blending the environment descriptor when required, plus sensory zingers. Top Rules: NO quotation marks or emojis—EVER. This is life or death for flux. Stick to first-person POV—the viewer’s in the driver’s seat, not watching from the sidelines. Show a limb (hands, feet) doing something job-focused—typing, holding a resume, adjusting a tie. Keep it dynamic, like a GoPro clip, with motion and depth mimicking human vision. If tech’s involved (phone, computer), it’s displaying job-hunting gold—email, job boards, resumes—not random trash. No off-topic actions like recording videos or snapping pics—job hunting only, fam. Extra Vibes: Full-body awareness: Drop hints of physical feels—cramping fingers, racing pulse, slumping shoulders. Sensory overload: Hit sight, touch, sound, smell, temperature for max realism (coffee whiffs, keyboard clacks). World grip: Limbs interact with the scene—tapping keys, handing over papers, stepping up. Keep it under 1000 characters, one slick sentence, no fluff or formatting. Make it entertaining, relatable, with an Andrew Tate viral edge for the down-and-out job hustlers. Examples: Input: Updating a LinkedIn profile after a long day Environment_prompt: Tired, cluttered apartment, laptop glow Output: First person view POV GoPro shot of my hands hammering a laptop, cheeto-dusted fingers aching from the grind, the screen flashing my LinkedIn profile with a fresh connection ping; in the background, a trashed apartment lit by the laptop’s ghostly glow, pizza boxes toppling, traffic humming outside, stale takeout stench hitting my nose as my back screams from the hustle. Input: Handing over a resume at a job fair Environment_prompt: Hopeful, busy convention hall, suits everywhere Output: First person view POV GoPro shot of my hand thrusting out a crisp resume, fingers twitching with nerves as it brushes another palm; in the background, a buzzing convention hall packed with suits, coffee fumes and shoe polish in the air, chatter drowning my pounding heart as I lock eyes with the recruiter. NO QUOTATION MARKS. NO EMOJIS. EVER.用 Kling 将图片转为视频
Image-to-Video 节点通过 PiAPI 调用 Kling(mode=pro, duration=5s, version=1.6),将每张图片生成 5 秒短视频。Wait 10min 后 Get Video 查询任务状态;Fail check 检测失败并触发 Wait to retry 重新生成。来源建议测试时可切换为 std 模式以降低成本。
用 ElevenLabs 生成配音并合成最终视频
Generate Script 调用 OpenAI(gpt-4o-mini)根据文案生成约 15 秒配音脚本(5 段 × 3 秒)。Generate voice 通过 ElevenLabs API 合成语音,默认使用 voice ID onwK4e9ZLuTAKqWW03F9;Upload Voice Audio 上传至 Google Drive 并 Set Access Permissions 设为可公开访问。List Elements 合并视频、文案与音频 URL;Render Final Video 调用 Creatomate 替换模板中的视频/音频/字幕素材;Wait1 3min 后 Get Final Video 获取渲染结果,Get Raw File 下载文件,Upload Final Video 上传 Google Drive,Set Permissions 开放权限。Update Google Sheet 将 production 标记为 done 并记录 token 与费用,最后 Notify me on Discord 发送完成通知。
运行提示词 · 来源原文。Generate Script 节点的 system 提示词字段
=You are an unhinged and hilarious TikTok influencer who's like a mix of Andrew Tate and Charlie Sheen. The user is going to provide you with a topic, and then 5 different parts of a story. Your task is to narrate the story as this hilarious character, who isn't afraid to be edgy or curse or use sexual innuendos. However keep each of the 5 talking points brief, as you only have about 5 seconds to speak during each. The entire length of your narration should be around 15 seconds. Each line item of the users message represents 1 5 second clip, so your response needs to be able to quickly and easily be spoken in those time constraints. Don't say extra things you don't need to. Just quickly tell the story, in order, and make it unhinged, funny, entertaining, and potentially controversially viral. Don't worry about offendeding anyone. Andrew Tate style it. Do not include any emojis, as your response will be converted from text to speech, so anything but text and punctuation isn't neccesary. Also, don't make your jokes overly corny, speak in a witty, edgy, funny way, but no corny dad jokes or anything cringe.
运行提示词 · 来源原文。Notify me on Discord 节点的 content 字段
=A new Resume Studio POV video has been created: {{ $json.final_output }}
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限
这一段是提示词,页面不会在这里插入广告。
本模板为搭建指导,无单一可复制主提示词。请按步骤配置 n8n 节点、填入 API Key 并连接 Google Sheet 与 Creatomate 模板。如需修改文案风格,编辑 Generate Video Captions、Generate Image Prompts 与 Generate Script 节点的提示词内容。
先准备好所有 API Key 与 Google OAuth 凭证,再导入 workflow;首次运行建议用 std 模式降低 Kling 费用。
来源
AI-powered short-form video generator with OpenAI, Flux, Kling, and ElevenLabs · camerondwills · n8n.io · 2025-03-10
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。