8
n8n 中文网amn8n.com

n8n工作流模板

中级

这是一个Content Creation, AI Summarization领域的自动化工作流,包含 8 个节点。主要使用 Set, FormTrigger, Apify, LmChatOpenAi, ChainSummarization 等节点。 使用GPT-4o-mini和Apify转录总结YouTube视频

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "88OE2dFM5fYLAbvn",
  "meta": {
    "instanceId": "14e4c77104722ab186539dfea5182e419aecc83d85963fe13f6de862c875ebfa",
    "templateCredsSetupCompleted": true
  },
  "name": "Workflowforn8n_Template",
  "tags": [],
  "nodes": [
    {
      "id": "e28c7bca-4a0c-4a4e-ae7a-2512d79a5a58",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        -20
      ],
      "webhookId": "d15dffd9-358e-4101-84d2-a5cf13273423",
      "parameters": {
        "options": {},
        "formTitle": "Youtube Summary",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Youtube URL",
              "placeholder": "Enter youtube url",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Give youtube url and get summary"
      },
      "typeVersion": 2.2
    },
    {
      "id": "74693568-c18d-4abc-8e8d-6a588b2dc362",
      "name": "Apify",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        400,
        -20
      ],
      "parameters": {
        "memory": {},
        "actorId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "",
          "cachedResultName": "Youtube Transcripts"
        },
        "timeout": {},
        "operation": "Run actor",
        "customBody": "={{ $json.youtube.toJsonString() }}",
        "waitForFinish": {}
      },
      "credentials": {
        "apifyApi": {
          "id": "",
          "name": "Apify account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "74f34bf5-5871-41d8-aa78-3fcb138e13c7",
      "name": "Summarization Chain",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        840,
        -20
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.1
    },
    {
      "id": "cf0c986b-e08c-4d24-ac33-4f7c79aa8376",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        940,
        200
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "",
          "name": ""
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "234223e9-3e32-4ba4-8b14-482c031328f2",
      "name": "Payload",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -20
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "={\"youtube\":{\n  \"urls\": [\n    \"{{ $json['Youtube URL'] }}\"\n  ],\n  \"maxRetries\": 8,\n  \"proxyOptions\": {\n    \"useApifyProxy\": true,\n    \"apifyProxyGroups\": [\n      \"BUYPROXIES94952\"\n    ]\n  },\n  \"outputFormat\": \"captions\",\n  \"channelNameBoolean\": true,\n  \"channelIDBoolean\": true,\n  \"dateTextBoolean\": false,\n  \"relativeDateTextBoolean\": false,\n  \"datePublishedBoolean\": true,\n  \"viewCountBoolean\": false,\n  \"likesBoolean\": false,\n  \"commentsBoolean\": false,\n  \"keywordsBoolean\": false,\n  \"thumbnailBoolean\": false,\n  \"descriptionBoolean\": false\n}\n}\n "
      },
      "typeVersion": 3.4
    },
    {
      "id": "d0b521f0-bf9f-4258-8711-56c346210151",
      "name": "Caption",
      "type": "n8n-nodes-base.set",
      "position": [
        620,
        -20
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "={\n\"captions\": {{ $json.captions }}\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "0ea73055-e1db-4eb3-9f42-7388c9f7ec37",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        -120
      ],
      "parameters": {
        "width": 1360,
        "height": 440,
        "content": "## 使用 OpenAI 和 APify 总结 YouTube 视频"
      },
      "typeVersion": 1
    },
    {
      "id": "b0d4c309-dd74-404b-b54a-39c89937a6dc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        360
      ],
      "parameters": {
        "color": 7,
        "width": 1360,
        "content": "## 摘要"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c8d39824-58e0-4f78-8583-d572936b9a04",
  "connections": {
    "Apify": {
      "main": [
        [
          {
            "node": "Caption",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Caption": {
      "main": [
        [
          {
            "node": "Summarization Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Payload": {
      "main": [
        [
          {
            "node": "Apify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarization Chain": {
      "main": [
        []
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 内容创作, AI 摘要总结

需要付费吗?

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

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

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

作者
WeblineIndia

WeblineIndia

@weblineindia

A Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.

外部链接
在 n8n.io 查看

分享此工作流