8
n8n 中文网amn8n.com

长转短

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 Set, Code, Wait, SplitOut, HttpRequest 等节点。 将任何YouTube视频转换为病毒式短视频

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "",
  "meta": {
    "instanceId": "",
    "templateCredsSetupCompleted": true
  },
  "name": "长转短",
  "tags": [],
  "nodes": [
    {
      "id": "",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1340,
        200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "",
      "name": "Mistral Cloud 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        1160,
        200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        940,
        40
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "",
      "name": "选择片段",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1160,
        40
      ],
      "parameters": {},
      "typeVersion": 1.5
    },
    {
      "id": "",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1540,
        40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "获取转录文本",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "",
      "name": "保存片段",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2020,
        140
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1720,
        40
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "0b7870aa-13a6-40a7-90ea-4152c80c335f",
      "name": "替换我",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2040,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        300,
        40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        520,
        40
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -300
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -40
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -40
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        2240,
        140
      ],
      "webhookId": "",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "",
      "name": "便签说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        -40
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1500,
        -40
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Select Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me": {
      "main": [
        []
      ]
    },
    "Save Clips": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Get Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select Clips": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Transcript": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Save Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Select Clips",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Select Clips",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

工作流信息
难度等级
高级
节点数量17
分类2
节点类型12
难度说明

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

作者
Nasser

Nasser

@nasser

Data Engineer, now automating processes mostly with n8n, Make and code

外部链接
在 n8n.io 查看

分享此工作流