{
  "name": "Website-Anfragen automatisch verteilen (Plesch Marketing Vorlage)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "website-anfrage",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "1a3c6407-3271-4edb-93dc-15b18353a3bb",
      "name": "Webhook: Website-Anfrage",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "c5fc31a5-87bc-4698-b19c-20d1e4287b68"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "0a9f626a-cf4f-4129-8b02-fcbff957903f",
              "name": "name",
              "value": "={{ $json.body.name }}",
              "type": "string"
            },
            {
              "id": "7dfa0e5e-458d-420b-8b10-c7093ab577db",
              "name": "email",
              "value": "={{ $json.body.email }}",
              "type": "string"
            },
            {
              "id": "52df567c-b2b0-4f19-a2df-17b806681f8d",
              "name": "thema",
              "value": "={{ $json.body.thema || 'Allgemein' }}",
              "type": "string"
            },
            {
              "id": "57c5fe1b-9889-4274-a3f7-f2f7f7caea0a",
              "name": "nachricht",
              "value": "={{ $json.body.nachricht }}",
              "type": "string"
            },
            {
              "id": "d7b1f1f4-2877-4c45-9db8-14263b8f2ef8",
              "name": "eingang",
              "value": "={{ $now.toFormat('dd.MM.yyyy HH:mm') }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "7a342415-eb4e-4192-ae37-b6da5313e698",
      "name": "Felder vorbereiten",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "5439b42b-c2c2-4aba-9ede-81b6c11861a6",
              "leftValue": "={{ $json.thema }}",
              "rightValue": "Erstgespräch",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "3b83b520-db3f-4fb9-96b8-a771c1fdd3c3",
      "name": "Erstgespräch angefragt?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        480,
        0
      ]
    },
    {
      "parameters": {
        "fromEmail": "website@ihre-firma.de",
        "toEmail": "vertrieb@ihre-firma.de",
        "subject": "=🔥 Neue Erstgesprächs-Anfrage von {{ $json.name }}",
        "emailFormat": "text",
        "text": "=Name: {{ $json.name }}\nE-Mail: {{ $json.email }}\nThema: {{ $json.thema }}\nEingang: {{ $json.eingang }}\n\n{{ $json.nachricht }}",
        "options": {}
      },
      "id": "8da4146b-a5df-4ef2-addf-d50441b083be",
      "name": "E-Mail an Vertrieb (priorisiert)",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        740,
        -100
      ]
    },
    {
      "parameters": {
        "fromEmail": "website@ihre-firma.de",
        "toEmail": "info@ihre-firma.de",
        "subject": "=Neue Website-Anfrage: {{ $json.thema }}",
        "emailFormat": "text",
        "text": "=Name: {{ $json.name }}\nE-Mail: {{ $json.email }}\nEingang: {{ $json.eingang }}\n\n{{ $json.nachricht }}",
        "options": {}
      },
      "id": "cf604256-d3f4-4846-b611-8642b60230db",
      "name": "E-Mail an Postfach",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        740,
        100
      ]
    },
    {
      "parameters": {
        "content": "## Website-Anfragen automatisch verteilen\n\n1. Webhook-URL in Ihr Kontaktformular eintragen (POST mit name, email, thema, nachricht).\n2. In beiden E-Mail-Knoten SMTP-Zugangsdaten hinterlegen und Adressen anpassen.\n3. Optional: Knoten für CRM, Slack/Teams oder eine KI-Zusammenfassung ergänzen.\n\nVorlage von Plesch Marketing · plesch-marketing.de",
        "height": 300,
        "width": 420
      },
      "id": "2e24ecf3-8a8b-48be-8cff-cb4fccf08de7",
      "name": "Hinweis",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -360
      ]
    }
  ],
  "connections": {
    "Webhook: Website-Anfrage": {
      "main": [
        [
          {
            "node": "Felder vorbereiten",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Felder vorbereiten": {
      "main": [
        [
          {
            "node": "Erstgespräch angefragt?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Erstgespräch angefragt?": {
      "main": [
        [
          {
            "node": "E-Mail an Vertrieb (priorisiert)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "E-Mail an Postfach",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}