{
  "name": "Form \u2192 Sheet CRM + WhatsApp alert",
  "nodes": [
    {
      "parameters": {
        "content": "## Form \u2192 Sheet CRM + alert\n\n**What it does:** a new website/Facebook lead is saved to a Google Sheet and pings you on WhatsApp.\n\n**Setup**\n1. Open *Save to CRM* \u2192 connect your **Google Sheets** account, pick your sheet.\n2. Open *WhatsApp alert* \u2192 add your **WhatsApp Cloud API** credential + your number.\n3. Point your form to the *Lead* webhook URL.\n4. Click **Active** (top-right).",
        "width": 360,
        "height": 300
      },
      "id": "sticky-setup",
      "name": "Setup guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -140
      ]
    },
    {
      "parameters": {
        "path": "lead",
        "httpMethod": "POST",
        "responseMode": "lastNode"
      },
      "id": "wh",
      "name": "Lead (webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -180,
        40
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": "",
        "sheetName": "",
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {}
        }
      },
      "id": "sheet",
      "name": "Save to CRM",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        60,
        -40
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://graph.facebook.com/v20.0/PHONE_NUMBER_ID/messages",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"messaging_product\": \"whatsapp\",\n  \"to\": \"YOUR_NUMBER\",\n  \"type\": \"text\",\n  \"text\": { \"body\": \"New lead for your business: \" + JSON.stringify($json) }\n}"
      },
      "id": "wa",
      "name": "WhatsApp alert",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        60,
        160
      ]
    }
  ],
  "connections": {
    "Lead (webhook)": {
      "main": [
        [
          {
            "node": "Save to CRM",
            "type": "main",
            "index": 0
          },
          {
            "node": "WhatsApp alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [],
  "id": "hlCRQqJNZmsjl5mv"
}