8
n8n 中文网amn8n.com

GPT-5 & Veo-3 Instagram视频生成器与自动发布

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 15 个节点。主要使用 If, Wait, HttpRequest, OpenAi, ChatTrigger 等节点。 使用Google Veo-3 AI和GPT自动创建并发布社交媒体短视频

前置要求
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "GPT-5 & Veo-3 Instagram 视频生成器与自动发布",
  "tags": [],
  "nodes": [
    {
      "id": "a8d50f46-720d-4a84-addd-138005ca4f4e",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        1400,
        60
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "81175228-b5b2-4b88-b4a9-40ea1c610085",
      "name": "30 秒等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        2200,
        60
      ],
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "f881c748-847b-4dad-ac34-cac4c0d2b03a",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        2640,
        60
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "57f70829-d058-494e-b438-7ce9dc8a6384",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.status }}",
              "rightValue": "processing"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "2dd5d111-0756-4bbf-9c94-e699740ee471",
      "name": "等待 30 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        2880,
        160
      ],
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "f1da4e26-5fd2-428c-b8ab-175e9dd48caf",
      "name": "Veo3 视频生成器",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1980,
        60
      ],
      "parameters": {
        "url": "https://api.wavespeed.ai/api/v3/google/veo3-fast",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "duration",
              "value": "8"
            },
            {
              "name": "enable_prompt_expansion",
              "value": "true"
            },
            {
              "name": "generate_audio",
              "value": "true"
            },
            {
              "name": "prompt",
              "value": "={{ $json.message.content }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "f8f54a04-bf64-44c0-9e1a-a9124cbcf1a6",
      "name": "GPT-5 AI 视频提示代理",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1620,
        60
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={{ $json.chatInput }}"
            },
            {
              "role": "system",
              "content": "You are a creative video prompt generator for short-form reels (e.g., Instagram, TikTok). Based on:\n\nThe chat input of the user\n\nYour task is to craft an elaborate, visually descriptive video generation prompt suitable for input into the Seedance/Veo3 API.\n\n🛑 Do not include any extra explanation, formatting, or commentary. Your entire output must be the exact prompt to pass into the video generator.\n\nThe prompt should:\n– Be under 150 words\n– Describe the visual elements, tone, and motion clearly\n– Reflect the thematic visual in a coherent manner\n\nExample of your expected output format:\n\n“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.”"
            }
          ]
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "6de2d985-0c27-40f9-91e0-5858484dd673",
      "name": "Veo3 获取",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2420,
        60
      ],
      "parameters": {
        "url": "=https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "90d33010-21e2-44be-a93f-8d09d5b2c38f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -40
      ],
      "parameters": {
        "color": 6,
        "width": 1800,
        "height": 480,
        "content": "视频生成"
      },
      "typeVersion": 1
    },
    {
      "id": "b3d557fb-7291-4223-be37-079cf1304109",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        460
      ],
      "parameters": {
        "color": 4,
        "width": 560,
        "height": 240,
        "content": "字幕代理"
      },
      "typeVersion": 1
    },
    {
      "id": "df9f1ce6-6db6-4dd9-8997-d0e76ca27b29",
      "name": "上传至 Postiz",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        500
      ],
      "parameters": {
        "url": "https://api.postiz.com/public/v1/upload",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "data"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "3231c09a-afbc-4eb4-ac9e-599ced770916",
      "name": "下载视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1920,
        500
      ],
      "parameters": {
        "url": "={{ $('Veo3 GET').item.json.data.outputs[0] }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b57b7a80-ed39-4edf-aa13-f340f7b73eee",
      "name": "POSTIZ 发布到社交平台(IG)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2380,
        500
      ],
      "parameters": {
        "url": "https://api.postiz.com/public/v1/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"type\": \"now\",\n  \"shortLink\": false,\n  \"date\": \"{{ $now.toISO() }}\",\n  \"tags\": [],\n  \"posts\": [\n    {\n      \"integration\": { \"id\": \"{{ YOUR_POSTIZ_INTEGRATION_ID }}\" },\n      \"value\": [\n        {\n          \"content\": \"{{ $('GPT-5 Caption Agent').item.json.message.content }}\",\n          \"image\": [\n            {\n              \"id\": \"{{ $node['Upload to Postiz'].json.id }}\",\n              \"path\": \"{{ $node['Upload to Postiz'].json.path }}.mp4\"\n            }\n          ]\n        }\n      ],\n      \"settings\": {\n        \"post_type\": \"post\"\n      }\n    }\n  ]\n}\n",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "3691e403-be44-4668-bd4d-1613118d0291",
      "name": "GPT-5 字幕代理",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1500,
        500
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=Based on this video generation prompt, create an impactful accompanying caption for the Instagram Post: {{ $('GPT-5 AI Video Prompt Agent').item.json.message.content }}"
            },
            {
              "role": "system",
              "content": "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."
            }
          ]
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "f8adb7e9-5553-4cd7-8952-caf0a7d7095a",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1860,
        460
      ],
      "parameters": {
        "color": 3,
        "width": 780,
        "height": 240,
        "content": "Postiz - 发布到社交渠道"
      },
      "typeVersion": 1
    },
    {
      "id": "143b00ba-76d2-4a4d-986a-90b53c84f91c",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -60
      ],
      "parameters": {
        "color": 5,
        "width": 1000,
        "height": 1220,
        "content": "🚀 GPT-5 + Veo-3 Instagram Reel 自动创作与自动发布器"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Wait 30 Secs",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "GPT-5 Caption Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "30 Wait": {
      "main": [
        [
          {
            "node": "Veo3 GET",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Veo3 GET": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 Secs": {
      "main": [
        [
          {
            "node": "Veo3 GET",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Upload to Postiz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Postiz": {
      "main": [
        [
          {
            "node": "POSTIZ Post to Socials (IG)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT-5 Caption Agent": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Veo3 Video Generator": {
      "main": [
        [
          {
            "node": "30 Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "GPT-5 AI Video Prompt Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT-5 AI Video Prompt Agent": {
      "main": [
        [
          {
            "node": "Veo3 Video Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量15
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

外部链接
在 n8n.io 查看

分享此工作流