8
n8n 中文网amn8n.com

使用SearchAPI获取YouTube视频摘要

中级

这是一个AI, Marketing领域的自动化工作流,包含 9 个节点。主要使用 SearchApi, SplitOut, Summarize, ManualTrigger, LmChatOpenRouter 等节点,结合人工智能技术实现智能自动化。 使用SearchAPI转录和LLM生成YouTube视频摘要

前置要求
  • AI 服务 API Key(如 OpenAI、Anthropic 等)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "RPlqIyKOfS4uviYK",
  "meta": {
    "instanceId": "54299f860163fe60974599588ae4c20ee888191a431346b258503c2db8b536ed",
    "templateCredsSetupCompleted": true
  },
  "name": "使用Searchapi获取Youtube视频摘要",
  "tags": [],
  "nodes": [
    {
      "id": "4c889838-9062-4797-9b40-e966a3d1d1d4",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -160,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3df790f2-4c6d-47d2-9b88-7967eb3bb78f",
      "name": "SearchAPI",
      "type": "CUSTOM.searchApi",
      "position": [
        60,
        0
      ],
      "parameters": {
        "engine": "youtube_transcripts",
        "parameters": {
          "parameter": [
            {
              "name": "video_id",
              "value": "2XTdEG0Sus0"
            },
            {
              "name": "lang",
              "value": "en"
            }
          ]
        },
        "requestOptions": {}
      },
      "credentials": {
        "searchApi": {
          "id": "rTFvdffzP7fPVaVr",
          "name": "SearchAPI account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f5a5352b-07d7-4fff-b5c2-2512cabd3497",
      "name": "OpenRouter聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        748,
        220
      ],
      "parameters": {
        "model": "qwen/qwen3-0.6b-04-28:free",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "id": "tDWBerCVn0gOn7YX",
          "name": "OpenRouter account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "cd5b5f49-5187-4b97-959f-e1662f0bc3d5",
      "name": "摘要生成链",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        720,
        0
      ],
      "parameters": {
        "options": {},
        "chunkingMode": "advanced"
      },
      "typeVersion": 2
    },
    {
      "id": "e6ba0b10-7b96-46c6-ae0d-fb3c112edab9",
      "name": "递归字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        868,
        220
      ],
      "parameters": {
        "options": {},
        "chunkSize": 6000
      },
      "typeVersion": 1
    },
    {
      "id": "6bd07e32-e41d-4513-bfbe-d5ee93f18ddb",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        280,
        0
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "transcripts"
      },
      "typeVersion": 1
    },
    {
      "id": "52f39b7e-dfb0-469f-9b61-64fd0343e972",
      "name": "摘要",
      "type": "n8n-nodes-base.summarize",
      "position": [
        500,
        0
      ],
      "parameters": {
        "options": {},
        "fieldsToSummarize": {
          "values": [
            {
              "field": "text",
              "separateBy": " ",
              "aggregation": "concatenate"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "589f34cd-852c-46f9-98b6-811622fd96fa",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -280
      ],
      "parameters": {
        "color": 5,
        "width": 320,
        "content": "## Youtube视频摘要"
      },
      "typeVersion": 1
    },
    {
      "id": "08e946b4-824d-4dff-a5f1-ce11d05c8727",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        220
      ],
      "parameters": {
        "height": 120,
        "content": "## 提示"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "bbfb7334-6f7b-4638-9efb-346b318fffee",
  "connections": {
    "SearchAPI": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Summarize",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize": {
      "main": [
        [
          {
            "node": "Summarization Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "SearchAPI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
Pedro Santos

Pedro Santos

@dapedu

I'm a software developer with over 4+ years of experience. I work using software to solve clients problems and I believe n8n is a nice way to solve some problems faster!

外部链接
在 n8n.io 查看

分享此工作流