8
n8n 中文网amn8n.com

使用GHL、VAPI和Twilio用AI代理取代您的呼叫中心

高级

这是一个Lead Nurturing, AI Chatbot领域的自动化工作流,包含 28 个节点。主要使用 If, Set, Code, Wait, HighLevel 等节点。 使用 GoHighLevel (GHL)、VAPI 和 Twilio 用 AI 代理取代您的呼叫中心

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "2LmDZfiiWbiwfr3O",
  "meta": {
    "instanceId": "4655497243705f66b47991d9dbe9a9222e8444b5c2782e466f572ff93867cb4c"
  },
  "name": "使用GHL、VAPI和Twilio用AI代理取代您的呼叫中心",
  "tags": [
    {
      "id": "7ASMGI4lVr4Eo8rL",
      "name": "tuguidragos.com",
      "createdAt": "2025-08-23T19:10:40.177Z",
      "updatedAt": "2025-08-23T19:10:40.177Z"
    }
  ],
  "nodes": [
    {
      "id": "87c2c60a-51e9-4770-b345-609654a8e61a",
      "name": "步骤1 - 创建客户",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1568,
        416
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "eac43602-e32b-483b-b083-1e7f3a521343",
      "name": "步骤2 - 发起呼叫",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2032,
        416
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b5f84758-e905-4318-aac1-ef40ee0a3f4d",
      "name": "步骤3 - 获取呼叫数据",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        48,
        800
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "76b0d242-7903-489d-a881-92913f0f0047",
      "name": "步骤4 - 设置(解析呼叫结果)",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        800
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "bd6e0c9d-40b9-46a5-a1f5-df4419b20ab9",
      "name": "步骤5 - 如果(呼叫已接听?)",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        800
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7890936a-3524-439e-ad9b-470b432f0108",
      "name": "设置尝试次数+初始状态",
      "type": "n8n-nodes-base.code",
      "position": [
        1552,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "87d1c39d-93e8-4233-af70-d89b9f5cd0f8",
      "name": "从VAPI获取呼叫状态",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        1792,
        800
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "65608f46-d233-4eb2-a3d7-d7840678c913",
      "name": "检查最终状态+继续逻辑",
      "type": "n8n-nodes-base.code",
      "position": [
        2032,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2076cd94-af6e-4a73-b19a-90ffbac9eec4",
      "name": "准备循环载荷",
      "type": "n8n-nodes-base.set",
      "position": [
        2784,
        784
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e7b46a53-8a57-4d1e-9741-4dc1056f0c67",
      "name": "是否继续循环?",
      "type": "n8n-nodes-base.if",
      "position": [
        2288,
        800
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a04b6957-a80c-4d70-b24e-a43dc5979777",
      "name": "重试前等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        2560,
        784
      ],
      "webhookId": "c5ba7f59-a9d5-4294-8e29-24a740c62a70",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "6563cd57-bc97-46c9-b4b8-4009d181d267",
      "name": "筛选有效线索",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        432
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "56d5586a-9e5b-4842-afe5-617d215bfedd",
      "name": "有待处理的线索吗?",
      "type": "n8n-nodes-base.if",
      "position": [
        960,
        432
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 2.2,
      "alwaysOutputData": false
    },
    {
      "id": "4e562af9-9fb2-4e53-bf74-b6eb3e2284d0",
      "name": "循环设置变量",
      "type": "n8n-nodes-base.set",
      "position": [
        2288,
        416
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "49f0f3d6-eeaf-4fb5-8164-237db332e1d6",
      "name": "联系人刷新前等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        48,
        80
      ],
      "webhookId": "83e39f57-73d9-4e8d-b5e3-42a59155af8d",
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 1.1
    },
    {
      "id": "aceec85a-b410-4af7-80c7-94e50a183696",
      "name": "添加呼叫状态标签",
      "type": "n8n-nodes-base.highLevel",
      "position": [
        272,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "813de614-018b-40dc-a3c9-ec252d1f7576",
      "name": "更新联系人 - 呼叫摘要",
      "type": "n8n-nodes-base.highLevel",
      "position": [
        992,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3787960c-7b84-419c-b958-09af52259681",
      "name": "刷新前等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        960,
        80
      ],
      "webhookId": "d11dd91d-b631-402b-9db4-fc94d20c020a",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5442819c-12a6-4164-bfaf-1dacec9f9bfb",
      "name": "GHL分页请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        432
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b419734c-9df6-47e8-a53b-c0a0c1c10cb2",
      "name": "步骤1.5 - 选择随机代理",
      "type": "n8n-nodes-base.code",
      "position": [
        1792,
        416
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e8e02d25-396c-4e67-90c9-79295e554258",
      "name": "GHL分页已更新",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9327ef48-0528-45c0-a57e-bb5c8473ad6d",
      "name": "开始呼叫 - 美国东部时间上午9点",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        48,
        432
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7a7cf8dd-f84b-4b1c-83c5-4c1a6c9cdecb",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6d9ed469-92ec-499c-8585-776ad30723b4",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7ecbe991-add5-4f9b-b0d9-30fc6db5c544",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7d6631d9-3ee3-44db-a668-a0282b871333",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f842e9c2-b51c-49a1-bfc2-206cc7a9fce6",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "672cfaee-b7bf-4764-8863-01d25a5458cd",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1d04251d-c977-4d1f-b41d-e8194ff948d6",
  "connections": {
    "Wait Before Retry": {
      "main": [
        [
          {
            "node": "Prepare Loop Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Valid Leads": {
      "main": [
        [
          {
            "node": "Has Leads to Process?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Call Status Tag": {
      "main": [
        [
          {
            "node": "Step 4 - Set (Parse Call Result)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Refresh": {
      "main": [
        [
          {
            "node": "GHL Paginated Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Setup Variables": {
      "main": [
        [
          {
            "node": "Set Attempt Count + Init Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Loop Payload": {
      "main": [
        [
          {
            "node": "Set Attempt Count + Init Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GHL Paginated Request": {
      "main": [
        [
          {
            "node": "Filter Valid Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GHL Paginated Updated": {
      "main": [
        [
          {
            "node": "Wait Before Refresh",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Leads to Process?": {
      "main": [
        [
          {
            "node": "Step 1 - Create Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Should Continue Loop?": {
      "main": [
        [
          {
            "node": "Wait Before Retry",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Step 3 - Get Call Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Calls - 9AM EST": {
      "main": [
        [
          {
            "node": "GHL Paginated Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 2 - Initiate Call": {
      "main": [
        [
          {
            "node": "Loop Setup Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 3 - Get Call Data": {
      "main": [
        [
          {
            "node": "Add Call Status Tag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 1 - Create Customer": {
      "main": [
        [
          {
            "node": "Step 1.5 - Select Random Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Call Status from VAPI": {
      "main": [
        [
          {
            "node": "Check Final Status + shouldContinue Logic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 5 - If (Call Answered?)": {
      "main": [
        [
          {
            "node": "Wait Before Contacts Refresh",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Contact - Call Summary",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait Before Contacts Refresh",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Contact - Call Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Contacts Refresh": {
      "main": [
        [
          {
            "node": "GHL Paginated Updated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 1.5 - Select Random Agent": {
      "main": [
        [
          {
            "node": "Step 2 - Initiate Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Attempt Count + Init Status": {
      "main": [
        [
          {
            "node": "Get Call Status from VAPI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 4 - Set (Parse Call Result)": {
      "main": [
        [
          {
            "node": "Step 5 - If (Call Answered?)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Final Status + shouldContinue Logic": {
      "main": [
        [
          {
            "node": "Should Continue Loop?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客户培育, AI 聊天机器人

需要付费吗?

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

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

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

作者
Țugui Dragoș

Țugui Dragoș

@tuguidragos

I create automations with n8n, GoHighLevel, and AI to make work easier and more effective. My work covers lead generation, data management, and workflow optimization, with a focus on systems that save time and deliver consistent results. I believe in building practical automations that help freelancers, startups, and agencies grow and scale their businesses. If you’re interested in collaboration or need something custom, check the link below, you’ll find me everywhere online.

外部链接
在 n8n.io 查看

分享此工作流