8
n8n 中文网amn8n.com

从新的n8n表单提交启动外拨Vapi电话呼叫

中级

这是一个Lead Nurturing, AI Chatbot领域的自动化工作流,包含 6 个节点。主要使用 Set, Wait, FormTrigger, HttpRequest 等节点。 使用Vapi从表单提交自动化外拨语音呼叫

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Zgf81bcaaB04rjcd",
  "meta": {
    "instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
    "templateCredsSetupCompleted": true
  },
  "name": "从新的n8n表单提交启动外拨Vapi电话呼叫",
  "tags": [],
  "nodes": [
    {
      "id": "cb6ee340-933a-4699-bc0a-be7605309df7",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        158,
        -284
      ],
      "parameters": {
        "width": 260,
        "height": 524,
        "content": "## 设置Vapi字段"
      },
      "typeVersion": 1
    },
    {
      "id": "b5557910-7469-4937-9229-1d599ad5bf2d",
      "name": "启动外拨Vapi呼叫",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        464,
        80
      ],
      "parameters": {
        "url": "https://api.vapi.ai/call",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"assistantId\": \"{{ $json.vapiAssistantId }}\",\n    \"phoneNumberId\": \"{{ $json.vapiPhoneNumberId }}\",\n    \"customer\": {\n        \"number\": \"{{ $('On form submission').item.json.Phone }}\"\n    }\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $json.vapiApi }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e4039ec8-1e6e-4d59-ab3c-14727562cdae",
      "name": "设置字段",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "f38947e1-c75a-44cc-88f9-c44fc80bada8",
              "name": "vapiPhoneNumberId",
              "type": "string",
              "value": "insert-id"
            },
            {
              "id": "463ed66e-e072-48dc-a75d-a3815fd07de0",
              "name": "vapiAssistantId",
              "type": "string",
              "value": "insert-id"
            },
            {
              "id": "93f058cd-e015-4b83-a16f-efceddafb128",
              "name": "vapiApi",
              "type": "string",
              "value": "insert-api"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fe87d956-e2f6-4fbd-ac30-e09b3c48bb15",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 472,
        "content": "## 要求"
      },
      "typeVersion": 1
    },
    {
      "id": "5855a19a-0c94-4ca7-ac4c-330fd7b8a194",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -208,
        80
      ],
      "webhookId": "cf168bd9-dd77-4192-aa0e-0c5c5cb3341b",
      "parameters": {
        "options": {
          "appendAttribution": false
        },
        "formTitle": "Lead form",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name",
              "requiredField": true
            },
            {
              "fieldType": "email",
              "fieldLabel": "Email",
              "requiredField": true
            },
            {
              "fieldLabel": "Phone",
              "placeholder": "Insert + symbol and country code without spaces",
              "requiredField": true
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "3075f3b5-12d0-465a-b1ff-0b13d928f684",
      "name": "等待2分钟",
      "type": "n8n-nodes-base.wait",
      "position": [
        16,
        80
      ],
      "webhookId": "dd4440b8-37f2-4f20-84ad-46a9e107fb82",
      "parameters": {
        "unit": "minutes",
        "amount": 2
      },
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "28254a07-4ced-4c28-b49f-9eec8cb01a3c",
  "connections": {
    "Wait 2min": {
      "main": [
        [
          {
            "node": "Set fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set fields": {
      "main": [
        [
          {
            "node": "Start outbound Vapi call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Wait 2min",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Aitor | 1Node

Aitor | 1Node

@aitoralonso

Hi, I’m Aitor. At 1Node, we help businesses save up to 5 figures annually by deploying private AI infrastructure instead of relying on expensive Cloud Enterprise solutions. As n8n enthusiasts, we love exploring its possibilities and sharing free basic workflows.

外部链接
在 n8n.io 查看

分享此工作流