{ "nodes": [ { "parameters": { "httpMethod": "POST", "path": "ha-notification", "options": {} }, "id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d", "name": "HA Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 1, "position": [ 250, 300 ] }, { "parameters": { "conditions": { "string": [ { "value1": "={{ $json.body.urgency }}", "value2": "high" } ] } }, "id": "b2c3d4e5-f6a7-5b6c-9d0e-1f2a3b4c5d6e", "name": "Classify Urgency", "type": "n8n-nodes-base.if", "typeVersion": 1, "position": [ 450, 300 ] }, { "parameters": { "method": "POST", "url": "http://localhost:8080/speak", "sendBody": true, "bodyParameters": { "parameters": [ { "name": "text", "value": "={{ $json.body.message }}" } ] }, "options": {} }, "id": "c3d4e5f6-a7b8-6c7d-0e1f-2a3b4c5d6e7f", "name": "TTS Immediately", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.1, "position": [ 700, 200 ] }, { "parameters": { "jsCode": "return { status: 'queued', message: $json.body.message };" }, "id": "d4e5f6a7-b8c9-7d8e-1f2a-3b4c5d6e7f8a", "name": "Queue Notification", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ 700, 400 ] } ], "connections": { "HA Webhook": { "main": [ [ { "node": "Classify Urgency", "type": "main", "index": 0 } ] ] }, "Classify Urgency": { "main": [ [ { "node": "TTS Immediately", "type": "main", "index": 0 } ], [ { "node": "Queue Notification", "type": "main", "index": 1 } ] ] } } }