8
n8n 中文网amn8n.com

使用OpenAI和RunwayML将产品照片转换为360°视频

高级

这是一个Design, AI, Marketing领域的自动化工作流,包含 26 个节点。主要使用 Wait, Switch, EmailSend, FormTrigger, GoogleDrive 等节点,结合人工智能技术实现智能自动化。 使用 OpenAI 和 RunwayML 将产品照片转换为 360° 视频

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "NUJPYLVyCmLmEAAX",
  "meta": {
    "instanceId": "2ac84bf1f440a0e879aa6d91666aa16b413615a793da24a417a70de20243c4ba",
    "templateCredsSetupCompleted": true
  },
  "name": "使用OpenAI和RunwayML将产品照片转换为360°视频",
  "tags": [],
  "nodes": [
    {
      "id": "19c9fa36-0f3c-44cb-abc1-37af08611b16",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "84c6d83d-93b8-4e87-9974-8db53b6fddb9",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "c1a4746e-a1f6-4e2e-a0a2-c6e765c2d0de",
      "name": "上传原始照片",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        220,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1340761f-3f1d-456c-8e3f-cfb93e05e11c",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        0
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "ba622dfe-6917-442d-a8fd-62a503c3344f",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        440,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c33f1e36-bbc1-44f8-b90c-f52bb5c82ea9",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1300,
        60
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "aa303b1c-e014-4b64-b2f4-1ae8a0168949",
      "name": "生成视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "aabf68e5-3473-4f5d-b4db-08564f9f2a96",
      "name": "获取视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6cba6609-3c1a-4cef-8d6f-5ba08bb87df5",
      "name": "等待30秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        580,
        360
      ],
      "webhookId": "743cfc7d-4bd6-41cb-b240-9e21cc916df9",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "216568b3-b667-4ada-b0af-db3cafc07ae6",
      "name": "下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        800,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "67ca8c2d-d17d-4304-a987-18ce25b0f08b",
      "name": "创建精修图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b6f374ab-aea6-4494-b030-f328bf2f1ac9",
      "name": "获取URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "986f1c53-c1fc-4452-a551-44400af3829d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "504e3cf5-c965-43b6-bf7a-70fc6ed74ddb",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a547fb50-acb5-42f5-a700-144572c05094",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "84678efc-4b50-422e-8c0c-a481709f49fe",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f10e1b30-0dd5-498b-b34b-8bfc56c396c9",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        980,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a91a239b-0a46-44ca-bcaa-c027e975bc27",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "71e562a1-b57e-4e16-b575-6df5e2b9064a",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "76abe06b-d691-466a-9930-0978ef242cae",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        820
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2acdf876-f9e4-4f1e-ad2a-2725bfe519d1",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "55045380-40d3-49be-a940-630f8b9ab9fa",
      "name": "视频生成失败邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1260,
        340
      ],
      "webhookId": "1b7cd83d-c40f-46e3-b2c2-4f05f1a3f747",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "640eefcb-455b-4378-963a-45a742aab69d",
      "name": "视频生成成功邮件(含视频URL)",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1260,
        600
      ],
      "webhookId": "1b7cd83d-c40f-46e3-b2c2-4f05f1a3f747",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "bea50515-21f8-4843-8804-8336b301fcbb",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "955e598d-c8f4-4296-86f7-90d75ea9632b",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1d6efac0-380a-475e-a3b4-c86d5fe5753b",
      "name": "根据视频生成工具的状态路由操作",
      "type": "n8n-nodes-base.switch",
      "position": [
        960,
        280
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "2e9dc8bd-9841-4789-b5cd-968c9bd70851",
      "name": "等待5秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        1240,
        920
      ],
      "webhookId": "6f7b0315-489e-486f-91d3-0c90b1f2e8ac",
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "79601429-eb58-462a-be38-c614bb0b12bb",
  "connections": {
    "Get URL": {
      "main": [
        [
          {
            "node": "Generate Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Download File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video": {
      "main": [
        [
          {
            "node": "Route Actions Based on Status from Video Generation Tool",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 Sec": {
      "main": [
        [
          {
            "node": "Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 sec": {
      "main": [
        [
          {
            "node": "Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Create Refined Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video": {
      "main": [
        [
          {
            "node": "Wait 30 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Get URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Upload Original Photo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Refined Image": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Original Photo": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Actions Based on Status from Video Generation Tool": {
      "main": [
        [
          {
            "node": "Video Generation Failure Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Video Generation Success Email with Video URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 Sec",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 Sec",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 Sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 设计, 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
高级
节点数量26
分类3
节点类型10
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流