8
n8n 中文网amn8n.com

使用 Dumpling AI 和 GPT-4o 从 YouTube 视频字幕自动创建播客

初级

这是一个AI, Marketing领域的自动化工作流,包含 5 个节点。主要使用 Airtable, HttpRequest, OpenAi, RssFeedReadTrigger 等节点,结合人工智能技术实现智能自动化。 使用 Dumpling AI 和 GPT-4o 从 YouTube 字幕自动创建播客

前置要求
  • Airtable API Key
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "I4j3HnFGPa5UWkIO",
  "meta": {
    "instanceId": "a1ae5c8dc6c65e674f9c3947d083abcc749ef2546dff9f4ff01de4d6a36ebfe6",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 Dumpling AI 和 GPT-4o 从 YouTube 视频字幕自动创建播客",
  "tags": [],
  "nodes": [
    {
      "id": "d95bcf10-2bb4-4bfd-a8ad-4128a792deb8",
      "name": "通过 RSS 监视新的 YouTube 视频",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -500,
        -20
      ],
      "parameters": {
        "feedUrl": "https://rss.app/feeds/Vw076Uzh7bIinpci.xml",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a5492dab-f400-48d9-abd7-6c832d9d6816",
      "name": "使用 Dumpling AI 从 YouTube 视频获取字幕",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -280,
        -20
      ],
      "parameters": {
        "url": "https://app.dumplingai.com/api/v1/get-youtube-transcript",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"videoUrl\": \"{{ $json.link }}\",\n  \"preferredLanguage\": \"en\"\n}\n",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "RLFzAcGRepr5eXZB",
          "name": "Dumpling AI-n8n"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "bce2bb18-c9ee-4165-ac27-5d300e354c7e",
      "name": "使用 GPT-4o 将字幕转换为播客脚本",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -60,
        -20
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "chatgpt-4o-latest",
          "cachedResultName": "CHATGPT-4O-LATEST"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=Instructions:\nYou are a professional transcript editor and podcast summarizer. For the transcript below, complete these tasks:\n\nLabel each speaker (e.g., Speaker 1:) and remove all filler words such as \"um,\" \"uh,\" \"you know,\" \"like,\" \"basically,\" \"actually,\" \"so.\"\n\nCombine the cleaned speaker labels and their text into one single string, clearly formatted.\n\nSummarize the key points of the conversation in 2–4 concise sentences.\n\nExtract or infer a short, relevant title based on the content.\n\nReturn your response strictly in the following JSON format:\n{\n  \"title\": \"Relevant podcast title here\",\n  \"cleaned_transcript\": \"Speaker 1: Cleaned text. Speaker 2: Cleaned text. (Continue in this format.)\",\n  \"summary\": \"Concise summary of the key points here.\"\n}"
            },
            {
              "content": "=\nHere’s the transcript:{{ $json.transcript }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "id": "dd8NvMC6rvx8RITo",
          "name": "OpenAi account 2"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "7782b5a6-c842-41be-a5c5-9eaa28a0abd0",
      "name": "将播客脚本和元数据保存到 Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        300,
        -20
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://airtable.com/appPSvSKdA6075xJC",
          "cachedResultName": "Testing n8n"
        },
        "table": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://airtable.com/appPSvSKdA6075xJC/tbl4MDOqdNZweqXU9",
          "cachedResultName": "podcast"
        },
        "columns": {
          "value": {
            "Title": "={{ $json.message.content.title }}",
            "summary": "={{ $json.message.content.summary }}",
            "podcast transcript": "={{ $json.message.content.cleaned_transcript }}"
          },
          "schema": [
            {
              "id": "Title",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "Title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "podcast transcript",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "podcast transcript",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "summary",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "summary",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "create"
      },
      "credentials": {
        "airtableTokenApi": {
          "id": "H8PVkBgUPCcUhhRC",
          "name": "Airtable Personal Access Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "af143efd-be64-48fc-a405-173575289ed3",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        -220
      ],
      "parameters": {
        "width": 640,
        "height": 280,
        "content": "### 🎙️ 从 YouTube 视频自动创建播客脚本"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0c39768f-93c9-42d7-8b9f-ca4e0ede2312",
  "connections": {
    " Watch for New YouTube Video via RSS": {
      "main": [
        [
          {
            "node": "Get Transcript from YouTube Video using Dumpling AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Transcript from YouTube Video using Dumpling AI": {
      "main": [
        [
          {
            "node": "Transform Transcript into Podcast Script using GPT-4o",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transform Transcript into Podcast Script using GPT-4o": {
      "main": [
        [
          {
            "node": "Save Podcast Script and Metadata to Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

初级 - 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
初级
节点数量5
分类2
节点类型5
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

外部链接
在 n8n.io 查看

分享此工作流