{
  "name": "E-Mail zu Slack mit Prioritätsfilter",
  "nodes": [
    {
      "parameters": {},
      "id": "email-to-slack-priority-1",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "notes": "Wichtige E-Mails erkennen und nur relevante Nachrichten ins Team weiterleiten."
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.status || \"ok\" }}",
              "operation": "isNotEmpty"
            }
          ]
        }
      },
      "id": "email-to-slack-priority-2",
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        260,
        0
      ]
    },
    {
      "parameters": {},
      "id": "email-to-slack-priority-3",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        520,
        0
      ]
    },
    {
      "parameters": {},
      "id": "email-to-slack-priority-4",
      "name": "Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        780,
        0
      ]
    }
  ],
  "connections": {
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Europe/Berlin"
  },
  "staticData": null,
  "meta": {
    "templateId": "n8nexperten-email-to-slack-priority",
    "description": "Wichtige E-Mails erkennen und nur relevante Nachrichten ins Team weiterleiten.",
    "setupSteps": [
      "Mailkonto verbinden.",
      "Label oder Keyword-Regeln setzen.",
      "Nachricht formatieren.",
      "Slack Channel auswählen."
    ],
    "privacyNotes": [
      "Keine kompletten E-Mail-Verläufe in Slack posten.",
      "Betroffene Channels begrenzen.",
      "E-Mail-Inhalte können personenbezogene Daten enthalten."
    ],
    "testPayload": {
      "from": "kunde@example.com",
      "subject": "Dringend: Login Problem",
      "priority": "hoch"
    }
  }
}