{
  "id": "QZSC8SoOX8Oj9FtE",
  "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
      ],
      "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
      ],
      "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": {
          "name": "<your credential>"
        }
      },
      "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": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.6
    },
    {
      "id": "4cdbfa61-f7ff-4bb0-a551-136ccc5b10e5",
      "name": "Send Automatic Confirmation Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        624,
        0
      ],
      "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": {
          "name": "<your credential>"
        }
      },
      "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,
  "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
          }
        ]
      ]
    }
  }
}