用 n8n 自动创建并发布 Instagram Reels:Veo3 + OpenAI + Blotato
聊天输入 → AI 生成视频提示词 → Veo3 生成 9:16 短视频 → 轮询获取结果 → AI 写标题 → 记录到 Google Sheets → 经 Blotato 自动发布到 Instagram
- 给谁
- 内容创作者、品牌运营和小型团队,想用无代码方式批量生成并自动发布 Instagram Reels
- 你会得到
- 发送一条聊天消息,即可自动完成从视频生成到 Instagram 发布的完整流程,包含提示词生成、视频渲染、标题撰写、表格记录和自动发布
- 你需要
- n8n · chat-trigger · openai · http-request · google-sheets
硬约束
需要可访问的 n8n 实例;配置 openAiApi、httpHeaderAuth(Wavespeed + Blotato)、googleSheetsOAuth2Api 三类凭证。Wavespeed API 用于调用 Veo3 视频生成;Blotato 用于 Instagram 发布。Google Sheets 需提前创建并配置 documentId 与 sheetName。Blotato 发布节点中的 accountId 需替换为实际 Instagram 账号 ID。模板创建日期 2025-07-12。
他们做了什么
作者 marconi 在 n8n 官方模板库发布了一个工作流模板,展示如何以聊天消息为起点,自动完成 Instagram Reels 的生成与发布。工作流包含 21 个节点,核心流程为:Chat Trigger → OpenAI(生成视频提示词)→ HTTP Request(调用 Wavespeed/Veo3 API 生成 9:16 短视频)→ Wait + HTTP 轮询循环 → OpenAI(生成标题)→ Google Sheets 记录 → HTTP Request(Blotato 上传媒体)→ HTTP Request(Blotato 发布到 Instagram)→ Google Sheets 更新状态。模板同时提供了 YouTube 教程链接和 Google Sheets 模板链接。
效果如何
作者报告该模板可用于内容日历自动化、趋势广告测试、电商 UGC 风格 Reel 生成和快速创意实验(author_report)。模板在 n8n.io 上获得 26301 次查看。本站未实测执行成功率或各 API 稳定性。
值得知道
1. Caption Agent 实际使用 chatgpt-4o-latest 模型,而非 gpt-4。2. Edit Fields 节点在来源 workflow.json 中 jsonOutput 为空对象 {},可能为占位节点,实际搭建时可能需要补充字段映射。3. Publish to IG 节点中的 accountId 使用占位符 {{ YOUR_INSTAGRAM_ID }},必须手动替换为真实 Instagram 账号 ID 才能成功发布。4. Google Sheets 节点的 documentId 和 sheetName 在模板中留空,需用户自行配置。5. Veo3 生成结果的视频 URL 通过 If 节点的 data.outputs[0] 传入,隐含依赖 Wavespeed API 返回结构稳定;若 API 响应格式变化,轮询逻辑可能失效。6. 两个 Wait 节点均为 30 秒固定延迟,未采用指数退避;若视频生成时间超过轮询周期,循环次数可能增加。7. 来源模板创建日期为 2025-07-12,API 端点或参数可能已有更新,建议搭建前核对 Wavespeed 与 Blotato 最新文档。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- AI Video Prompt Agent 节点:绑定OpenAI API 凭证。
- HTTP Get Request 节点:绑定HTTP Header Auth 凭证。
- Caption Agent 节点:绑定OpenAI API 凭证。
- Upload Bloatato 节点:绑定HTTP Header Auth 凭证。
- Google Sheets1 节点:绑定Google Sheets OAuth2 凭证。
- Publish to IG 节点:绑定HTTP Header Auth 凭证。
- Veo3 Video Generator 节点:绑定HTTP Header Auth 凭证。
- Google Sheet Ready To Post 节点:绑定Google Sheets OAuth2 凭证。
需要替换的配置
- 源模板来自 n8n 公开库 #5910(约 21 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
模板获取日期: 2026-10-24
步骤
配置聊天触发器
在 n8n 中添加「When chat message received」节点作为工作流入口。无需额外参数,保持默认即可通过聊天界面或 Telegram 触发。发送示例消息如:「为极简香薰品牌制作一条冷静美学的 Reel」。
配置 AI 视频提示词生成节点
添加 OpenAI 节点(AI Video Prompt Agent),模型选择 gpt-4。system 提示词负责将用户输入转换为适合 Veo3/Seedance API 的视频生成提示词。要求输出控制在 100 词以内,仅返回纯提示词文本,不含额外解释或格式。
运行提示词 · 来源原文。OpenAI 节点 AI Video Prompt Agent 的 system message 字段
You are a creative video prompt generator for short-form reels (e.g., Instagram, TikTok). Based on: The chat input of the user Your task is to craft an elaborate, visually descriptive video generation prompt suitable for input into the Seedance/Veo3 API. 🛑 Do not include any extra explanation, formatting, or commentary. Your entire output must be the exact prompt to pass into the video generator. The prompt should: – Be under 100 words – Describe the visual elements, tone, and motion clearly – Reflect the thematic visual in a coherent manner Example of your expected output format: “A close-up slow-motion shot of a glass perfume bottle as morning sunlight filters through mist. The background shows soft-focus wildflowers, matching the theme of natural beauty and calm. Overlay text: ‘Nature’s Elegance. Reinvented.’ Trend-inspired styling based on the ‘quiet luxury’ aesthetic. For Instagram.”
配置 Veo3 视频生成与结果轮询
依次添加并连接以下节点: 1. HTTP Request 节点(Veo3 Video Generator):POST 到 https://api.wavespeed.ai/api/v3/google/veo3-fast,body 包含 aspect_ratio=9:16、duration=8、enable_prompt_expansion=true、generate_audio=true,prompt 取上一步 AI 输出。 2. Wait 节点:等待 30 秒。 3. HTTP Request 节点(HTTP Get Request):GET https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result,使用 httpHeaderAuth 凭证。 4. If 节点:判断 data.status 是否等于 processing。若为 true,进入「Wait 30 Secs」节点再次等待 30 秒后回到 HTTP Get Request 重新轮询;若为 false,进入下一步。 注意:两个 Wait 节点均配置为 30 秒固定延迟。
配置标题生成节点
添加 OpenAI 节点(Caption Agent),模型选择 chatgpt-4o-latest。system 提示词指定为 Instagram 标题撰稿人,风格 playful and impactful。输入内容引用 AI Video Prompt Agent 生成的视频提示词,输出配套标题。
运行提示词 · 来源原文。OpenAI 节点 Caption Agent 的 system message 字段
You're an Instagram Caption copywriter. You'll receive a set of video prompt message that is used for generating an Instagram short reel video. Your job is to write an effective accompanying caption. Language style should be playful and impactful.
记录到 Google Sheets
添加 Google Sheets 节点(Google Sheet Ready To Post),操作选择 Append。配置 documentId 和 sheetName 指向你的跟踪表格。写入字段包括:Video Description / Prompt(来自 AI Video Prompt Agent)、Video URL (google drive)(来自 If 节点的 data.outputs[0])、Caption(来自 Caption Agent)、Status 设为「Ready to Post」。表格列名需与节点 schema 一致。
上传媒体并发布到 Instagram
依次配置: 1. Edit Fields 节点:来源中 jsonOutput 为 {},可能为占位,建议根据实际需要补充字段映射或保持原样。 2. HTTP Request 节点(Upload Bloatato):POST https://backend.blotato.com/v2/media,body 参数 url 取 Google Sheets 中的 Video URL (google drive)。 3. HTTP Request 节点(Publish to IG):POST https://backend.blotato.com/v2/posts,JSON body 包含 Instagram 目标平台、标题文本(Caption.toJsonString())、媒体 URL(上一步返回的 url)、以及 accountId(必须将 {{ YOUR_INSTAGRAM_ID }} 替换为你的实际 Instagram 账号 ID)。 4. Google Sheets 节点(Google Sheets1):操作选择 appendOrUpdate,matchingColumns 设为 Video URL (google drive),将 Status 更新为「Posted」。
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限,再按步骤检查节点配置
这一段是提示词,页面不会在这里插入广告。
你正在搭建一个 n8n 工作流,用于从聊天消息自动生成 Instagram Reels。请先确认以下前置条件: - 拥有可访问的 n8n 实例(云或自托管) - 已配置 openAiApi 凭证(GPT-4 访问权限) - 已配置 httpHeaderAuth 凭证(Wavespeed API 密钥 + Blotato API 密钥) - 已配置 googleSheetsOAuth2Api 凭证 - 已创建 Google Sheets 跟踪表,列名为:Video Description / Prompt、Video URL (google drive)、Caption、Status - 已获取 Blotato 的 Instagram accountId 确认后,按步骤依次导入 workflow.json 或手动创建节点,重点检查: 1. AI Video Prompt Agent 的 system prompt 是否完整复制 2. Veo3 Video Generator 的 body 参数(aspect_ratio、duration、prompt 变量) 3. HTTP Get Request 的 URL 模板与轮询逻辑 4. If 节点的条件(data.status equals processing) 5. Caption Agent 的 system prompt 与模型选择 6. Google Sheets 节点的 documentId、sheetName、字段映射 7. Publish to IG 节点中 accountId 替换为真实值 建议先用测试消息触发一次完整执行,检查 Wavespeed 返回结构与 Google Sheets 写入结果。
搭建完成后,用一条测试消息触发,验证 Veo3 生成、轮询、标题、表格记录和 Instagram 发布各环节是否连通。
来源
Auto-generate and post Instagram reels with Veo3, OpenAI, and Blotato · marconi · n8n.io · 2025-07-12
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。