8
n8n 中文网amn8n.com

30 - 个性化潜在客户互动系统

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 Code, Gmail, Hubspot, HttpRequest, ScheduleTrigger 等节点。 使用 Albacross、Datagma、HubSpot 和 Gmail 的个性化潜在客户捕获与外展

前置要求
  • Google 账号和 Gmail API 凭证
  • HubSpot API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "TEMPLATE_WORKFLOW_ID",
  "meta": {
    "instanceId": "TEMPLATE_INSTANCE_ID",
    "templateCredsSetupCompleted": false
  },
  "name": "30 - 个性化潜在客户互动系统",
  "tags": [],
  "nodes": [
    {
      "id": "a3682f34-dd55-4dcc-bdb4-08217ba0b03f",
      "name": "潜在客户捕获说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        1088
      ],
      "parameters": {
        "color": 4,
        "width": 448,
        "height": 576,
        "content": "## 潜在客户捕获与数据收集"
      },
      "typeVersion": 1
    },
    {
      "id": "8e3b8a6b-49d1-4d98-9169-7121d62ba631",
      "name": "数据增强说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        1088
      ],
      "parameters": {
        "width": 432,
        "height": 576,
        "content": "## 数据增强与CRM集成"
      },
      "typeVersion": 1
    },
    {
      "id": "88fe8cd6-00de-4020-a0c0-a53a4915f12f",
      "name": "个性化触达说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        1088
      ],
      "parameters": {
        "color": 3,
        "width": 448,
        "height": 576,
        "content": "## 个性化触达与追踪"
      },
      "typeVersion": 1
    },
    {
      "id": "d0e6cd4d-b933-4799-8d5f-11022e5d66fb",
      "name": "⏰ 定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        256,
        1472
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a44aadb3-614d-4f7a-b245-50e6652b53aa",
      "name": "🌐 Albacross网站访客",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        1472
      ],
      "parameters": {
        "url": "https://api.albacross.com/v1/visitors?api_key=YOUR_ALBACROSS_API_KEY",
        "options": {
          "timeout": 10000
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "8bcebbbb-36a1-4677-9b5d-e86a4c73d797",
      "name": "🔍 增强潜在客户数据",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        704,
        1472
      ],
      "parameters": {
        "url": "https://api.datagma.net/api/v2/person",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "apiId",
              "value": "YOUR_DATAGMA_API_KEY"
            },
            {
              "name": "data",
              "value": "Email_Of_The_Person"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "2ab43b4b-042e-43c2-bba4-12a37f211fec",
      "name": "📇 创建/更新HubSpot联系人",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        928,
        1472
      ],
      "parameters": {
        "email": "={{ $json.email }}",
        "options": {},
        "authentication": "appToken",
        "additionalFields": {
          "industry": "={{ $('🌐 Albacross Website Visitor').item.json.industry }}",
          "jobTitle": "={{ $json.job_title }}",
          "lastName": "={{ $json.last_name }}",
          "firstName": "={{ $json.first_name }}",
          "leadStatus": "NEW",
          "companyName": "={{ $('🌐 Albacross Website Visitor').item.json.company_name }}",
          "linkedinUrl": "={{ $json.linkedin_url }}",
          "phoneNumber": "={{ $json.phone }}",
          "numberOfEmployees": "={{ $('🌐 Albacross Website Visitor').item.json.employees }}"
        }
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "HUBSPOT_CREDENTIALS_ID",
          "name": "HubSpot Account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "392cacc9-0782-4dc9-8af6-c01f1d90fb14",
      "name": "✍️ 生成个性化消息",
      "type": "n8n-nodes-base.code",
      "position": [
        1152,
        1472
      ],
      "parameters": {
        "jsCode": "const visitorData = $('🌐 Albacross Website Visitor').item.json;\nconst enrichedData = $('🔍 Enrich Lead Data').item.json;\nconst hubspotData = $('📇 Create/Update HubSpot Contact').item.json;\n\nconst firstName = enrichedData.first_name || 'there';\nconst companyName = visitorData.company_name || 'your company';\nconst industry = visitorData.industry || 'your industry';\nconst website = visitorData.domain || '';\n\nconst personalizedMessage = `Hi ${firstName},\\n\\nI noticed someone from ${companyName} recently visited our website and showed interest in our solutions. As a company in the ${industry} space, I thought you might find value in how we've helped similar businesses streamline their operations and drive growth.\\n\\nWe've worked with several companies in your industry to:\\n• Reduce operational costs by 20-30%\\n• Improve efficiency through automation\\n• Scale their business processes effectively\\n\\nI'd love to share how we could potentially help ${companyName} achieve similar results. Would you be open to a brief 15-minute call this week to discuss your current challenges and see if there's a fit?\\n\\nBest regards,\\n[Your Name]\\n[Your Title]\\n[Your Company]\\n[Your Phone]\\n[Your Email]`;\n\nreturn {\n  subject: `Quick question about ${companyName}'s growth goals`,\n  message: personalizedMessage,\n  recipientEmail: enrichedData.email,\n  recipientName: `${firstName} ${enrichedData.last_name || ''}`.trim(),\n  companyName: companyName,\n  hubspotContactId: hubspotData.id\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "031094a9-8c26-448f-bec0-377dcdc30cdb",
      "name": "📧 发送个性化邮件",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1376,
        1472
      ],
      "webhookId": "WEBHOOK_ID",
      "parameters": {
        "sendTo": "={{ $json.recipientEmail }}",
        "message": "={{ $json.message }}",
        "options": {},
        "subject": "={{ $json.subject }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "GMAIL_CREDENTIALS_ID",
          "name": "Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "997315ba-3d13-4a64-b00c-e5f83fae2123",
      "name": "📝 在HubSpot记录邮件活动",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1600,
        1472
      ],
      "parameters": {
        "type": "email",
        "metadata": {},
        "resource": "engagement",
        "authentication": "appToken",
        "additionalFields": {}
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "HUBSPOT_CREDENTIALS_ID",
          "name": "HubSpot Account"
        }
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "TEMPLATE_VERSION_ID",
  "connections": {
    "⏰ Schedule Trigger": {
      "main": [
        [
          {
            "node": "🌐 Albacross Website Visitor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Enrich Lead Data": {
      "main": [
        [
          {
            "node": "📇 Create/Update HubSpot Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📧 Send Personalized Email": {
      "main": [
        [
          {
            "node": "📝 Log Email Activity in HubSpot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🌐 Albacross Website Visitor": {
      "main": [
        [
          {
            "node": "🔍 Enrich Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📇 Create/Update HubSpot Contact": {
      "main": [
        [
          {
            "node": "✍️ Generate Personalized Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "✍️ Generate Personalized Message": {
      "main": [
        [
          {
            "node": "📧 Send Personalized Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 内容创作, 多模态 AI

需要付费吗?

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

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

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

作者
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

外部链接
在 n8n.io 查看

分享此工作流