465 lines
16 KiB
JSON
465 lines
16 KiB
JSON
{
|
||
"updatedAt": "2026-01-08T08:35:27.000Z",
|
||
"createdAt": "2026-01-04T21:51:46.836Z",
|
||
"id": "gkgv22mxUGzKIMZj",
|
||
"name": "CinemaxxTrack",
|
||
"active": true,
|
||
"isArchived": false,
|
||
"nodes": [
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
0,
|
||
0
|
||
],
|
||
"id": "65f10d3a-ac66-4187-b87d-cca0319a9ee3",
|
||
"name": "When clicking ‘Execute workflow’"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "https://serpapi.com/search",
|
||
"sendQuery": true,
|
||
"queryParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "api_key",
|
||
"value": "9e30106018e6a8663078fb9ead5249b53feb90ed6291b84ee3d52cc90dc3d840"
|
||
},
|
||
{
|
||
"name": "engine",
|
||
"value": "google"
|
||
},
|
||
{
|
||
"name": "q",
|
||
"value": "Kinoprogramm CinemaxX Heilbronn"
|
||
},
|
||
{
|
||
"name": "location",
|
||
"value": "Heilbronn"
|
||
},
|
||
{
|
||
"name": "hl",
|
||
"value": "en"
|
||
},
|
||
{
|
||
"name": "gl",
|
||
"value": "de"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.3,
|
||
"position": [
|
||
208,
|
||
0
|
||
],
|
||
"id": "41ded5c0-565c-4c44-9e5f-e2cadeed0903",
|
||
"name": "HTTP Request"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"fieldToSplitOut": "showtimes",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.splitOut",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
416,
|
||
0
|
||
],
|
||
"id": "cb3c6ba1-9f2b-4bc2-b83a-fbc5171814c8",
|
||
"name": "Split Out"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nvar showtimes_weekends = [];\nvar today_weekday = $now.setLocale('de').weekdayShort;\n\nfor (const item of $input.all()) {\n// if (([\"Fr\",\"Sa\",\"So\"]).includes(today_weekday){\n for (const movie of item.json.movies){\n const alleZeiten = movie.showing\n .map(entry => entry.time.join(\", \")) // Macht aus [\"17:00\", \"20:00\"] -> \"17:00, 20:00\"\n .join(\" | \"); // Verbindet die verschiedenen Gruppen (z.B. 2D und 3D)\n showtimes_weekends.push(\n {\n \"day\": item.json.day,\n \"movie\": movie.name,\n \"time\": alleZeiten,\n \"link\": movie.link\n }\n );\n }\n}\n\nreturn showtimes_weekends;"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
624,
|
||
0
|
||
],
|
||
"id": "f91cfd4f-03dd-471a-916a-7cc1e5fede55",
|
||
"name": "Code in JavaScript"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"modelId": {
|
||
"__rl": true,
|
||
"value": "models/gemini-2.5-flash",
|
||
"mode": "list",
|
||
"cachedResultName": "models/gemini-2.5-flash"
|
||
},
|
||
"messages": {
|
||
"values": [
|
||
{
|
||
"content": "=[Showtime start]\n{{ JSON.stringify($('Code in JavaScript').all().map(i => ({ id: i.json.day, name: i.json.movie, time: i.json.time }))) }}\n[Showtime ende]"
|
||
}
|
||
]
|
||
},
|
||
"options": {
|
||
"systemMessage": "Kannst du mir bitte die Tamil Filme aus der JSON die ich angehängt habe und gebe mir nur die item index nummer zurück.\nStelle sicher nur ein Array mit den indexen auszugeben verzichte auf andere texte.\n\nBeispieleingabe:\n[ \n{\n\"day\": \"So\",\n\"movie\": \"Now You See Me: Now You Don't\",\n\"time\": \"22:50\"\n}, \n{\n\"day\": \"So\",\n\"movie\": \"Parasakthi\",\n\"time\": \"19:00 | 10:50, 11:30, 13:00, 15:00, 17:30, 20:30, 22:00 | 16:00\"\n},\n{\n\"day\": \"So\",\n\"movie\": \"Billa\",\n\"time\": \"19:00 | 10:50, 11:30, 13:00, 15:00, 17:30, 20:30, 22:00 | 16:00\"\n}\n]\n\nAusgebendes Format:\n[1,2]\n\nAusgabe wenn kein Tamil Film vorhanden ist\n[]"
|
||
}
|
||
},
|
||
"type": "@n8n/n8n-nodes-langchain.googleGemini",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
848,
|
||
0
|
||
],
|
||
"id": "ed9fb215-82a6-418a-b8bd-d3cb33c3f966",
|
||
"name": "Message a model2",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 5000,
|
||
"alwaysOutputData": false,
|
||
"executeOnce": true,
|
||
"credentials": {
|
||
"googlePalmApi": {
|
||
"id": "6aXxUOlrkR5WFZf4",
|
||
"name": "Google Gemini(PaLM) Api account"
|
||
}
|
||
},
|
||
"onError": "continueRegularOutput"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"assignments": {
|
||
"assignments": [
|
||
{
|
||
"id": "5ef46e88-d057-485e-9a75-8dcd244c737f",
|
||
"name": "data",
|
||
"value": "={{ $json.content.parts[0].text.removeMarkdown().replaceAll('`','') }}",
|
||
"type": "array"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.set",
|
||
"typeVersion": 3.4,
|
||
"position": [
|
||
1232,
|
||
0
|
||
],
|
||
"id": "016cbcc0-1e6b-4e8a-9864-bb51a0cede7c",
|
||
"name": "dataPreparationToJSON"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 2
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "752c5b7f-ebad-432a-885d-03920a6a299e",
|
||
"leftValue": "={{ $json.data }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "array",
|
||
"operation": "notEmpty",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1440,
|
||
0
|
||
],
|
||
"id": "0983d518-3253-41bf-ac1a-9cb62d182a09",
|
||
"name": "If"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"chatId": "302560724",
|
||
"text": "={{ $input.all().map(item => \n \"Day: \" + item.json.day + \"\\n\" + \n \"Name: \" + item.json.movie + \"\\n\" + \n \"Time: \" + item.json.time + \"\\n\" +\n \"Link: \" + item.json.link + \"\\n\\n\" \n).join('') }}",
|
||
"additionalFields": {}
|
||
},
|
||
"type": "n8n-nodes-base.telegram",
|
||
"typeVersion": 1.2,
|
||
"position": [
|
||
1920,
|
||
-80
|
||
],
|
||
"id": "835f77b2-cf3c-494b-8baa-69d0330edec7",
|
||
"name": "Send a text message",
|
||
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
|
||
"credentials": {
|
||
"telegramApi": {
|
||
"id": "jGxFCFCy4GyzHcVQ",
|
||
"name": "Uptime-Kuma"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"chatId": "302560724",
|
||
"text": "Keine neuen Tamil Filme in Cinemaxx Heilbronn",
|
||
"replyMarkup": "=",
|
||
"forceReply": {},
|
||
"replyKeyboardOptions": {},
|
||
"replyKeyboardRemove": {},
|
||
"additionalFields": {}
|
||
},
|
||
"type": "n8n-nodes-base.telegram",
|
||
"typeVersion": 1.2,
|
||
"position": [
|
||
1920,
|
||
96
|
||
],
|
||
"id": "3352db71-a213-4ad6-8717-854b1114790d",
|
||
"name": "Send a text message1",
|
||
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
|
||
"credentials": {
|
||
"telegramApi": {
|
||
"id": "jGxFCFCy4GyzHcVQ",
|
||
"name": "Uptime-Kuma"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"chatId": "288081595",
|
||
"text": "={{ $input.all().map(item => \n \"Day: \" + item.json.day + \"\\n\" + \n \"Name: \" + item.json.movie + \"\\n\" + \n \"Time: \" + item.json.time + \"\\n\" +\n \"Link: \" + item.json.link + \"\\n\\n\" \n).join('') }}",
|
||
"additionalFields": {}
|
||
},
|
||
"type": "n8n-nodes-base.telegram",
|
||
"typeVersion": 1.2,
|
||
"position": [
|
||
1936,
|
||
-192
|
||
],
|
||
"id": "978140b7-59b2-433f-8c6d-44d69f05afaf",
|
||
"name": "Send a text message2",
|
||
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
|
||
"executeOnce": true,
|
||
"credentials": {
|
||
"telegramApi": {
|
||
"id": "jGxFCFCy4GyzHcVQ",
|
||
"name": "Uptime-Kuma"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"chatId": "288081595",
|
||
"text": "Keine neuen Tamil Filme in Cinemaxx Heilbronn",
|
||
"replyMarkup": "=",
|
||
"forceReply": {},
|
||
"replyKeyboardOptions": {},
|
||
"replyKeyboardRemove": {},
|
||
"additionalFields": {}
|
||
},
|
||
"type": "n8n-nodes-base.telegram",
|
||
"typeVersion": 1.2,
|
||
"position": [
|
||
1936,
|
||
256
|
||
],
|
||
"id": "28c9b01d-acb0-4de5-b089-0e3b61c20d25",
|
||
"name": "Send a text message3",
|
||
"webhookId": "6bb12551-6d47-40b7-8ffc-594e66295b8f",
|
||
"credentials": {
|
||
"telegramApi": {
|
||
"id": "jGxFCFCy4GyzHcVQ",
|
||
"name": "Uptime-Kuma"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"rule": {
|
||
"interval": [
|
||
{
|
||
"field": "weeks",
|
||
"triggerAtDay": [
|
||
4,
|
||
5,
|
||
6,
|
||
0,
|
||
2,
|
||
3
|
||
],
|
||
"triggerAtHour": 9
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.scheduleTrigger",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
0,
|
||
-128
|
||
],
|
||
"id": "8352cfc0-3d07-4319-bd2b-9e48a9916eef",
|
||
"name": "Schedule Trigger"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nconst movies = []\nfor (const item_index of $input.first().json.data) {\n movies.push($(\"Code in JavaScript\").all().at(item_index))\n}\n\nreturn movies;"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
1648,
|
||
-96
|
||
],
|
||
"id": "cb28d9df-4814-4832-9f3d-dbb8e1b0dc2c",
|
||
"name": "Code in JavaScript1"
|
||
}
|
||
],
|
||
"connections": {
|
||
"When clicking ‘Execute workflow’": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTTP Request",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"HTTP Request": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Split Out",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Split Out": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Code in JavaScript",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Message a model2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Message a model2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "dataPreparationToJSON",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"dataPreparationToJSON": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "If",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"If": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Code in JavaScript1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Send a text message1",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "Send a text message3",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Schedule Trigger": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "HTTP Request",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Send a text message2",
|
||
"type": "main",
|
||
"index": 0
|
||
},
|
||
{
|
||
"node": "Send a text message",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"settings": {
|
||
"executionOrder": "v1"
|
||
},
|
||
"staticData": {
|
||
"node:Schedule Trigger": {
|
||
"recurrenceRules": []
|
||
}
|
||
},
|
||
"meta": null,
|
||
"pinData": {},
|
||
"versionId": "75945c84-11ee-4396-9388-2b183204b858",
|
||
"triggerCount": 1,
|
||
"shared": [
|
||
{
|
||
"updatedAt": "2026-01-04T21:51:46.839Z",
|
||
"createdAt": "2026-01-04T21:51:46.839Z",
|
||
"role": "workflow:owner",
|
||
"workflowId": "gkgv22mxUGzKIMZj",
|
||
"projectId": "S4tmpzSj6JlGFOze"
|
||
}
|
||
],
|
||
"tags": []
|
||
} |