{
  "name": "Lead-Routing mit KI-Vorqualifizierung",
  "nodes": [
    {
      "parameters": {
        "path": "lead-eingang",
        "httpMethod": "POST"
      },
      "name": "Webhook Lead-Form",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "model": "claude-3-5-sonnet",
        "messages": {
          "messageType": "single",
          "message": "Klassifiziere diesen Lead als HOT/WARM/COLD basierend auf: Firmen-Gr\u00f6\u00dfe, Budget-Hinweise, Dringlichkeit, Use-Case-Klarheit. Antworte mit JSON: {\"score\":\"HOT|WARM|COLD\",\"reason\":\"...\",\"next_step\":\"...\"}\n\nLead-Daten:\n{{$json}}"
        }
      },
      "name": "Claude \u2014 Lead-Score",
      "type": "n8n-nodes-base.anthropic",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.score}}",
              "value2": "HOT"
            }
          ]
        }
      },
      "name": "Switch nach Score",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 1,
      "position": [
        750,
        300
      ]
    },
    {
      "parameters": {},
      "name": "HubSpot \u2014 Contact anlegen",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 1,
      "position": [
        1000,
        200
      ]
    },
    {
      "parameters": {},
      "name": "Slack \u2014 Hot-Lead-Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ]
    }
  ],
  "connections": {},
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "ki-rundschau.de"
  }
}