Preisregel im Brief, Preispruefung in Workflow 2

This commit is contained in:
2026-09-20 12:46:15 +02:00
parent a3e11c378f
commit 8ab9fe4be5

94
workflows/netzcheck.json Normal file
View File

@@ -0,0 +1,94 @@
{
"name": "netzcheck (Hilfswerkzeug)",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "probe",
"responseMode": "lastNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
0,
0
],
"id": "8dd2814e-3450-4588-b320-87411c401e6e",
"name": "Start",
"webhookId": "363967d5-5a68-42f5-9751-81acd540ea90"
},
{
"parameters": {
"method": "GET",
"url": "={{ $json.body.url }}",
"options": {
"response": {
"response": {
"neverError": true,
"fullResponse": true
}
},
"timeout": 10000,
"allowUnauthorizedCerts": true,
"redirect": {
"redirect": {
"followRedirects": false
}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.3,
"position": [
240,
0
],
"id": "3a1f60de-0386-4822-a04c-ea6db2ea3dc8",
"name": "Probe",
"onError": "continueRegularOutput",
"alwaysOutputData": true
},
{
"parameters": {
"mode": "runOnceForAllItems",
"jsCode": "\nconst j=$input.first().json;\nif (j.error) return [{json:{ergebnis:'FEHLER', code:String(j.error.code||''), meldung:String(j.error.message||'').slice(0,100)}}];\nconst k = (j.body !== undefined) ? j.body : j.data;\nconst txt = typeof k==='string' ? k : JSON.stringify(k);\nreturn [{json:{ergebnis:'HTTP '+j.statusCode, bytes:(txt||'').length,\n server:(j.headers||{}).server||null, location:(j.headers||{}).location||null,\n anfang:(txt||'').slice(0,100)}}];\n"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
480,
0
],
"id": "35bc5ca3-027b-4dc0-94e2-f9e4fec03b90",
"name": "Antwort"
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Probe",
"type": "main",
"index": 0
}
]
]
},
"Probe": {
"main": [
[
{
"node": "Antwort",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}