8
n8n 中文网amn8n.com

使用 Gemini AI、Google Sheets 和 WhatsApp/Telegram 自动化总结 YouTube 视频

中级

这是一个Content Creation, AI Summarization领域的自动化工作流,包含 11 个节点。主要使用 Telegram, WhatsApp, FormTrigger, GoogleSheets, TelegramTrigger 等节点。 基于 Gemini AI 的 YouTube 视频摘要器,支持发送至 WhatsApp、Telegram 和 Google Sheets

前置要求
  • Telegram Bot Token
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "EHgalKjspdiaryVb",
  "meta": {
    "instanceId": "3caab7a077d6a24bf913833250143556c3033c05ff2ea30885e13d0164c0cec2",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 Gemini AI、Google Sheets 和 WhatsApp/Telegram 自动化总结 YouTube 视频",
  "tags": [],
  "nodes": [
    {
      "id": "b804c11e-c49b-45c5-b977-30e674ce58f1",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -144,
        0
      ],
      "webhookId": "c6dd6bc2-d514-4b76-8633-f846ed6af94e",
      "parameters": {
        "options": {},
        "formTitle": "Youtube video summerizer",
        "formFields": {
          "values": [
            {
              "fieldLabel": "YouTube Link",
              "placeholder": "Paste YouTube Link",
              "requiredField": true
            }
          ]
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "0b9cb287-0b77-44dc-9fab-40e72d150624",
      "name": "向模型发送消息",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        192,
        0
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "models/gemini-2.0-flash",
          "cachedResultName": "models/gemini-2.0-flash"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "model",
              "content": "=You are YouTube Summarizer AI, an assistant specialized in analyzing YouTube videos and returning clear, English-only outputs.\nYou have two modes of operation:\n\nSummarize Video – Provide a structured, concise, and well-written summary of the video in English, regardless of the original language (Hindi, English, or mixed).\n\nHighlight key points, insights, or steps in the video.\n\nKeep summaries clear, neutral, and accurate.\n\nFull Transcript – Provide the complete transcript of the video, translated into English.\n\nMaintain the meaning and tone of the original content.\n\nKeep formatting clean and readable.\n\nRules & Constraints:\n\nInput video: {{ $json['YouTube Link'] }}\n\nMaximum video length: 30 minutes. Do not process videos longer than this.\n\nAlways output in English only, no matter the source language.\n\nBe accurate, concise, and neutral (no personal opinions or assumptions).\n\nFor summaries: keep them structured with bullet points or sections for clarity.\n\nFor transcripts: ensure coherent translation (not word-by-word literal). "
            },
            {
              "content": "=Please provide the YouTube video link (max 30 minutes).  \nI will return the full transcript of the video translated into English.  \n\n👉 Enter YouTube Link here:{{ $json['YouTube Link'] }}\n"
            }
          ]
        }
      },
      "credentials": {
        "googlePalmApi": {
          "id": "sSV7NS6JXz0qjL2i",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1c557373-5268-4cea-945a-8c295c9aa1d5",
      "name": "将转录文本更新到表格中",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        688,
        0
      ],
      "parameters": {
        "columns": {
          "value": {
            "row_number": 2
          },
          "schema": [
            {
              "id": "summaries",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "summaries",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Full Transcipt",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Full Transcipt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "row_number",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": true,
              "required": false,
              "displayName": "row_number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "row_number"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/xyz",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1FWNyBdrWpbuheQj26dg3NlD4B-vTmm0jwXMvpJQMqEA",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/xyz",
          "cachedResultName": "CONTENT CREATION"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "2cLBwxQBfcaJ1DCN",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "cb5207e0-a349-4f43-9c59-d78cc80d5cd0",
      "name": "发送消息",
      "type": "n8n-nodes-base.whatsApp",
      "disabled": true,
      "position": [
        688,
        -160
      ],
      "webhookId": "8302977d-89ed-4cfa-84ef-fa3909d0449d",
      "parameters": {
        "textBody": "fvv",
        "operation": "send",
        "additionalFields": {},
        "recipientPhoneNumber": "vcv"
      },
      "credentials": {
        "whatsAppApi": {
          "id": "vGdfY4x4YcxJfnDt",
          "name": "WhatsApp account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "82cb80c5-bde9-44f3-8224-92f1f22df70d",
      "name": "WhatsApp 触发器",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "disabled": true,
      "position": [
        -144,
        -144
      ],
      "webhookId": "a806a655-3335-443b-a03d-87277d0003b1",
      "parameters": {
        "options": {},
        "updates": [
          "messages"
        ]
      },
      "typeVersion": 1
    },
    {
      "id": "b7c9f43e-dfdb-4a94-940a-e69cfb16df47",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "disabled": true,
      "position": [
        -144,
        160
      ],
      "webhookId": "1605aa0e-b6f8-4711-9ddc-a4dc4a6726e6",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "5LtO7Czo8SgUF6nj",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "38dbd639-a631-41fe-a001-6a3898a06101",
      "name": "发送文本消息",
      "type": "n8n-nodes-base.telegram",
      "disabled": true,
      "position": [
        688,
        176
      ],
      "webhookId": "cbec07cd-d5d2-4726-bc0f-8dd4d0994ec3",
      "parameters": {
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "5LtO7Czo8SgUF6nj",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "56b12f76-1524-4078-ad6d-222c3eea6ec8",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -144
      ],
      "parameters": {
        "width": 432,
        "height": 432,
        "content": "### 此工作流可以通过三种方式启动(触发器):"
      },
      "typeVersion": 1
    },
    {
      "id": "3561ea8d-176c-440f-bf0f-559b13069ed9",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -160
      ],
      "parameters": {
        "color": 3,
        "width": 384,
        "height": 432,
        "content": "### 工作流可以将结果发送到三个主要输出节点(端点):"
      },
      "typeVersion": 1
    },
    {
      "id": "bcd694e8-8077-4e7c-a08b-faa21ce2d29a",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        -608
      ],
      "parameters": {
        "color": 6,
        "width": 416,
        "height": 736,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6cd09189-6aa0-4907-abb1-cfa1d94d7a4c",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        224
      ],
      "parameters": {
        "width": 512,
        "height": 256,
        "content": "# 注意:"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e6c0c755-17b4-4190-a866-7cd90ddc909f",
  "connections": {
    "Message a model": {
      "main": [
        [
          {
            "node": "Update transcript into Sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Yashraj singh sisodiya

Yashraj singh sisodiya

@theyashsisodiya

an AI automation enthusiast.

外部链接
在 n8n.io 查看

分享此工作流