{
  "name": "Anfragen Hausverwaltung",
  "nodes": [
    {
      "parameters": {
        "content": "## Anfragen Hausverwaltung\nDer Workflow aus der Gratis-Lektion „n8n für Einsteiger“ (ai-seminare.de/kostenlos/n8n): Anfragen aus dem Formular werden als **dringend** oder **normal** eingestuft und protokolliert.\n\n**Nach dem Import, ein Handgriff:** Unten den Knoten **Tabelle Anfragenprotokoll anlegen** öffnen und einmal **Execute step** klicken. Er legt die Tabelle mit den vier Spalten an; gibt es sie schon, passiert nichts.\n\nDann oben **Execute** und die drei Testanfragen aus dem Video abschicken. Der Knoten **Insert row** findet die Tabelle **Anfragenprotokoll** über ihren Namen.",
        "height": 380,
        "width": 560,
        "color": 4
      },
      "id": "30902c56-2414-4766-af37-6eca5a6ba345",
      "name": "Sticky Note 460",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -420
      ]
    },
    {
      "parameters": {
        "content": "### Die Weiche\nVier Stichwörter mit OR, **Ignore Case** an, wie im Video.\n\nAnfrage 3 („Die Heizkörper im ganzen Haus bleiben eisig, wir frieren.“) landet trotzdem bei **normal**: keines der vier Wörter steht drin, Heizkörper ist nicht Heizung. Genau die Stelle, an der im Video etwas schiefgeht.",
        "height": 300,
        "width": 420,
        "color": 5
      },
      "id": "7793fad3-ca9d-4663-ac7c-b4c84b113f8c",
      "name": "Sticky Note 980",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        560,
        -420
      ]
    },
    {
      "parameters": {
        "content": "### Einstufung\n**Include Other Input Fields** ist in beiden Knoten eingeschaltet, sonst gehen Name, Betreff und Nachricht verloren.",
        "height": 180,
        "width": 420,
        "color": 7
      },
      "id": "aa6546d1-e79d-415b-b548-b65912162d5a",
      "name": "Sticky Note 920",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        660,
        260
      ]
    },
    {
      "parameters": {
        "content": "### Einmal zum Start\nDieser kleine Zweig legt die Data table **Anfragenprotokoll** an. Einmal **Execute step** am rechten Knoten, fertig. Zum eigentlichen Ablauf gehört er nicht.",
        "height": 150,
        "width": 560,
        "color": 6
      },
      "id": "8bea0654-cdf6-46a6-b02a-34f1036aad58",
      "name": "Sticky Note 600",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        560
      ]
    },
    {
      "parameters": {
        "formTitle": "Ihre Anfrage an die Hausverwaltung Brückner",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name"
            },
            {
              "fieldLabel": "Betreff"
            },
            {
              "fieldLabel": "Nachricht",
              "fieldType": "textarea"
            }
          ]
        },
        "options": {}
      },
      "id": "a5fc79f5-b8c8-46ea-8df7-c988de7bd91f",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.6,
      "position": [
        0,
        0
      ],
      "webhookId": "cefe0834-805c-4798-8ace-852db66330ca"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "c7ec6ce9-a448-41c3-b47c-4d0c69291c9c",
              "leftValue": "={{ $json.Nachricht }}",
              "rightValue": "wasser",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            },
            {
              "id": "cf3b58be-ff47-472f-8d17-931ce5b8f89e",
              "leftValue": "={{ $json.Nachricht }}",
              "rightValue": "heizung",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            },
            {
              "id": "0844569d-0a8f-42f0-ae72-0e24ed2c57fe",
              "leftValue": "={{ $json.Nachricht }}",
              "rightValue": "notfall",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            },
            {
              "id": "9e5e686c-6e4f-4878-9e3e-3301614dd243",
              "leftValue": "={{ $json.Nachricht }}",
              "rightValue": "rohrbruch",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ],
          "combinator": "or"
        },
        "options": {}
      },
      "id": "496ead7b-9627-46b1-9102-992329d69d2c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.4,
      "position": [
        260,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "32f77c07-e4b2-4868-9856-6440187f3b40",
              "name": "Einstufung",
              "value": "dringend",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "af5d89f8-8539-4c36-bf67-8dde8c466dd4",
      "name": "Einstufung dringend",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        540,
        -120
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "7b1e9601-7a15-43d7-8cb9-3172786c77b4",
              "name": "Einstufung",
              "value": "normal",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "59060b32-4c9e-49f3-b181-876f617a186b",
      "name": "Einstufung normal",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        540,
        120
      ]
    },
    {
      "parameters": {
        "resource": "row",
        "operation": "insert",
        "dataTableId": {
          "__rl": true,
          "mode": "name",
          "value": "Anfragenprotokoll"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Name": "={{ $json.Name }}",
            "Betreff": "={{ $json.Betreff }}",
            "Nachricht": "={{ $json.Nachricht }}",
            "Einstufung": "={{ $json.Einstufung }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Betreff",
              "displayName": "Betreff",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Nachricht",
              "displayName": "Nachricht",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Einstufung",
              "displayName": "Einstufung",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "id": "6c412e46-b4d4-4f9b-9a31-3091bedf6b62",
      "name": "Insert row",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        820,
        0
      ]
    },
    {
      "parameters": {},
      "id": "614e449b-2b49-4984-9789-2b0e82f67e4b",
      "name": "Einmal zum Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        420
      ]
    },
    {
      "parameters": {
        "resource": "table",
        "operation": "create",
        "tableName": "Anfragenprotokoll",
        "columns": {
          "column": [
            {
              "name": "Name",
              "type": "string"
            },
            {
              "name": "Betreff",
              "type": "string"
            },
            {
              "name": "Nachricht",
              "type": "string"
            },
            {
              "name": "Einstufung",
              "type": "string"
            }
          ]
        },
        "options": {
          "createIfNotExists": true
        }
      },
      "id": "3e19e812-d3bb-476a-9b57-dd7c17b53c40",
      "name": "Tabelle Anfragenprotokoll anlegen",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        260,
        420
      ]
    }
  ],
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Einstufung dringend",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Einstufung normal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Einstufung dringend": {
      "main": [
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Einstufung normal": {
      "main": [
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Einmal zum Start": {
      "main": [
        [
          {
            "node": "Tabelle Anfragenprotokoll anlegen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": []
}