8
n8n 中文网amn8n.com

网站潜在客户通知系统(Slack提醒和Gmail)

中级

这是一个Lead Nurturing, Multimodal AI领域的自动化工作流,包含 6 个节点。主要使用 Gmail, Slack, Webhook, GoogleSheets 等节点。 捕获网站潜在客户,提供Slack通知、Gmail回复和表格归档

前置要求
  • Google 账号和 Gmail API 凭证
  • Slack Bot Token 或 Webhook URL
  • HTTP Webhook 端点(n8n 会自动生成)
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "QZSC8SoOX8Oj9FtE",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae"
  },
  "name": "Website Lead Notification System with Slack Alert & Gmail",
  "tags": [],
  "nodes": [
    {
      "id": "ba1eedaf-cb8d-4089-b08c-3fa58f555dcb",
      "name": "Receive Website Form Submissions",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        0
      ],
      "webhookId": "f70cbc87-add1-4985-8a2d-0a789cffe0e4",
      "parameters": {
        "path": "new-lead",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "78ac9847-645b-46da-a9b4-66ef82c74f77",
      "name": "Notify Sales Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        208,
        0
      ],
      "webhookId": "3f6cc29c-baed-42d1-95d7-43ad2b5bc876",
      "parameters": {
        "text": "=`New Website Lead! - Name: {{ $json.name }}\nCompany: {{ $json.company }}\nEmail: {{ $json.email }}\nMessage: {{ $json.message }}`",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SALES_CHANNEL_ID"
        },
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "AFKF0YsguyhsagR0",
          "name": "temp"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "dc273ed1-3d2c-4700-a180-09618a2f0a47",
      "name": "Archive Lead Data",
      "type": "n8n-nodes-base.googleSheets",
      "notes": "Data:\n\nName: ={{ $json.name }}\nEmail: ={{ $json.email }}\nDate: ={{ $now }}",
      "position": [
        416,
        0
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Leads"
        },
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SPREADSHEET_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "MSnszF5oRAiSGHDo",
          "name": "temp"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.6
    },
    {
      "id": "4cdbfa61-f7ff-4bb0-a551-136ccc5b10e5",
      "name": "Send Automatic Confirmation Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        624,
        0
      ],
      "webhookId": "d5023647-ee27-4424-912d-36c72927ce45",
      "parameters": {
        "sendTo": "={{ $json.email }}",
        "message": "=Hi {{ $json.name }}, thanks for reaching out. We've received your message and will get back to you shortly.",
        "options": {},
        "subject": "Thanks for contacting us!"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "QFfaHpKmgq4YPiRN",
          "name": "temp"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "bc03ca66-45f2-48c6-98fb-8b3759bb1c72",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -64
      ],
      "parameters": {
        "width": 912,
        "height": 256,
        "content": "## Flow"
      },
      "typeVersion": 1
    },
    {
      "id": "d0f5e891-6d8c-4af1-912e-5cefc77d1d9c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        240
      ],
      "parameters": {
        "color": 3,
        "width": 912,
        "height": 1104,
        "content": "# Workflow Note: Website Lead Notification System\n\n---\n\n### **Problem**\nDelayed responses to new website leads can lead to a significant loss of business. When form submissions are only sent to a general email inbox, it often takes too long for the sales team to notice and act on them. This slow response time results in a poor prospect experience and allows competitors to get ahead.\n\n### **Solution**\nThis is a simple but highly effective n8n workflow designed to eliminate response delays. By connecting your website's contact form directly to your team's communication channels, the system ensures that every new lead is instantly captured and a real-time notification is sent. This allows your sales team to act immediately, significantly improving lead-to-conversion rates.\n\n### **For Whom**\nThis workflow is ideal for **small businesses, e-commerce stores, freelancers, and marketing professionals** who need to respond quickly to new business inquiries. It is perfect for anyone who wants to ensure that no lead falls through the cracks and that their sales pipeline remains robust.\n\n### **Scope**\n* **What it includes:**\n    * An instant trigger for every form submission from your website.\n    * Real-time notifications delivered directly to a specified Slack channel.\n    * Optional automatic archiving of lead data into a Google Sheet.\n    * Optional immediate and personalized confirmation emails sent to the new lead.\n\n* **What it excludes:**\n    * Advanced lead scoring or qualification.\n    * Integration with a complex CRM system (though it can be easily extended to do so).\n    * Automated follow-up sequences.\n\n### **How to Set Up**\n\n1.  **Prerequisites:** You will need an n8n instance and accounts for **Slack**, **Google Sheets**, and **Gmail**. Your website's contact form must be able to send data via an HTTP `POST` request to a specific URL.\n2.  **Workflow Import:** Import the workflow's `.json` file into your n8n instance.\n3.  **Credential Configuration:**\n    * Set up credentials for **Slack**, **Google Sheets**, and **Gmail** within n8n.\n4.  **Node-Specific Configuration:**\n    * **`Webhook Trigger`:** Click the node and copy the **Webhook URL**. You must paste this URL into your website's form settings as the submission endpoint.\n    * **`Slack` Node:** Enter the `Channel ID` of the Slack channel where you want notifications to be sent.\n    * **`Google Sheets` Node (Optional):** Enter your `Spreadsheet ID` and `Sheet Name`. Map the form data fields (e.g., `{{ $json.name }}`) to the corresponding columns in your spreadsheet.\n    * **`Gmail` Node (Optional):** Enter the `To` field using the lead's email variable (`{{ $json.email }}`) and customize the subject and body of the confirmation email.\n5.  **Activation:** After all configurations are complete, click **\"Save\"** and then **\"Active\"**. The workflow is now live!"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b5598bbb-e28a-443b-b930-506605138cc7",
  "connections": {
    "Archive Lead Data": {
      "main": [
        [
          {
            "node": "Send Automatic Confirmation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Sales Team": {
      "main": [
        [
          {
            "node": "Archive Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Website Form Submissions": {
      "main": [
        [
          {
            "node": "Notify Sales Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客户培育, 多模态 AI

需要付费吗?

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

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

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

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流