8
n8n 中文网amn8n.com

使用AI生成评论和邮件摘要在Reddit上推广YouTube视频

高级

这是一个AI, Marketing领域的自动化工作流,包含 29 个节点。主要使用 If, Set, Code, Wait, Gmail 等节点,结合人工智能技术实现智能自动化。 使用AI生成评论和邮件摘要在Reddit上推广YouTube视频

前置要求
  • Google 账号和 Gmail API 凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "5b9aff0ecdeb17791c04b93eac72e39e69151cfa63708980e5d936abe9308b8c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "98caf03b-727f-4779-83f9-d8c17d51f46b",
      "name": "分离输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1220,
        2020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5210e93e-2a58-4f4a-893e-406d3501e51a",
      "name": "生成邮件HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        620,
        1700
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2
    },
    {
      "id": "6172b98f-7751-486b-b8d0-de8882408288",
      "name": "追加数据",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        820,
        2060
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 4.5
    },
    {
      "id": "6afcde44-e049-4155-bd4d-6d9746a6a304",
      "name": "移除重复项",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -780,
        2020
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9490a603-0834-4230-804c-31db3646b20b",
      "name": "表单",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1980,
        2020
      ],
      "webhookId": "1074bc53-5112-49c6-9c2c-420382821ddd",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "75cbd512-2f2b-4fbc-bcb0-80963fffa788",
      "name": "按条件筛选帖子",
      "type": "n8n-nodes-base.if",
      "position": [
        -580,
        2020
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "93c6947a-d55a-465e-a38e-bf420666c765",
      "name": "发送到您的邮箱",
      "type": "n8n-nodes-base.gmail",
      "position": [
        820,
        1700
      ],
      "webhookId": "80ad1c97-6cea-4bec-a8aa-df9e9a0f3e9a",
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.1
    },
    {
      "id": "5a894afe-1a0c-4502-a4f5-804de5e759ac",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        1580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "637a82f4-1224-43f2-b2c4-8e047e494d71",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        1880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3ea7a734-93bf-41a6-960f-88f709e740cb",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1820,
        1880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a91e0e92-916c-4033-b066-ad58b411b727",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1400,
        2240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e5441a15-0875-4f06-b833-6a4162a75bb9",
      "name": "AI大脑",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -1640,
        2240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c44e399a-c3bf-41d7-b182-07e1a5985b51",
      "name": "Reddit",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1020,
        2020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "34008ba3-3532-4216-a4ed-0d93bc39264e",
      "name": "YouTube",
      "type": "n8n-nodes-base.youTube",
      "position": [
        -1780,
        2020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b18b4be4-e9f0-483f-b66b-d991be0139cd",
      "name": "YT关键词分析师",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1580,
        2020
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "255d821a-66a4-4477-922f-9336f4a823a2",
      "name": "大脑",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        60,
        2260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "976a643f-d0bf-41bb-bb10-8f6b01bfdf63",
      "name": "保留特定字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -360,
        2000
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "45d870a3-80e4-40d3-8d45-13cc14fdd94a",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -120,
        2000
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "defbe032-8dbd-4d6e-a5ec-d7d9e314270c",
      "name": "等待 5 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        640,
        2060
      ],
      "webhookId": "10103777-049e-47b0-86df-8a7d77a06968",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "945fe4f4-1903-4d81-bf40-1e82b48e7997",
      "name": "结构化输出",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1380,
        2380
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d9d1b323-7314-48c6-bbf3-7b320ab2b16e",
      "name": "社交媒体帖子评论",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueRegularOutput",
      "maxTries": 2,
      "position": [
        1140,
        2160
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.9,
      "waitBetweenTries": 5000
    },
    {
      "id": "9403646b-b87e-471f-8580-5e00897eafb0",
      "name": "存储人性化评论",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1520,
        2160
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 4.5
    },
    {
      "id": "9ae1c2c1-d8f5-4ca5-8849-c867cbbf0646",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        980,
        2040
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5135a6b2-d576-4cee-8e4d-486776dc2993",
      "name": "大脑1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1040,
        2380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cdfd2a1a-951c-487f-bccf-984d05337df0",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        360,
        1700
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 2.2
    },
    {
      "id": "cbfeb902-ada1-43a8-afd0-cc239b9f1ef2",
      "name": "相关?",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        2060
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "bfda48b9-5e44-4f99-b5a0-5e031de74d04",
      "name": "此帖子是否相关?",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueRegularOutput",
      "maxTries": 2,
      "position": [
        120,
        2060
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.9,
      "waitBetweenTries": 5000
    },
    {
      "id": "db745a22-c506-4c6f-b7ff-da428476b1a7",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        340,
        2260
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e904f2c5-9a48-49ce-a380-342fe6d7b704",
      "name": "获取Reddit帖子及建议回复",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        160,
        1700
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 4.5
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Generate Email HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form": {
      "main": [
        [
          {
            "node": "YouTube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brain": {
      "ai_languageModel": [
        [
          {
            "node": "Is this post relevant?",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Brain1": {
      "ai_languageModel": [
        [
          {
            "node": "Social Post Comment",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Reddit": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube": {
      "main": [
        [
          {
            "node": "YT Keyword Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Brain": {
      "ai_languageModel": [
        [
          {
            "node": "YT Keyword Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Reddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "relevant?": {
      "main": [
        [
          {
            "node": "Wait 5 sec",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 sec": {
      "main": [
        [
          {
            "node": "Append Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Data": {
      "main": [
        [
          {
            "node": "Social Post Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Get Reddit Posts & Proposed Responses",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Is this post relevant?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Filter Posts by Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "YT Keyword Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured_Output": {
      "ai_outputParser": [
        [
          {
            "node": "Social Post Comment",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "YT Keyword Analyst": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Email HTML": {
      "main": [
        [
          {
            "node": "Send to your email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keep Certain Fields": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Post Comment": {
      "main": [
        [
          {
            "node": "Store Humanized Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is this post relevant?": {
      "main": [
        [
          {
            "node": "relevant?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Humanized Comment": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts by Criteria": {
      "main": [
        [
          {
            "node": "Keep Certain Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Is this post relevant?",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get Reddit Posts & Proposed Responses": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
高级
节点数量29
分类2
节点类型16
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
外部链接
在 n8n.io 查看

分享此工作流