8
n8n 中文网amn8n.com

Vtiger CRM通过DeepSeek LLM回答常见问题

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 If, Agent, ScheduleTrigger, VtigerNode, LmChatDeepSeek 等节点。 使用DeepSeek LLM和LangChain在Vtiger CRM中自动生成FAQ答案

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "chYsh0pJpFivekfQ",
  "meta": {
    "instanceId": "ea2b41532677d34614d95d13d7d2ccb694657be482144baf71e7140df3b2a853",
    "templateCredsSetupCompleted": true
  },
  "name": "Vtiger CRM 通过 DeepSeek LLM 回答常见问题",
  "tags": [],
  "nodes": [
    {
      "id": "4cf51b80-921d-4b76-b368-cb52e4c5b1ae",
      "name": "Vtiger",
      "type": "n8n-nodes-vtiger-crm.vtigerNode",
      "position": [
        -688,
        -224
      ],
      "parameters": {
        "query_field": "select * from Faq where faqstatus='Draft' order by id desc limit 1;"
      },
      "credentials": {
        "vtigerApi": {
          "id": "GDVMGSZb4YFb0cMz",
          "name": "SaadeddinTestCRM"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "56e98463-5a93-438d-acd6-8a47d9e5a03d",
      "name": "Vtiger1",
      "type": "n8n-nodes-vtiger-crm.vtigerNode",
      "position": [
        144,
        -240
      ],
      "parameters": {
        "operation": "update",
        "element_field": "={\n  \"faq_answer\": {{ JSON.stringify($json.output) }},\n\"faqstatus\": \"Published\"\n}",
        "webservice_id_field": "={{ $('Vtiger').item.json.result[0].id }}"
      },
      "credentials": {
        "vtigerApi": {
          "id": "GDVMGSZb4YFb0cMz",
          "name": "SaadeddinTestCRM"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "79457836-4a32-42b8-a21e-a015eb1398b2",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -528,
        -224
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "1a4121a1-3315-48c6-b319-be947242e291",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              },
              "leftValue": "={{ $json.result[0].id }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "75eae6a3-c2f4-4e2e-ae8f-25dfcd836efa",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -256,
        -240
      ],
      "parameters": {
        "text": "=Output as plain text, {{ $json.result[0].question }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.1
    },
    {
      "id": "c74887f0-da3d-4c7c-a87f-84087d37c320",
      "name": "DeepSeek 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        -256,
        -32
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "deepSeekApi": {
          "id": "EJnQFKwyggEiiD7g",
          "name": "DeepSeek account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "784b3e33-e62d-4ef6-80ac-b4d8a02a0b19",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -128,
        -32
      ],
      "parameters": {
        "sessionKey": "={{ $json.result[0].question }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "b2693d93-4f03-4692-8c5f-16e472b98b33",
      "name": "每 n 分钟调度触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -944,
        -224
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 1
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f3987ade-529e-493c-a3a9-e22b2ba10fe8",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        -656
      ],
      "parameters": {
        "width": 816,
        "height": 384,
        "content": "### 🧠 使用 AI 自动回答常见问题草稿"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "bf3f1f93-3711-494c-9544-2f39f6e45ee8",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Vtiger": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vtiger1": {
      "main": [
        []
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Vtiger1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger Every n Minutes": {
      "main": [
        [
          {
            "node": "Vtiger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Ahmed Saadawi

Ahmed Saadawi

@ahmedsaadawi

CRM consultant and automation expert with 15+ years of experience building AI-powered, no-code workflows for sales, support, and operations. Open to collaboration or custom solutions — let’s connect!

外部链接
在 n8n.io 查看

分享此工作流