8
n8n 中文网amn8n.com

Reddit情绪分析

中级

这是一个Market Research, AI Summarization领域的自动化工作流,包含 12 个节点。主要使用 Code, Reddit, Webhook, SplitOut, SplitInBatches 等节点。 使用Deepseek AI分析Reddit内容和评论的情感倾向

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "TEMPLATE_WORKFLOW_ID",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Reddit情绪分析",
  "tags": [],
  "nodes": [
    {
      "id": "b38ce2cf-0db8-448f-9447-41fa2ad7deb0",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "22a4c3e7-7013-4628-8df1-2398aad3ff80",
      "name": "获取帖子中的多条评论",
      "type": "n8n-nodes-base.reddit",
      "position": [
        100,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "83bb326b-ad7e-4c30-bad3-f2a2a2a51300",
      "name": "获取多个帖子",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -240,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1d211962-4178-4454-8c80-1c00bbdd13e8",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -400,
        80
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5c8e928b-1eb7-4e81-8d8c-6adc79914c5c",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -60,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6f00526d-b220-44a2-8cca-8c2284b7d097",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        280,
        80
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "41d1795e-14e4-4a20-8852-c432d875833d",
      "name": "OpenRouter聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        720,
        260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dc60016c-55bd-48b1-b368-abe79c939055",
      "name": "结构化数据生成器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        820,
        100
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "69a475a7-631d-41c9-aeb5-4ac09ebf5536",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "29ed9837-4dca-4c7b-9110-6c118cf9d914",
      "name": "响应Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1260,
        100
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "9e595a99-ca1e-47f1-b3c1-a3acaea64546",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "400088ab-5276-4554-940e-1d98448eb0e9",
      "name": "情绪分析器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        500,
        100
      ],
      "parameters": {},
      "typeVersion": 1.7
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "NEW_VERSION_ID",
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Get many posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get many comments in a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many posts": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          },
          {
            "node": "Sentiment Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment Analyzer": {
      "main": [
        [
          {
            "node": "Structured Data Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Data Generator",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Sentiment Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Data Generator": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many comments in a post": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 市场调研, AI 摘要总结

需要付费吗?

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

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

适合有一定经验的用户,包含 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 查看

分享此工作流