{
  "name": "Lead to CRM + Slack Alert",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "new-lead",
        "responseMode": "onReceived",
        "responseData": "allEntries"
      },
      "id": "webhook-trigger",
      "name": "Webhook \u2014 New Lead",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ],
      "notes": "Replace with your form provider trigger (Typeform, Jotform, Gravity Forms, etc.)"
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "create",
        "additionalFields": {
          "email": "={{ $json.email }}",
          "firstName": "={{ $json.first_name }}",
          "lastName": "={{ $json.last_name }}",
          "phone": "={{ $json.phone }}",
          "company": "={{ $json.company }}"
        }
      },
      "id": "hubspot-create",
      "name": "HubSpot \u2014 Create Contact",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2,
      "position": [
        460,
        300
      ],
      "credentials": {
        "hubspotApi": {
          "name": "<your credential>"
        }
      },
      "notes": "Swap for your CRM: Pipedrive, Salesforce, GoHighLevel, etc."
    },
    {
      "parameters": {
        "channel": "#leads",
        "text": "=:tada: New lead: *{{ $('Webhook \u2014 New Lead').item.json.first_name }} {{ $('Webhook \u2014 New Lead').item.json.last_name }}*\n*Company:* {{ $('Webhook \u2014 New Lead').item.json.company }}\n*Email:* {{ $('Webhook \u2014 New Lead').item.json.email }}\n*Phone:* {{ $('Webhook \u2014 New Lead').item.json.phone }}\n<https://app.hubspot.com|View in HubSpot \u2192>",
        "otherOptions": {}
      },
      "id": "slack-alert",
      "name": "Slack \u2014 Post to #leads",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [
        680,
        300
      ],
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook \u2014 New Lead": {
      "main": [
        [
          {
            "node": "HubSpot \u2014 Create Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot \u2014 Create Contact": {
      "main": [
        [
          {
            "node": "Slack \u2014 Post to #leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "Capture form submissions, create a contact in HubSpot, and post an alert to Slack. Built by Aplos AI (aplosai.com)."
  }
}