8
n8n 中文网amn8n.com

使用SearchAPI和OpenAi将YouTube视频转换为LinkedIn帖子

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 If, Set, Webhook, HttpRequest, OpenAi 等节点。 使用SearchAPI和OpenAi将YouTube视频转换为LinkedIn帖子

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "5d70afe618ac8247c5a41a94ab5e7c10b707e0cfb80b2b7f8b9fa734be55d9a3"
  },
  "name": "使用SearchAPI和OpenAi将YouTube视频转换为LinkedIn帖子",
  "tags": [],
  "nodes": [
    {
      "id": "8ea54a76-2d41-4781-ba80-401b6187cd58",
      "name": "Webhook触发器",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -660,
        100
      ],
      "webhookId": "54aaadec-38c2-472b-86d0-461d43f23e78",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "eccd7bc2-90ed-491d-a585-65afba650867",
      "name": "获取 YouTube 转录文本",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -440,
        100
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "d87d676b-9095-4568-b833-3db5affd28fd",
      "name": "检查转录是否存在",
      "type": "n8n-nodes-base.if",
      "position": [
        -220,
        100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "230bf0ca-af65-49c1-8e76-e22d27c89144",
      "name": "为OpenAI准备数据",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "18789af0-26d2-4bd5-aaf2-781d1e256b45",
      "name": "生成LinkedIn帖子",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        220,
        0
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "e4c347c8-55e2-4301-bb2e-e4fb8c1740c4",
      "name": "成功响应",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        580,
        0
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "26177971-748d-454a-8aed-6b5d36ca1bc4",
      "name": "错误响应 - 无转录",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        0,
        200
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "ddfbd994-9172-4bdb-8cf1-81f2ad7fafb3",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -680,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "32a93990-1122-4f26-80a4-f74c5fb6609d",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c55453e6-df63-4d95-ba2f-97ec05305856",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Get YouTube Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate LinkedIn Post": {
      "main": [
        [
          {
            "node": "Success Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get YouTube Transcript": {
      "main": [
        [
          {
            "node": "Check Transcript Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Transcript Exists": {
      "main": [
        [
          {
            "node": "Prepare Data for OpenAI",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error Response - No Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Data for OpenAI": {
      "main": [
        [
          {
            "node": "Generate LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Gerald Denor

Gerald Denor

@dominixai

Gerald Akhidenor is an AI Automation Lead Creative with 5 years of experience in AI automation consultancy. He specializes in n8n and API integrations, driving innovative automation solutions. As founder of DominixAI, Gerald combines creative vision and technical expertise to streamline processes and boost efficiency through cutting-edge AI technologies. Website: https://dominixai.com JobMonkey: https://trafficabc.com/jobmonkey-application-generator/

外部链接
在 n8n.io 查看

分享此工作流