8
n8n 中文网amn8n.com

从新的Jotform提交触发外拨Vapi AI语音呼叫

中级

这是一个Lead Nurturing, AI Chatbot领域的自动化工作流,包含 7 个节点。主要使用 Set, HttpRequest, JotFormTrigger, LmChatOpenAi, InformationExtractor 等节点。 从新的Jotform提交触发外拨Vapi AI语音呼叫

前置要求
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "98aUzWGBxKfoUunX",
  "meta": {
    "instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
    "templateCredsSetupCompleted": true
  },
  "name": "从新的 Jotform 提交触发外拨 Vapi AI 语音呼叫",
  "tags": [],
  "nodes": [
    {
      "id": "913a4a9a-6b53-4540-ac8f-16d4b5eaf028",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        318,
        -156
      ],
      "parameters": {
        "width": 260,
        "height": 396,
        "content": "## 设置 Vapi 字段"
      },
      "typeVersion": 1
    },
    {
      "id": "77909286-b9fa-4013-b287-32e3681a7997",
      "name": "启动外拨 Vapi 呼叫",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        80
      ],
      "parameters": {
        "url": "https://api.vapi.ai/call",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"assistantId\": \"{{ $json.vapiAssistantId }}\",\n    \"phoneNumberId\": \"{{ $json.vapiPhoneNumberId }}\",\n    \"customer\": {\n        \"number\": \"{{ $('Information Extractor').item.json.output.internationalPhone }}\"\n    }\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $json.vapiApi }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "4c6ce81d-063e-4c20-99a9-5c1543768c66",
      "name": "设置字段",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        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": "4cdeccad-e186-4fb2-95e3-66b2256830aa",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 440,
        "content": "## 要求"
      },
      "typeVersion": 1
    },
    {
      "id": "5e756ae2-70d0-4fde-aa93-235815dded07",
      "name": "JotForm 触发器",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -224,
        80
      ],
      "webhookId": "68d39036-7465-4816-b74f-d7e758c06194",
      "parameters": {
        "form": "252102909108349"
      },
      "credentials": {
        "jotFormApi": {
          "id": "uFr1Zxopb9WOlCT4",
          "name": "JotForm account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "29868797-41e8-44d7-afe5-13b3a56214e7",
      "name": "信息提取器",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        0,
        80
      ],
      "parameters": {
        "text": "=- country: {{ $json['Phone Number'].country }} \n- area code: {{ $json['Phone Number'].area }}\n- phone: {{ $json['Phone Number'].phone }}",
        "options": {},
        "attributes": {
          "attributes": [
            {
              "name": "internationalPhone",
              "required": true,
              "description": "international formatted phone number. Includes the + sign, followed by the country code and phone number, without spaces. Example: +1234567890"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a1be9c8b-715a-49f2-a252-8da8642d9c98",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        96,
        304
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1",
          "cachedResultName": "gpt-4.1"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "vupAk5StuhOafQcb",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": true,
  "pinData": {
    "JotForm Trigger": [
      {
        "json": {
          "E-mail": "",
          "Address": {
            "city": "Dover",
            "state": "Delaware",
            "postal": "19901",
            "addr_line1": "8 The Green",
            "addr_line2": "Ste A"
          },
          "Full Name": {
            "last": "sad",
            "first": "rick"
          },
          "Phone Number": {
            "area": "123",
            "phone": "345634",
            "country": "1"
          },
          "Please Specify": "",
          "Feedback about us:": "",
          "How did you hear about us?": "Newspaper",
          "Will you be willing to recommend us?": "",
          "Suggestions if any for further improvement:": "",
          "Please give reference of any two people whom you feel:": [
            [
              "",
              "",
              ""
            ],
            [
              "",
              "",
              ""
            ]
          ]
        }
      }
    ]
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "8d0208e5-a730-4e86-992a-43a02118fc69",
  "connections": {
    "Set fields": {
      "main": [
        [
          {
            "node": "Start outbound Vapi call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Set fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

分享此工作流