{
  "name": "Revmatic 02 — Lead Notifier (Slack instantané)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "nouveau-lead",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "rev02-webhook-0001",
      "name": "Nouveau lead (Webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ],
      "webhookId": "rev02-nouveau-lead"
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "nom",
              "value": "={{ $json.body.nom || $json.nom || \"Inconnu\" }}"
            },
            {
              "name": "email",
              "value": "={{ $json.body.email || $json.email }}"
            },
            {
              "name": "source",
              "value": "={{ $json.body.source || $json.source || \"site web\" }}"
            },
            {
              "name": "budget",
              "value": "={{ $json.body.budget || $json.budget || \"non précisé\" }}"
            }
          ]
        },
        "options": {}
      },
      "id": "rev02-set-0002",
      "name": "Normaliser le lead",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        470,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://hooks.slack.com/services/REMPLACER/WEBHOOK/SLACK",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={ \"text\": \"🎯 *Nouveau lead !*\\n*Nom :* {{ $json.nom }}\\n*Email :* {{ $json.email }}\\n*Source :* {{ $json.source }}\\n*Budget :* {{ $json.budget }}\\n\\n_Premier arrivé, premier servi — contactez-le dans l'heure._\" }",
        "options": {}
      },
      "id": "rev02-http-0003",
      "name": "Alerte Slack",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        700,
        300
      ]
    }
  ],
  "connections": {
    "Nouveau lead (Webhook)": {
      "main": [
        [
          {
            "node": "Normaliser le lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normaliser le lead": {
      "main": [
        [
          {
            "node": "Alerte Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
