{
  "name": "Onboarding",
  "nodes": [
    {
      "parameters": {
        "formTitle": "Neuer Mitarbeiter \u2014 Onboarding",
        "formDescription": "Bitte die Daten des neuen Mitarbeiters eintragen.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Vorname",
              "requiredField": true
            },
            {
              "fieldLabel": "Nachname",
              "requiredField": true
            },
            {
              "fieldLabel": "Abteilung",
              "fieldType": "dropdown",
              "fieldOptions": {
                "values": [
                  {
                    "option": "Geschaeftsfuehrung"
                  },
                  {
                    "option": "Vertrieb"
                  },
                  {
                    "option": "Einkauf"
                  },
                  {
                    "option": "Buchhaltung"
                  }
                ]
              },
              "requiredField": true
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.6,
      "position": [
        0,
        -272
      ],
      "id": "64668032-c0f5-438b-a057-255777e4646d",
      "name": "On form submission"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://10.10.10.10:8080/onboarding/",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"vorname\": \"{{ $json.Vorname }}\",\n  \"nachname\": \"{{ $json.Nachname }}\",\n  \"abteilung\": \"{{ $json.Abteilung }}\",\n  \"apikey\": \"REPLACE_ME\"\n}",
        "options": {
          "response": {
            "response": {
              "neverError": true
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        240,
        -432
      ],
      "id": "63c242b9-6107-4e2d-93a5-4c65bf7c708c",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "f1e1c3ae-edbd-46b8-8b9f-52e182f110c0",
              "leftValue": "={{ $json.status }}",
              "rightValue": "ok",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        496,
        -272
      ],
      "id": "8009519b-67f4-4d0f-bc90-3672784fa3bc",
      "name": "If"
    },
    {
      "parameters": {
        "chatId": "REPLACE_ME",
        "text": "=\u2705 Neuer Benutzer angelegt: {{ $json.benutzer }} | OU: {{ $json.ou }} | Gruppe: {{ $json.gruppe }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        736,
        -368
      ],
      "id": "c21c7d53-5c82-4016-aea2-7050cfd334b0",
      "name": "Send a text message1",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "REPLACE_ME",
        "text": "=\u274c Onboarding fehlgeschlagen: {{ $json.meldung }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        736,
        -176
      ],
      "id": "8fc9635a-908d-4655-b793-adc15fbd15fb",
      "name": "Send a text message2",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Send a text message1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "versionId": "8cbeda6e-2588-489d-91e6-5303be6183a8",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodeGroups": [],
  "id": "VwC8scHHvXAPFumT",
  "tags": []
}