8
n8n 中文网amn8n.com

网站入站线索收集与CRM集成及数据丰富

初级

这是一个Sales领域的自动化工作流,包含 5 个节点。主要使用 Gmail, Hubspot, Webhook, HttpRequest 等节点。 网站线索捕获(Apollo.io数据丰富、HubSpot存储和Gmail通知)

前置要求
  • Google 账号和 Gmail API 凭证
  • HubSpot API Key
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "HJ1BFDzLA4ywrHt5",
  "meta": {
    "instanceId": "fcb622cbd5234c565b9b78babeaf0ea2455df9d2aad0d1adff7c1ef99583e685",
    "templateCredsSetupCompleted": true
  },
  "name": "网站入站线索收集与CRM集成及数据丰富",
  "nodes": [
    {
      "id": "3496a319-7020-4326-9696-1cc61c304fd5",
      "name": "Webhook - 收集线索",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -440,
        100
      ],
      "webhookId": "lead-intake-id",
      "parameters": {
        "path": "lead-intake",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "lastNode"
      },
      "typeVersion": 1
    },
    {
      "id": "2d67475d-c742-4e00-8a70-2047342f43fc",
      "name": "Gmail - 发送感谢信",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -180,
        -80
      ],
      "webhookId": "c6ed3568-2220-4961-8911-59a199571df8",
      "parameters": {
        "sendTo": "={{ $('Webhook - Collect Lead').item.json.body.email }}",
        "message": "=Thank You for Reaching Out!\n\nDear {{ $json.body.first_name }}\n\nI hope this message finds you well. Thank you for reaching out to us at InfyOm Technologies. Your interest and support mean a lot to us.\n\nWe have received your request and our team will soon get back to you.\n\nThanks,\nInfyOm Sales Team",
        "options": {
          "appendAttribution": false
        },
        "subject": "Thanks for Getting in touch!",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "ZZN4CoXoq5vJk2UA",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "ea3642bb-fc87-4737-9feb-a0b4de50e44f",
      "name": "HubSpot - 创建联系人",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        40,
        100
      ],
      "parameters": {
        "email": "={{ $('Webhook - Collect Lead').item.json.body.email }}",
        "options": {},
        "authentication": "appToken",
        "additionalFields": {
          "city": "={{ $json.contacts[0].city }}",
          "country": "={{ $json.contacts[0].country }}",
          "message": "=Person LinkedIn: {{ $json.contacts[0].linkedin_url }}\nCompany Phone: {{ $json.contacts[0].account.primary_phone.number }}\nCompany LinkedIn: {{ $json.contacts[0].account.linkedin_url }}\n\n",
          "jobTitle": "={{ $json.contacts[0].title }}",
          "firstName": "={{ $('Webhook - Collect Lead').item.json.body.first_name }}",
          "websiteUrl": "={{ $json.contacts[0].account.website_url }}",
          "companyName": "={{ $json.contacts[0].organization_name }}",
          "twitterUsername": "={{ $json.contacts[0].twitter_url }}"
        }
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "XEaExWg92xxlYHhF",
          "name": "HubSpot App Token account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "260877fc-f0bf-4f09-a722-aafbdbacff61",
      "name": "Gmail - 通知团队",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -180,
        280
      ],
      "webhookId": "bb1666fd-e9d3-48e0-9224-cd038efb945f",
      "parameters": {
        "sendTo": "your_email_address",
        "message": "=A new form has been submitted on the website. \n\nName : {{ $('Webhook - Collect Lead').item.json.body.first_name }}\nEmail : {{ $json.body.email }}\n\n",
        "options": {
          "appendAttribution": false
        },
        "subject": "New Lead Notification",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "ZZN4CoXoq5vJk2UA",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "257d6356-5fca-4440-800f-33acc1c6fdd6",
      "name": "从Apollo丰富数据",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -180,
        100
      ],
      "parameters": {
        "url": "https://api.apollo.io/api/v1/contacts/search",
        "method": "POST",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "q_keywords",
              "value": "={{ $json.body.email }}"
            },
            {
              "name": "sort_ascending",
              "value": "false"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Cache-Control",
              "value": "no-cache"
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "x-api-key",
              "value": "your_apollo_key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "07e6a836-d60c-496d-9dca-90e198d2381e",
  "connections": {
    "Webhook - Collect Lead": {
      "main": [
        [
          {
            "node": "Gmail - Send Thank You",
            "type": "main",
            "index": 0
          },
          {
            "node": "Gmail - Notify Team",
            "type": "main",
            "index": 0
          },
          {
            "node": "Enrich Data from Apollo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich Data from Apollo": {
      "main": [
        [
          {
            "node": "HubSpot - Create Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

初级 - 销售

需要付费吗?

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

工作流信息
难度等级
初级
节点数量5
分类1
节点类型4
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
InfyOm Technologies

InfyOm Technologies

@infyom

We are an AI Automation Agency focusing on various AI Automation Services like, workflow automation, shopify automation, chatbot developerment, custom ai agent development and more.

外部链接
在 n8n.io 查看

分享此工作流