Zum Inhalt
Kaffeeundcode
n8n Flow-Bibliothek
n8n Workflow 13.10.2026

Flow Arbeitsbereich

Leaver AutoReply Setup

Flow prüfen, Nodes verstehen, JSON importieren und Credentials sauber anpassen.

Workflow Diagramm

auto-generiert
graph LR
    N0(["⚡ Webhook Trigger"])
    N1["🔧 Set Auto Reply"]
    N2["🔧 Confirm Action"]
    N0 --> N1
    N1 --> N2

    classDef trigger fill:#f59e0b,stroke:#b45309,color:#000
    classDef action fill:#292524,stroke:#44403c,color:#e7e5e4
    classDef logic fill:#1e1b4b,stroke:#4338ca,color:#c7d2fe
    class N0 trigger
    class N1 action
    class N2 action

27_Leaver_AutoReply_Setup.json

{
    "name": "27_Leaver_AutoReply_Setup",
    "nodes": [
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "leaver-process",
                "options": {}
            },
            "name": "Webhook Trigger",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                250,
                300
            ]
        },
        {
            "parameters": {
                "authentication": "predefinedCredentialType",
                "nodeCredentialType": "microsoftGraphOAuth2Api",
                "requestMethod": "POST",
                "url": "=https://graph.microsoft.com/v1.0/users/{{ $json.body.userId }}/mailboxSettings/automaticRepliesSetting",
                "options": {},
                "bodyParametersJson": "{\n  \"status\": \"alwaysEnabled\",\n  \"internalReplyMessage\": \"<html><body>I have left the company.</body></html>\",\n  \"externalReplyMessage\": \"<html><body>I have left the company. Please contact HR.</body></html>\"\n}"
            },
            "name": "Set Auto Reply",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 3,
            "position": [
                450,
                300
            ],
            "credentials": {
                "microsoftGraphOAuth2Api": {
                    "id": "YOUR_CREDENTIAL_ID",
                    "name": "Microsoft Graph Account"
                }
            }
        },
        {
            "parameters": {
                "resource": "chat",
                "message": "=✅ **Leaver Processed**\nAuto-reply set for user {{ $json.body.userId }}."
            },
            "name": "Confirm Action",
            "type": "n8n-nodes-base.microsoftTeams",
            "typeVersion": 1,
            "position": [
                650,
                300
            ]
        }
    ],
    "connections": {
        "Webhook Trigger": {
            "main": [
                [
                    {
                        "node": "Set Auto Reply",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Set Auto Reply": {
            "main": [
                [
                    {
                        "node": "Confirm Action",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}