139 lines
15 KiB
JSON
139 lines
15 KiB
JSON
{
|
||
"updatedAt": "2025-12-24T13:28:12.000Z",
|
||
"createdAt": "2025-12-21T08:27:02.744Z",
|
||
"id": "N4n2HmA6azz8n7Uw",
|
||
"name": "Test",
|
||
"active": false,
|
||
"isArchived": false,
|
||
"nodes": [
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-176,
|
||
0
|
||
],
|
||
"id": "14b9aab7-ef42-4b8b-a9de-7ca6403fc9bd",
|
||
"name": "When clicking ‘Execute workflow’"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "http://192.168.178.165/api/v1/rules",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBearerAuth",
|
||
"sendBody": true,
|
||
"specifyBody": "json",
|
||
"jsonBody": "={{$json}}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.3,
|
||
"position": [
|
||
416,
|
||
96
|
||
],
|
||
"id": "ca72dd9a-8f5c-46e2-9e0f-03cf6c15836f",
|
||
"name": "HTTP Request",
|
||
"credentials": {
|
||
"httpBearerAuth": {
|
||
"id": "a4Ky99AEQbpdFkpb",
|
||
"name": "FireFly"
|
||
}
|
||
},
|
||
"onError": "continueRegularOutput"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "return [\n {\n \"title\": \"Spenden\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Spende\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Spenden\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Telekommunikation: Handy Verträge\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Handy\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Telekommunikation: Handy Verträge\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Telekommunikation: Streaming\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Netfilx\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Telekommunikation: Streaming\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Unterhaltung: Ausgehen\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Unterhaltung: Ausgehen\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Unterhaltung: Musik/Kino\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Kino\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Unterhaltung: Musik/Kino\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Unterhaltung: Reisen\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Reisen\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Unterhaltung: Reisen\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Unterhaltung: Sport\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Sport\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Unterhaltung: Sport\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Versicherungen: Kfz-Versicherung\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Versicherung\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Versicherungen: Kfz-Versicherung\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Versicherungen: PHV-Haftpflicht\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Haftpflicht\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Versicherungen: PHV-Haftpflicht\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Versicherungen: Rechtschutzversicherung\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Rechtschutzversicherung\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Versicherungen: Rechtschutzversicherung\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Miete\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Miete\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Miete\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Möbel\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Möbel\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Möbel\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Nebenkosten: Abfall\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Abfall\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Nebenkosten: Abfall\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Nebenkosten: Sonstiges\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Sonstiges\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Nebenkosten: Sonstiges\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Nebenkosten: Strom\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Strom\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Nebenkosten: Strom\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Nebenkosten: Wasser\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \"Wasser\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Nebenkosten: Wasser\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n },\n {\n \"title\": \"Wohnen: Telefon / Internet\",\n \"rule_group_id\": \"1\",\n \"trigger\": \"store-journal\",\n \"active\": true,\n \"strict\": true,\n \"stop_processing\": false,\n \"triggers\": [\n {\n \"type\": \"description_contains\",\n \"value\": \" Internet\",\n \"order\": 1,\n \"active\": true,\n \"prohibited\": false,\n \"stop_processing\": false\n }\n ],\n \"actions\": [\n {\n \"type\": \"set_category\",\n \"value\": \"Wohnen: Telefon / Internet\",\n \"order\": 1,\n \"active\": true,\n \"stop_processing\": false\n }\n ]\n }\n]"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
0,
|
||
0
|
||
],
|
||
"id": "544d982c-b4f7-40a7-b440-04b880a96bde",
|
||
"name": "Code in JavaScript"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.splitInBatches",
|
||
"typeVersion": 3,
|
||
"position": [
|
||
208,
|
||
0
|
||
],
|
||
"id": "a6006884-2b26-4f34-a082-a17f2474c750",
|
||
"name": "Loop Over Items"
|
||
}
|
||
],
|
||
"connections": {
|
||
"When clicking ‘Execute workflow’": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Code in JavaScript",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Loop Over Items",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Loop Over Items": {
|
||
"main": [
|
||
[],
|
||
[
|
||
{
|
||
"node": "HTTP Request",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Loop Over Items",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"settings": {
|
||
"executionOrder": "v1"
|
||
},
|
||
"staticData": null,
|
||
"meta": null,
|
||
"pinData": {},
|
||
"versionId": "01f19bf9-dd93-4337-8748-e82dcbbf3a84",
|
||
"triggerCount": 0,
|
||
"shared": [
|
||
{
|
||
"updatedAt": "2025-12-21T08:27:02.747Z",
|
||
"createdAt": "2025-12-21T08:27:02.747Z",
|
||
"role": "workflow:owner",
|
||
"workflowId": "N4n2HmA6azz8n7Uw",
|
||
"projectId": "S4tmpzSj6JlGFOze"
|
||
}
|
||
],
|
||
"tags": []
|
||
} |