8
n8n 中文网amn8n.com

自动向新Vtiger潜在客户发送欢迎WhatsApp消息

中级

这是一个Lead Nurturing领域的自动化工作流,包含 7 个节点。主要使用 If, ScheduleTrigger, VtigerNode, EvolutionApi 等节点。 通过Evolution API WhatsApp自动向Vtiger CRM潜在客户发送欢迎消息

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "ykXuNTlTy4GTDjOE",
  "meta": {
    "instanceId": "ea2b41532677d34614d95d13d7d2ccb694657be482144baf71e7140df3b2a853",
    "templateCredsSetupCompleted": true
  },
  "name": "自动向新 Vtiger 潜在客户发送欢迎 WhatsApp 消息",
  "tags": [],
  "nodes": [
    {
      "id": "9eb3438a-721e-47b1-b05d-fbeb6e6a53f0",
      "name": "每 n 分钟定时触发",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -816,
        -208
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 1
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "7d90f8b4-a984-4532-8378-3188d80d4ebe",
      "name": "如果有数据返回",
      "type": "n8n-nodes-base.if",
      "position": [
        -368,
        -208
      ],
      "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": "48a1a508-3e84-4875-b34e-f5bc4a1ec6a3",
      "name": "无操作,不执行任何操作",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -80,
        -16
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "63514400-625b-4bd6-bbb3-8892e671d671",
      "name": "发送文本",
      "type": "n8n-nodes-evolution-api.evolutionApi",
      "position": [
        128,
        -352
      ],
      "parameters": {
        "resource": "messages-api",
        "remoteJid": "={{ $json.result[0].phone }}",
        "messageText": "=Hi {{ $json.result[0].firstname }} {{ $json.result[0].lastname }} 😊,\n\nWe have received your interest with our services and we well contact you soon.\n\nHave a nice day 🙏💐",
        "instanceName": "Ahmed560",
        "options_message": {}
      },
      "credentials": {
        "evolutionApi": {
          "id": "OfCJPxnswdkJBefM",
          "name": "Evolution account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7c73ab05-6c59-4f93-b354-940a2ad0e05d",
      "name": "VtigerCRM 获取最新潜在客户",
      "type": "n8n-nodes-vtiger-crm.vtigerNode",
      "position": [
        -592,
        -208
      ],
      "parameters": {
        "query_field": "select * from Leads where cf_1090!=1 order by id desc limit 1;"
      },
      "credentials": {
        "vtigerApi": {
          "id": "GDVMGSZb4YFb0cMz",
          "name": "SaadeddinTestCRM"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "cecfb193-03b1-47ff-8849-d4c00a3f0bc6",
      "name": "VtigerCRM 更新潜在客户标记为 WhatsApp 已发送",
      "type": "n8n-nodes-vtiger-crm.vtigerNode",
      "position": [
        128,
        -176
      ],
      "parameters": {
        "operation": "update",
        "element_field": "={\n  \"cf_1090\": \"1\"\n}",
        "webservice_id_field": "={{ $json.result[0].id }}"
      },
      "credentials": {
        "vtigerApi": {
          "id": "GDVMGSZb4YFb0cMz",
          "name": "SaadeddinTestCRM"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a68394bd-0580-4705-b8c8-0e5f0c033d78",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        -528
      ],
      "parameters": {
        "width": 592,
        "height": 304,
        "content": "### 🤖 自动向新 Vtiger 潜在客户发送欢迎 WhatsApp 消息"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "24911a81-1f5f-4358-af02-d6a399d9a5e0",
  "connections": {
    "VtigerCRM get Latest Lead": {
      "main": [
        [
          {
            "node": "If there's a data returned",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If there's a data returned": {
      "main": [
        [
          {
            "node": "VtigerCRM Update Lead to  Mark as Whatsapp Sent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Enviar texto",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger Every n Minutes": {
      "main": [
        [
          {
            "node": "VtigerCRM get Latest Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "VtigerCRM Update Lead to  Mark as Whatsapp Sent": {
      "main": [
        []
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客户培育

需要付费吗?

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

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

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

分享此工作流