{
  "name": "SliceQuote: Neue Bestellung → E-Mail",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "slicequote-order-created",
        "options": {}
      },
      "id": "b1f1a1a1-0001-4000-8000-000000000001",
      "name": "SliceQuote Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [0, 0],
      "webhookId": "slicequote-order-created"
    },
    {
      "parameters": {
        "conditions": {
          "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" },
          "conditions": [
            {
              "leftValue": "={{ $json.body.event }}",
              "rightValue": "order.created",
              "operator": { "type": "string", "operation": "equals" }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "b1f1a1a1-0002-4000-8000-000000000002",
      "name": "Nur order.created",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [220, 0]
    },
    {
      "parameters": {
        "fromEmail": "shop@example.com",
        "toEmail": "inhaber@example.com",
        "subject": "=Neue SliceQuote-Bestellung {{ $json.body.data.orderNumber }}",
        "text": "=Neue Bestellung über das SliceQuote-Widget:\n\nBestellnummer: {{ $json.body.data.orderNumber }}\nKunde: {{ $json.body.data.customerName }}\nMenge: {{ $json.body.data.quantity }}\nGesamtbetrag: {{ $json.body.data.totalAmount }} EUR\nVersand: {{ $json.body.data.shippingMethod }} ({{ $json.body.data.shippingCost }} EUR)\n\nEingegangen: {{ $json.body.createdAt }}",
        "options": {}
      },
      "id": "b1f1a1a1-0003-4000-8000-000000000003",
      "name": "E-Mail senden",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [440, -80]
    }
  ],
  "connections": {
    "SliceQuote Webhook": {
      "main": [[{ "node": "Nur order.created", "type": "main", "index": 0 }]]
    },
    "Nur order.created": {
      "main": [[{ "node": "E-Mail senden", "type": "main", "index": 0 }], []]
    }
  },
  "settings": { "executionOrder": "v1" },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
