使用 Google Gemini 筛选和验证潜在客户并从 Jotform 同步到 HubSpot

中级

这是一个Lead Generation、AI Chatbot领域的自动化工作流,包含 15 个节点。主要使用 Gmail、Hubspot、HttpRequest、JotFormTrigger、GoogleGemini 等节点。 使用 Google Gemini 筛选和验证潜在客户并从 Jotform 同步到 HubSpot

前置要求
  • Google 账号和 Gmail API 凭证
  • HubSpot API Key
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "nodes": [
    {
      "id": "8ab901f4-f5ba-4e49-98ee-8ad2f4c2c95b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        432
      ],
      "parameters": {
        "color": 7,
        "width": 224,
        "height": 480,
        "content": "Typeform 触发器:捕获潜在客户数据后触发"
      },
      "typeVersion": 1
    },
    {
      "id": "923b782c-b7c2-4f37-bed4-e5c7f8c71b91",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        432
      ],
      "parameters": {
        "color": 7,
        "width": 192,
        "height": 480,
        "content": "在 HubSpot 中创建或更新联系人"
      },
      "typeVersion": 1
    },
    {
      "id": "d186deee-808b-42f8-824e-e4ce11401c02",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -544,
        432
      ],
      "parameters": {
        "width": 928,
        "height": 1056,
        "content": "## AI 增强的潜在客户资格认证与 HubSpot 同步 (Jotform 到 HubSpot) 🧠✨"
      },
      "typeVersion": 1
    },
    {
      "id": "49288ea6-6928-4cc6-a3c0-7c707e084c5b",
      "name": "创建或更新联系人",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1600,
        624
      ],
      "parameters": {
        "email": "={{ $('JotForm Trigger').item.json.email }}",
        "options": {},
        "additionalFields": {
          "country": "={{ $json.country }}",
          "message": "={{ $('JotForm Trigger').item.json.note }}",
          "industry": "={{ $json.industry }}",
          "lastName": "={{ $('JotForm Trigger').item.json.lastname }}",
          "firstName": "={{ $('JotForm Trigger').item.json.firstname }}",
          "websiteUrl": "={{ $('JotForm Trigger').item.json.website }}",
          "companyName": "={{ $json.company_name }}",
          "phoneNumber": "={{ $('JotForm Trigger').item.json.phone }}"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "7a7eb3d4-5ff0-4ffe-84dd-b6685e464867",
      "name": "JotForm 触发器",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        480,
        624
      ],
      "webhookId": "51a368d5-596e-4a97-a2f1-134da02861fc",
      "parameters": {
        "form": "252856264643060"
      },
      "typeVersion": 1
    },
    {
      "id": "4f2927a2-337c-4828-834c-79024866e84c",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2288,
        624
      ],
      "webhookId": "03354c56-e403-45da-b83a-77d630bf0f1a",
      "parameters": {
        "message": "={{ $json.content.parts[0].text }}\n\nHere are the details:\n\nName: {{ $('JotForm Trigger').item.json.firstname }} {{ $('JotForm Trigger').item.json.lastname }}\nEmail: {{ $('JotForm Trigger').item.json.email }}\nPhone: {{ $('JotForm Trigger').item.json.phone }}\nCountry: {{ $('Information Extractor').item.json.country ?? \"\" }}\nIndustry: {{ $('Information Extractor').item.json.industry }}\nCompany Name: {{ $('Information Extractor').item.json.company_name }}\nSummary: Country: {{ $('Information Extractor').item.json.summary }}\n\nWebsite: {{ $('JotForm Trigger').item.json.website }}\nNote: {{ $('JotForm Trigger').item.json.note }}",
        "options": {},
        "subject": "New Lead Captured",
        "emailType": "text"
      },
      "typeVersion": 2.1
    },
    {
      "id": "5b3576a0-b116-4c4f-90ec-4a442cd39fe5",
      "name": "潜在客户验证",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        736,
        624
      ],
      "parameters": {
        "url": "https://api.verifalia.com/v2.7/email-validations",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"entries\": [\n    {\n      \"inputData\": {{$json.email}}\n    }\n  ]\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            },
            {
              "name": "authorization"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "7e731d3a-8ae3-421c-a729-385de4fd87d8",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        432
      ],
      "parameters": {
        "width": 224,
        "height": 480,
        "content": "验证潜在客户的电子邮件是否非虚假或临时邮箱"
      },
      "typeVersion": 1
    },
    {
      "id": "fe98dd22-926a-402d-8211-a785edabd9fb",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        960,
        624
      ],
      "parameters": {
        "url": "={{ $('JotForm Trigger').item.json.website }}",
        "options": {
          "allowUnauthorizedCerts": true
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "29100ecb-621e-4c00-987a-b4480d6cd012",
      "name": "信息提取器",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        1168,
        624
      ],
      "parameters": {
        "text": "={{ $json.data }}",
        "options": {},
        "attributes": {
          "attributes": [
            {
              "name": "company_name",
              "required": true,
              "description": "Company name on the website or website name"
            },
            {
              "name": "country",
              "description": "country of the company"
            },
            {
              "name": "industry",
              "required": true,
              "description": "Industry like tech, marking, seo, e-commerce, finance etc"
            },
            {
              "name": "summary",
              "required": true,
              "description": "short summary about the website services"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "8af84dd9-8c79-4940-8154-c9e4d91bc055",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        432
      ],
      "parameters": {
        "color": 7,
        "width": 192,
        "height": 480,
        "content": "向自己发送通知"
      },
      "typeVersion": 1
    },
    {
      "id": "8cac2a21-3ead-4a4c-abb0-6133bb85cccb",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1312,
        768
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "d2cb1f26-a068-48ed-ad02-abefbd789554",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        432
      ],
      "parameters": {
        "width": 592,
        "height": 480,
        "content": "提取网站 HTML 并获取国家、行业、网站摘要和公司名称"
      },
      "typeVersion": 1
    },
    {
      "id": "a845b165-bdf3-4c0b-a45b-aa529a6ddef1",
      "name": "向模型发送消息",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1856,
        624
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "models/gemini-2.5-flash",
          "cachedResultName": "models/gemini-2.5-flash"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=You are a writing assistant for email, which review the lead data and write a short summary to notify the me that if the lead is prospective.\n\nHere are the details:\n\nName: {{ $('JotForm Trigger').item.json.firstname }} {{ $('JotForm Trigger').item.json.lastname }}\nEmail: {{ $('JotForm Trigger').item.json.email }}\nPhone: {{ $('JotForm Trigger').item.json.phone }}\nCountry: {{ $('Information Extractor').item.json.country ?? \"\" }}\nIndustry: {{ $('Information Extractor').item.json.industry }}\nCompany Name: {{ $('Information Extractor').item.json.company_name }}\nSummary: Country: {{ $('Information Extractor').item.json.summary }}\n\nWebsite: {{ $('JotForm Trigger').item.json.website }}\nNote: {{ $('JotForm Trigger').item.json.note }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "typeVersion": 1
    },
    {
      "id": "a28daaac-be36-44e3-8677-f9cbcb7d1039",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1776,
        432
      ],
      "parameters": {
        "color": 7,
        "width": 432,
        "height": 480,
        "content": "AI 将总结这些关于潜在客户的数据"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "Lead Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Verification": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Create or update a contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create or update a contact": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个中级难度的工作流,适用于Lead Generation、AI Chatbot等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

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

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

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

作者
Zain Khan

Zain Khan

@zain

I partner with businesses to streamline processes and accelerate growth through intelligent AI automation and Web/mobile Development. Leveraging deep expertise in GPT-4, LangChain, and n8n, I develop AI-powered agents and sophisticated LLM pipelines.

外部链接
在 n8n.io 上查看 →

分享此工作流