{
    "name": "Excuse Decision Workflow",
    "nodes": [
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "excuse-decision",
                "options": []
            },
            "id": "node-excuse-decision-trigger",
            "name": "Webhook Trigger",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                100,
                240
            ]
        },
        {
            "parameters": {
                "method": "POST",
                "url": "https://albsaer.bzzix.com/api/automation/send-whatsapp",
                "authentication": "genericCredentialType",
                "genericAuthType": "httpHeaderAuth",
                "sendBody": true,
                "specifyBody": "json",
                "jsonBody": "={\n  \"phone\": \"{{ $json.body.phone }}\",\n  \"template\": \"{{ $json.body.template }}\",\n  \"variables\": [\n    \"{{ $json.body.variables.username }}\",\n    \"{{ $json.body.variables.decision_status }}\",\n    \"{{ $json.body.variables.excuse_date }}\",\n    \"{{ $json.body.variables.review_notes }}\"\n  ]\n}",
                "options": {}
            },
            "id": "node-notify-student-decision",
            "name": "Notify Student (Respond.io)",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 4.1,
            "position": [
                360,
                240
            ],
            "credentials": {
                "httpHeaderAuth": {
                    "id": "LaravelTokenCredential",
                    "name": "Laravel API Token"
                }
            }
        }
    ],
    "connections": {
        "Webhook Trigger": {
            "main": [
                [
                    {
                        "node": "Notify Student (Respond.io)",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "active": true,
    "settings": {
        "executionOrder": "v1"
    },
    "meta": {
        "templateCredsSetupCompleted": true
    }
}