8
n8n 中文网amn8n.com

使用GPT-4o-mini进行Pipedrive潜在客户自然语言问答

中级

这是一个AI RAG, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 PipedriveTool, Agent, ChatTrigger, LmChatOpenAi 等节点。 使用GPT-4o-mini进行Pipedrive潜在客户自然语言问答

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "3a42f460-754a-4d50-b5f7-4f550c9481d2",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -80,
        368
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4l6TDfLZVFS24g3X",
          "name": "OpenAi account 4"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "74a26fd1-a743-4495-902b-1f22a753eb30",
      "name": "Pipedrive 工具",
      "type": "n8n-nodes-base.pipedriveTool",
      "position": [
        480,
        416
      ],
      "parameters": {
        "filters": {},
        "resource": "lead",
        "operation": "getAll",
        "returnAll": true
      },
      "credentials": {
        "pipedriveApi": {
          "id": "Tk6DUhlSCIuPlg0c",
          "name": "Pipedrive account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bbb5baca-6411-4d41-8530-3aff0a228513",
      "name": "与 Slack 聊天",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -256,
        -48
      ],
      "webhookId": "d38a0072-420b-4de8-86b6-03a8f9a6e254",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.3
    },
    {
      "id": "0983fb7e-b445-4018-b104-2c3047483a0e",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        -240
      ],
      "parameters": {
        "width": 400,
        "height": 816,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "37d66b1a-be0d-4d41-b334-357228086e3b",
      "name": "便签51",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        -240
      ],
      "parameters": {
        "color": 7,
        "width": 1136,
        "height": 816,
        "content": "# 📊 Pipedrive 潜在客户聊天机器人 (n8n + OpenAI)"
      },
      "typeVersion": 1
    },
    {
      "id": "97f075a0-1bdb-4846-a5f8-c026cba0d3b3",
      "name": "Pipedrive 潜在客户聊天机器人",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        32,
        -48
      ],
      "parameters": {
        "options": {
          "systemMessage": "You are a helpful assistant.\nFor all questions, get the lead conversation history from the Pipedrive tool.\nDo not make anything up. Use only the data available in the Pipedrive conversation history tool to answer questions."
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "c9cf44b3-eb53-4dff-a33a-6ff8abf5a8b0",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        208
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 304,
        "content": "### 1️⃣ 设置 OpenAI 连接"
      },
      "typeVersion": 1
    },
    {
      "id": "14df1699-db12-4e70-8590-aacad8bd97a1",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        -16
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 544,
        "content": "### 2️⃣ 连接 Pipedrive"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Pipedrive Tool": {
      "ai_tool": [
        [
          {
            "node": "Pipedrive Leads Chatbot",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Chat with Slack": {
      "main": [
        [
          {
            "node": "Pipedrive Leads Chatbot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Pipedrive Leads Chatbot",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - AI RAG 检索增强, 多模态 AI

需要付费吗?

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

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

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

作者
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

外部链接
在 n8n.io 查看

分享此工作流