8
n8n 中文网amn8n.com

查找Reddit潜在客户并使用Llama3 AI和Google表格生成个性化回复

中级

这是一个AI, Marketing领域的自动化工作流,包含 14 个节点。主要使用 If, Set, Code, Reddit, GoogleSheets 等节点,结合人工智能技术实现智能自动化。 查找Reddit潜在客户并使用Llama3 AI和Google表格生成个性化回复

前置要求
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "3fb03f7852f4e2f7aeee7e1edbc7b11d424da3c67ffc7980f5d45ea0e00b1fa9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "6e6dbef8-5068-4e08-b5c9-356bfa92bacd",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1160,
        2750
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7c5387d7-c96f-4d1d-b35f-edb3687a8a69",
      "name": "获取现有帖子1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -720,
        2650
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 4.5
    },
    {
      "id": "bcfab50a-cb46-4546-8351-9f15f8fddcce",
      "name": "记录无关帖子",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        756,
        2500
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "da43e4b5-90cc-4e19-a793-1ff0edd0b379",
      "name": "记录相关帖子",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        756,
        2850
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "af58b686-b86d-4484-99b8-b575d479fe3e",
      "name": "发布Reddit评论",
      "type": "n8n-nodes-base.reddit",
      "position": [
        976,
        2950
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "136b95ed-15f1-46dc-8e37-c1864cb4c206",
      "name": "帖子是否相关?",
      "type": "n8n-nodes-base.if",
      "position": [
        536,
        2500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3015d949-5bea-48df-b3d2-4d39ec8f220c",
      "name": "解析AI响应",
      "type": "n8n-nodes-base.code",
      "position": [
        316,
        2500
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5a7e3ca1-6beb-438f-ae7b-c41b0c456758",
      "name": "Ollama聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        -40,
        2740
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1e9b7447-d5b5-405c-854d-b5e0c3b877dd",
      "name": "AI相关性分析",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -60,
        2400
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "c35aa9a2-d727-4e4a-a7f6-18129b8c758f",
      "name": "逐个处理帖子",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -280,
        2750
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "75122d4c-687b-468b-98d6-66cc80dca814",
      "name": "筛选新帖子",
      "type": "n8n-nodes-base.code",
      "position": [
        -500,
        2750
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a46dd2d7-8843-4999-bf7c-2e8c209fae48",
      "name": "处理帖子字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -720,
        2850
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3.4
    },
    {
      "id": "6c37690a-b6fd-409c-b94b-cb056197cc08",
      "name": "获取Reddit帖子",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -940,
        2750
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f7279c5b-f67b-494f-bf7b-720c664993d8",
      "name": "便利贴",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1260,
        2140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Filter New Posts": {
      "main": [
        [
          {
            "node": "Process One Post at a Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Reddit Posts": {
      "main": [
        [
          {
            "node": "Process Post Fields",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Existing Posts1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Post Relevant?": {
      "main": [
        [
          {
            "node": "Log Relevant Post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Irrelevant Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Relevant Post": {
      "main": [
        [
          {
            "node": "Post Reddit Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Relevance Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response": {
      "main": [
        [
          {
            "node": "Is Post Relevant?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Existing Posts1": {
      "main": [
        [
          {
            "node": "Filter New Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Irrelevant Post": {
      "main": [
        [
          {
            "node": "Process One Post at a Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Reddit Comment": {
      "main": [
        [
          {
            "node": "Process One Post at a Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Post Fields": {
      "main": [
        [
          {
            "node": "Filter New Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Relevance Analysis": {
      "main": [
        [
          {
            "node": "Parse AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process One Post at a Time": {
      "main": [
        [
          {
            "node": "Get Reddit Posts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Relevance Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get Reddit Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, 营销

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流