8
n8n 中文网amn8n.com

潜在客户情感分类器

中级

这是一个AI, Marketing领域的自动化工作流,包含 11 个节点。主要使用 Set, Merge, Webhook, Supabase, WhatsApp 等节点,结合人工智能技术实现智能自动化。 使用 Google Gemini 分类潜在客户情感,并通过 Typeform 和 Supabase 发送 WhatsApp 回复

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Supabase URL 和 API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "47132c409ea4cfc382a6c48656c8a35b5da4c1fa7ef892882b424c42ae8a05b2",
    "templateCredsSetupCompleted": true
  },
  "name": "潜在客户情感分类器",
  "tags": [],
  "nodes": [
    {
      "id": "e74de2ca-d3e1-499b-893c-972bb6bd9ad0",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        760,
        580
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "01b4b86b-8798-405e-93c9-5881f3d27d20",
      "name": "接收新潜在客户 (Typeform)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        340,
        360
      ],
      "webhookId": "20426827-714d-4a48-ab87-4a3216665bde",
      "parameters": {
        "path": "lead-webhook",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "b4007cc1-6332-42d3-a7d1-12db9bc35fec",
      "name": "准备潜在客户数据",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        360
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3.4
    },
    {
      "id": "d274436b-f5f6-4c13-948d-f1e2f822e85c",
      "name": "情感分类 (Gemini 或其他 AI 模型)",
      "type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
      "position": [
        780,
        360
      ],
      "parameters": {
        "options": {},
        "inputText": "={{$json[\"message\"] || $json[\"mensagem\"] || $json[\"resposta\"]}}\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1322317f-fbc6-4a9d-a764-f6dc68b7a02b",
      "name": "存储高意向潜在客户",
      "type": "n8n-nodes-base.supabase",
      "position": [
        1156,
        160
      ],
      "parameters": {},
      "credentials": {
        "supabaseApi": {
          "id": "",
          "name": ""
        }
      },
      "typeVersion": 1
    },
    {
      "id": "856a57e9-4d21-4a7c-9dd4-90d5df595468",
      "name": "存储中性潜在客户",
      "type": "n8n-nodes-base.supabase",
      "position": [
        1156,
        360
      ],
      "parameters": {},
      "credentials": {
        "supabaseApi": {
          "id": "",
          "name": ""
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1d3ab942-66f3-4aff-a46e-7cc040e7f6db",
      "name": "存储低意向潜在客户",
      "type": "n8n-nodes-base.supabase",
      "position": [
        1156,
        560
      ],
      "parameters": {},
      "credentials": {
        "supabaseApi": {
          "id": "",
          "name": ""
        }
      },
      "typeVersion": 1
    },
    {
      "id": "20839991-6176-4485-98fe-1d188ac552f1",
      "name": "合并潜在客户数据",
      "type": "n8n-nodes-base.merge",
      "position": [
        1376,
        360
      ],
      "parameters": {
        "numberInputs": 3
      },
      "typeVersion": 3.1
    },
    {
      "id": "fa4ac251-30a5-4ab4-8bd3-54036b810648",
      "name": "发送 WhatsApp 消息",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1596,
        360
      ],
      "webhookId": "b18f6b54-22e1-4989-bbf8-301c1be7d566",
      "parameters": {
        "operation": "send",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "1c49034d-c7fe-4f1f-acab-01a1efe0f474",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        140
      ],
      "parameters": {
        "width": 480,
        "height": 600,
        "content": "## 潜在客户情感分类器 – 使用 AI 对传入潜在客户进行分类并通过 WhatsApp 回复"
      },
      "typeVersion": 1
    },
    {
      "id": "e8d20736-9419-445e-ab25-dd63a7605cf2",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        720
      ],
      "parameters": {
        "content": "## 提示建议"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Store Hot Lead": {
      "main": [
        [
          {
            "node": "Combine Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Cold Lead": {
      "main": [
        [
          {
            "node": "Combine Lead Data",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Combine Lead Data": {
      "main": [
        [
          {
            "node": "Send WhatsApp Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Lead Data": {
      "main": [
        [
          {
            "node": "Classify Sentiment (Gemini or other ai model)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Neutral Lead": {
      "main": [
        [
          {
            "node": "Combine Lead Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Classify Sentiment (Gemini or other ai model)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Receive New Lead (Typeform)": {
      "main": [
        [
          {
            "node": "Prepare Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Sentiment (Gemini or other ai model)": {
      "main": [
        [
          {
            "node": "Store Hot Lead",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store Neutral Lead",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store Cold Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
Danielle Gomes

Danielle Gomes

@daniellegomes

Product Designer | n8n Automation | Practical AI Solutions I turn ideas into smart digital experiences focused on efficiency and personalization. Specialized in building solutions that combine design, n8n workflows, and AI to scale products, optimize processes, and maximize impact.

外部链接
在 n8n.io 查看

分享此工作流