8
n8n 中文网amn8n.com

产品评论情感分析

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 21 个节点。主要使用 If, Wait, Telegram, EmailSend, HttpRequest 等节点。 使用Gemini AI分析产品评论并生成改进建议

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "DySX4VwXkFHS2hBu",
  "meta": {
    "instanceId": "e2a1d0ec98fd0994972a016020dcf90b56d31fa85f2abd02801701fb8fc45e3d",
    "templateCredsSetupCompleted": true
  },
  "name": "产品评论情感分析",
  "tags": [],
  "nodes": [
    {
      "id": "470cda20-f5d6-42cf-9c7b-c177fc1b668e",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        768,
        16
      ],
      "parameters": {
        "url": "https://api.browseract.com/v2/workflow/run-task",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "workflow_id",
              "value": "53146166844202600"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "x2SDklVkEIBFM56U",
          "name": "BrowserACtaPi"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2,
      "alwaysOutputData": true
    },
    {
      "id": "dded721b-a8c2-45c8-945f-4d3b3c075590",
      "name": "HTTP请求1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1104,
        0
      ],
      "parameters": {
        "url": "https://api.browseract.com/v2/workflow/get-task",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "=task_id",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "x2SDklVkEIBFM56U",
          "name": "BrowserACtaPi"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "53cb4d92-892c-4129-af82-92518437f1ff",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1232,
        224
      ],
      "webhookId": "1d17d26d-ed09-4b4c-b3cc-3ea966dad986",
      "parameters": {
        "unit": "minutes",
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "9448871f-3035-4ef4-8650-b1b5067cb6a5",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        896,
        224
      ],
      "webhookId": "6eb807a9-6f6f-4b28-a4ad-0a7bfb8122e8",
      "parameters": {
        "unit": "minutes",
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "49194dea-48db-4279-b8d1-6894423cf13e",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        896,
        16
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "d48ae258-78a0-4b26-923d-2643b6b774c6",
              "operator": {
                "type": "object",
                "operation": "notExists",
                "singleValue": true
              },
              "leftValue": "={{ $json.error }}",
              "rightValue": ""
            },
            {
              "id": "3967a169-8432-45bd-8f89-08795fd12679",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              },
              "leftValue": "={{ $json.id }}",
              "rightValue": "null"
            }
          ]
        }
      },
      "retryOnFail": false,
      "typeVersion": 2.2
    },
    {
      "id": "72bc73be-c64b-4a41-a94a-6d86e3f9424d",
      "name": "条件判断1",
      "type": "n8n-nodes-base.if",
      "position": [
        1232,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "0347a2a2-eb32-414d-9494-4e648078cf40",
              "operator": {
                "type": "object",
                "operation": "notExists",
                "singleValue": true
              },
              "leftValue": "={{ $json.error }}",
              "rightValue": ""
            },
            {
              "id": "99f31959-6f27-40dd-97c3-6ff611da1e0b",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "finished"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "c2e08eb7-7d25-45c5-a9dc-a023de9df292",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1520,
        -16
      ],
      "parameters": {
        "text": "=from the \n\n{{ $json.output.string }} \n\nyou can see teh reviews it contains list of map like this \n\n[\n{\n\"Name\":\n\"Rating\":\n\"Summary\":\n}\n]\n\nread every single item \"Summary\" Analyze them and after you finished generate improvement recommendations and send them into the output in text \n\ntry to send these recommendations to Telegram and email with further details.",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "7dbc8ef3-42f1-4567-8882-e9ad930e90a5",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -16
      ],
      "parameters": {
        "color": 5,
        "width": 688,
        "height": 432,
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "cb55770c-e747-415a-86b1-7245ec2b3f89",
      "name": "在发送邮件节点中发送邮件",
      "type": "n8n-nodes-base.emailSendTool",
      "position": [
        1728,
        272
      ],
      "webhookId": "0d59c517-f453-4b28-992f-e99bba556f30",
      "parameters": {
        "text": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Text', ``, 'string') }}",
        "options": {},
        "subject": "Recomendation",
        "toEmail": "test@gmail.com",
        "fromEmail": "=test@Test",
        "emailFormat": "text"
      },
      "credentials": {
        "smtp": {
          "id": "iIY5wE8mwPrmrM4E",
          "name": "SMTP account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "476f23b0-a51d-4cb9-9d4f-b0d832dfdd89",
      "name": "在 Telegram 中发送短信",
      "type": "n8n-nodes-base.telegramTool",
      "position": [
        1584,
        272
      ],
      "webhookId": "a2cc10bf-5895-4a74-9419-1ccf134be32a",
      "parameters": {
        "text": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Text', ``, 'string') }}",
        "chatId": "@shoaywbs",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "34LCOs7mfDx5vkSV",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "24c3f5f6-6222-4fba-949a-bbd5f5b8cb86",
      "name": "发送邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2064,
        -16
      ],
      "webhookId": "77c42f78-1d9d-41e0-8486-c0d359f3b04b",
      "parameters": {
        "text": "={{ $('AI Agent').item.json.output }}",
        "options": {},
        "subject": "Recomendation",
        "toEmail": "smj.kshp@gmail.com",
        "fromEmail": "test@test",
        "emailFormat": "text"
      },
      "credentials": {
        "smtp": {
          "id": "iIY5wE8mwPrmrM4E",
          "name": "SMTP account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "8fc634eb-c46e-44d7-bc81-88987496988e",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        -16
      ],
      "parameters": {
        "color": 4,
        "width": 464,
        "height": 432,
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "80e09f34-6ea7-40ed-9b92-22e73f05df5b",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        -16
      ],
      "parameters": {
        "color": 3,
        "width": 384,
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "26ded3f0-8262-47f8-9fe4-4f9074d9ca8e",
      "name": "发送文本消息1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1936,
        -16
      ],
      "webhookId": "c4ea90ed-5510-4eae-a09b-a8505b592b41",
      "parameters": {
        "text": "=Recomendation : \n{{ $json.output }}",
        "chatId": "@shoaywbs",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "34LCOs7mfDx5vkSV",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ad8560fd-df86-4443-bd7a-05969a63f2a0",
      "name": "点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        496,
        16
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0184aa9b-e017-47eb-9043-97715c77de4c",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1440,
        240
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "G8YK0DTLFGi5n0WD",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "daf91d3f-e648-4ab1-a557-99503c134bd9",
      "name": "便利贴-开始",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -208
      ],
      "parameters": {
        "width": 460,
        "height": 600,
        "content": "## 试试看!"
      },
      "typeVersion": 1
    },
    {
      "id": "3e5f6cdb-9721-43e8-88a8-bbd9d43577fa",
      "name": "便利贴-抓取",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -224
      ],
      "parameters": {
        "color": 5,
        "width": 352,
        "height": 200,
        "content": "## 1. 触发产品评论抓取器"
      },
      "typeVersion": 1
    },
    {
      "id": "d718f4b5-ae07-4216-99a4-9436e6502ef8",
      "name": "便利贴-等待",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        -224
      ],
      "parameters": {
        "color": 5,
        "width": 320,
        "height": 200,
        "content": "## 2. 等待抓取完成"
      },
      "typeVersion": 1
    },
    {
      "id": "dd2a6ca3-e361-4597-83b3-1da40e7313a5",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        -224
      ],
      "parameters": {
        "color": 4,
        "width": 464,
        "height": 192,
        "content": "## 3. 使用 AI Agent 分析评论并生成建议"
      },
      "typeVersion": 1
    },
    {
      "id": "b311da33-c74e-4111-925a-c75220bba628",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        -208
      ],
      "parameters": {
        "color": 3,
        "width": 384,
        "height": 176,
        "content": "## 4. 通过电子邮件和 Telegram 发送建议"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "de3a369b-c383-403e-abf0-0612e49b2b0e",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message1": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send email in Send Email": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message in Telegram": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Madame AI

Madame AI

@madame-ai

I’m a PhD in Physics turned AI enthusiast, passionate about uncovering how AI is transforming content creation, business, and daily life.

外部链接
在 n8n.io 查看

分享此工作流