From f06857b6f0ca59f7fb8941a39a364b2520ddf0b3 Mon Sep 17 00:00:00 2001 From: EidanThen Date: Fri, 12 Jun 2026 19:05:10 +0000 Subject: [PATCH] Update glmway-workflow.json --- glmway-workflow.json | 609 +++++++++++++++++++++++++++++++------------ 1 file changed, 447 insertions(+), 162 deletions(-) diff --git a/glmway-workflow.json b/glmway-workflow.json index a6c2c9d..641944b 100644 --- a/glmway-workflow.json +++ b/glmway-workflow.json @@ -1,6 +1,6 @@ { "$json": { - "updatedAt": "2026-06-12T18:58:12.558Z", + "updatedAt": "2026-06-12T19:05:06.733Z", "createdAt": "2026-06-08T13:50:12.174Z", "id": "F1iPg8hktNAebZua", "name": "GLMWay", @@ -43,8 +43,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 400, - -432 + 608, + -448 ], "id": "89b4b09b-b56a-4b21-beab-f1eace2ebd7d", "name": "Informacion del empleado", @@ -71,7 +71,7 @@ { "parameters": { "method": "POST", - "url": "=https://git.digitalcompass.agency/api/v1/repos/mgomez/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", + "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $('Valores').item.json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, @@ -721,31 +721,6 @@ }, "disabled": true }, - { - "parameters": { - "pollTimes": { - "item": [] - }, - "maxResults": 1, - "filters": { - "sender": "notifications@app.bamboohr.com" - } - }, - "type": "n8n-nodes-base.gmailTrigger", - "typeVersion": 1.4, - "position": [ - 272, - 112 - ], - "id": "4f97bda3-cbd1-4fa7-8be7-83bcda000f74", - "name": "Gmail Trigger", - "credentials": { - "gmailOAuth2": { - "id": "QWNicjw1khRm5BVI", - "name": "Eidan - Gmail account" - } - } - }, { "parameters": { "fieldsUi": { @@ -771,35 +746,64 @@ { "parameters": { "pollTimes": { - "item": [ - { - "mode": "everyMinute" - } - ] + "item": [] }, "calendarId": { "__rl": true, + "value": "ethen@gomezleemarketing.com", "mode": "list", - "value": "" + "cachedResultName": "ethen@gomezleemarketing.com" }, "triggerOn": "eventStarted", - "options": {} + "options": { + "matchTerm": "training" + } }, "type": "n8n-nodes-base.googleCalendarTrigger", "typeVersion": 1, "position": [ -352, - -464 + -896 ], "id": "92aaf072-5cf8-4ffd-b641-20fa5fb88103", - "name": "Google Calendar Trigger", + "name": "Comenzo evento ingles", "credentials": { "googleCalendarOAuth2Api": { "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } + } + }, + { + "parameters": { + "pollTimes": { + "item": [] + }, + "calendarId": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "triggerOn": "eventStarted", + "options": { + "matchTerm": "entrenamiento" + } }, - "disabled": true + "type": "n8n-nodes-base.googleCalendarTrigger", + "typeVersion": 1, + "position": [ + -352, + -720 + ], + "id": "34eb762f-b9c7-4a72-94ce-3ce246c7c790", + "name": "Comenzo evento español", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } }, { "parameters": { @@ -812,27 +816,60 @@ }, "calendarId": { "__rl": true, + "value": "ethen@gomezleemarketing.com", "mode": "list", - "value": "" + "cachedResultName": "ethen@gomezleemarketing.com" }, "triggerOn": "eventEnded", - "options": {} + "options": { + "matchTerm": "entrenamiento" + } }, "type": "n8n-nodes-base.googleCalendarTrigger", "typeVersion": 1, "position": [ -352, - -304 + -352 ], "id": "e0c4da60-bbbe-4cc1-b340-1749e204b6b2", - "name": "Google Calendar Trigger1", + "name": "Termino evento español", "credentials": { "googleCalendarOAuth2Api": { "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } + } + }, + { + "parameters": { + "pollTimes": { + "item": [] + }, + "calendarId": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "triggerOn": "eventEnded", + "options": { + "matchTerm": "training" + } }, - "disabled": true + "type": "n8n-nodes-base.googleCalendarTrigger", + "typeVersion": 1, + "position": [ + -352, + -528 + ], + "id": "cd1a89d4-21e5-475e-93ed-4f00bbfd0190", + "name": "Termino evento ingles", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } } ], "connections": { @@ -969,7 +1006,13 @@ "executionOrder": "v1", "binaryMode": "separate" }, - "staticData": null, + "staticData": { + "node:Gmail Trigger": { + "Gmail Trigger": { + "lastTimeChecked": 1781290702 + } + } + }, "meta": { "templateCredsSetupCompleted": true }, @@ -1020,10 +1063,10 @@ } ] }, - "versionId": "63420639-f34b-4255-9b31-ab2f1ea02e82", - "activeVersionId": "ae5f0096-4d77-451f-bd7c-f8fdf88e0a45", - "versionCounter": 226, - "triggerCount": 1, + "versionId": "26926775-f93b-44a0-a18a-6a3baa1fe459", + "activeVersionId": "8c3bc7f9-7f34-4f8a-b222-b4a767b8c671", + "versionCounter": 274, + "triggerCount": 2, "shared": [ { "updatedAt": "2026-06-08T13:50:12.177Z", @@ -1045,9 +1088,9 @@ ], "tags": [], "activeVersion": { - "updatedAt": "2026-06-12T15:55:04.000Z", - "createdAt": "2026-06-12T15:11:38.980Z", - "versionId": "ae5f0096-4d77-451f-bd7c-f8fdf88e0a45", + "updatedAt": "2026-06-12T18:58:23.000Z", + "createdAt": "2026-06-12T18:58:20.642Z", + "versionId": "8c3bc7f9-7f34-4f8a-b222-b4a767b8c671", "workflowId": "F1iPg8hktNAebZua", "nodes": [ { @@ -1059,8 +1102,8 @@ "type": "n8n-nodes-base.webhook", "typeVersion": 2.1, "position": [ - 0, - 0 + -352, + -144 ], "id": "4cff954f-86fd-4835-8463-b083e3a66f35", "name": "Webhook", @@ -1085,8 +1128,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 432, - -192 + 400, + -432 ], "id": "89b4b09b-b56a-4b21-beab-f1eace2ebd7d", "name": "Informacion del empleado", @@ -1105,7 +1148,7 @@ "typeVersion": 1, "position": [ -656, - 544 + 928 ], "id": "a2082638-94e3-4a91-aeac-f7849833a6a1", "name": "When clicking ‘Execute workflow’" @@ -1113,16 +1156,9 @@ { "parameters": { "method": "POST", - "url": "=https://git.digitalcompass.agency/api/v1/repos/mgomez/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "Authorization", - "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" - } - ] - }, + "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $('Valores').item.json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", + "authentication": "genericCredentialType", + "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", @@ -1132,15 +1168,21 @@ "typeVersion": 4.4, "position": [ 304, - 656 + 1040 ], "id": "e428eaaf-f678-45ac-bbcc-926f8bd574b7", "name": "Subir archivo", - "retryOnFail": false + "retryOnFail": false, + "credentials": { + "httpHeaderAuth": { + "id": "R4tnNpYoEjhBYeUT", + "name": "Eidan - gitea" + } + } }, { "parameters": { - "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json", + "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $json.user }}/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendHeaders": true, @@ -1153,14 +1195,14 @@ "typeVersion": 4.4, "position": [ -304, - 544 + 928 ], "id": "58d2c064-8982-42b0-8f1a-a10d018dff94", "name": "Obtener archivo", "credentials": { "httpHeaderAuth": { - "id": "KMhOYCzV5kCW5ztz", - "name": "Header Auth account 3" + "id": "R4tnNpYoEjhBYeUT", + "name": "Eidan - gitea" } }, "onError": "continueErrorOutput" @@ -1168,16 +1210,9 @@ { "parameters": { "method": "PUT", - "url": "=https://git.digitalcompass.agency/api/v1/repos/mgomez/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "Authorization", - "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" - } - ] - }, + "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $('Valores').item.json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", + "authentication": "genericCredentialType", + "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"sha\": \"{{ $json.sha }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", @@ -1187,10 +1222,16 @@ "typeVersion": 4.4, "position": [ 304, - 448 + 832 ], "id": "f804d797-946f-4673-8291-308d47ede436", - "name": "Actualizar archivo" + "name": "Actualizar archivo", + "credentials": { + "httpHeaderAuth": { + "id": "R4tnNpYoEjhBYeUT", + "name": "Eidan - gitea" + } + } }, { "parameters": { @@ -1207,7 +1248,7 @@ "typeVersion": 1, "position": [ -48, - 448 + 832 ], "id": "a6420476-f217-4079-b7a0-194969a2dac2", "name": "Get a workflow1", @@ -1233,7 +1274,7 @@ "typeVersion": 1, "position": [ -48, - 656 + 1040 ], "id": "f96e2477-f9db-4d36-a162-836d05dcd8ab", "name": "Get a workflow2", @@ -1248,6 +1289,12 @@ "parameters": { "assignments": { "assignments": [ + { + "id": "31558805-f167-47c4-b0b4-46b8a80ca282", + "name": "user", + "value": "mgomez", + "type": "string" + }, { "id": "3519ad4c-6d66-4963-ab76-ee5517d88d67", "name": "repo_name", @@ -1268,7 +1315,7 @@ "typeVersion": 3.4, "position": [ -480, - 544 + 928 ], "id": "fa4f3a95-6fe7-41c4-9a90-f4a3f58e06a8", "name": "Valores" @@ -1281,7 +1328,7 @@ "typeVersion": 2, "position": [ 128, - 448 + 832 ], "id": "5d50d650-f0b6-4046-b9c1-974664b655f6", "name": "Code in JavaScript2" @@ -1294,7 +1341,7 @@ "typeVersion": 2, "position": [ 128, - 656 + 1040 ], "id": "30ffb25f-3ad7-465d-9630-887828df95f6", "name": "Code in JavaScript4" @@ -1318,8 +1365,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - -336, - 64 + -416, + 128 ], "id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be", "name": "Informacion del supervisor", @@ -1340,8 +1387,8 @@ "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ - 928, - 368 + 880, + 480 ], "id": "bb1e4101-a118-4423-a863-dc0ac1cdc372", "name": "Get many employees", @@ -1385,8 +1432,8 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 608, - 0 + 928, + -224 ], "id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7", "name": "Get row(s) in sheet", @@ -1519,8 +1566,8 @@ "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ - 176, - 0 + -176, + -144 ], "id": "5b4b3106-f932-4430-a11e-ebcc1740f884", "name": "Get an employee", @@ -1550,8 +1597,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 352, - 0 + 0, + -144 ], "id": "ae2aff4d-5874-4181-9801-cf51d5cc4ff3", "name": "Informacion del empleado2", @@ -1564,62 +1611,6 @@ } } }, - { - "parameters": { - "resource": "calendar", - "calendar": { - "__rl": true, - "value": "ethen@gomezleemarketing.com", - "mode": "list", - "cachedResultName": "ethen@gomezleemarketing.com" - }, - "options": {} - }, - "type": "n8n-nodes-base.googleCalendar", - "typeVersion": 1.3, - "position": [ - 704, - -272 - ], - "id": "2cd687f2-a8b5-4c46-854a-4f60b4d7107f", - "name": "Get availability in a calendar", - "credentials": { - "googleCalendarOAuth2Api": { - "id": "yEmGG4av5RxOK7wu", - "name": "Eidan - Google Calendar account" - } - } - }, - { - "parameters": { - "operation": "getAll", - "calendar": { - "__rl": true, - "value": "ethen@gomezleemarketing.com", - "mode": "list", - "cachedResultName": "ethen@gomezleemarketing.com" - }, - "returnAll": true, - "options": { - "iCalUID": "", - "query": "Entrenamiento" - } - }, - "type": "n8n-nodes-base.googleCalendar", - "typeVersion": 1.3, - "position": [ - 848, - -32 - ], - "id": "01099730-b224-4b81-98cc-b924e2b02367", - "name": "Get many events", - "credentials": { - "googleCalendarOAuth2Api": { - "id": "yEmGG4av5RxOK7wu", - "name": "Eidan - Google Calendar account" - } - } - }, { "parameters": { "operation": "getAll", @@ -1632,7 +1623,6 @@ "returnAll": true, "timeMax": "={{ $now.plus({ week: 3 }) }}", "options": { - "iCalUID": "", "query": "Entrenamiento" } }, @@ -1650,6 +1640,284 @@ "name": "Eidan - Google Calendar account" } } + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 2 + }, + "conditions": [ + { + "id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Jamaica", + "operator": { + "type": "string", + "operation": "notEquals" + } + }, + { + "id": "32931394-f4ea-4055-b866-906a81988173", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Trinidad and Tobago", + "operator": { + "type": "string", + "operation": "notEquals" + } + }, + { + "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Barbados", + "operator": { + "type": "string", + "operation": "notEquals" + } + }, + { + "id": "28e49217-0c1a-4462-9642-676e54926d3e", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Saint Thomas", + "operator": { + "type": "string", + "operation": "notEquals" + } + }, + { + "id": "634f5b1c-fd01-4d42-9a63-4351852f5210", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Trinidad & Tobago", + "operator": { + "type": "string", + "operation": "notEquals" + } + }, + { + "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "St. Croix", + "operator": { + "type": "string", + "operation": "notEquals" + } + }, + { + "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Tobago", + "operator": { + "type": "string", + "operation": "notEquals" + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + 176, + -144 + ], + "id": "b7950711-8695-4232-88ab-6b013a0c29d1", + "name": "Pais?" + }, + { + "parameters": { + "resource": "calendar", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "options": {} + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 400, + -224 + ], + "id": "2cd687f2-a8b5-4c46-854a-4f60b4d7107f", + "name": "Entrenamiento español", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "operation": "getAll", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "returnAll": true, + "timeMax": "={{ $now.plus({ week: 4 }) }}", + "options": { + "query": "Training" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 400, + -48 + ], + "id": "01099730-b224-4b81-98cc-b924e2b02367", + "name": "Entrenamiento ingles", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "options": {} + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 640, + -224 + ], + "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", + "name": "Send a message", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "pollTimes": { + "item": [] + }, + "maxResults": 1, + "filters": { + "sender": "notifications@app.bamboohr.com" + } + }, + "type": "n8n-nodes-base.gmailTrigger", + "typeVersion": 1.4, + "position": [ + 272, + 112 + ], + "id": "4f97bda3-cbd1-4fa7-8be7-83bcda000f74", + "name": "Gmail Trigger", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + } + }, + { + "parameters": { + "fieldsUi": { + "fieldValues": [] + } + }, + "type": "n8n-nodes-base.supabase", + "typeVersion": 1, + "position": [ + 1088, + -432 + ], + "id": "dcdef9fc-9c61-45dd-9604-56037eac4c31", + "name": "Create a row", + "credentials": { + "supabaseApi": { + "id": "2PlsR6rpK7rQTIEn", + "name": "Sofia test - Supabase account" + } + }, + "disabled": true + }, + { + "parameters": { + "pollTimes": { + "item": [ + { + "mode": "everyMinute" + } + ] + }, + "calendarId": { + "__rl": true, + "mode": "list", + "value": "" + }, + "triggerOn": "eventStarted", + "options": {} + }, + "type": "n8n-nodes-base.googleCalendarTrigger", + "typeVersion": 1, + "position": [ + -352, + -464 + ], + "id": "92aaf072-5cf8-4ffd-b641-20fa5fb88103", + "name": "Google Calendar Trigger", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + }, + "disabled": true + }, + { + "parameters": { + "pollTimes": { + "item": [ + { + "mode": "everyMinute" + } + ] + }, + "calendarId": { + "__rl": true, + "mode": "list", + "value": "" + }, + "triggerOn": "eventEnded", + "options": {} + }, + "type": "n8n-nodes-base.googleCalendarTrigger", + "typeVersion": 1, + "position": [ + -352, + -304 + ], + "id": "e0c4da60-bbbe-4cc1-b340-1749e204b6b2", + "name": "Google Calendar Trigger1", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + }, + "disabled": true } ], "connections": { @@ -1763,18 +2031,35 @@ } ] ] + }, + "Informacion del empleado2": { + "main": [ + [ + { + "node": "Pais?", + "type": "main", + "index": 0 + } + ] + ] + }, + "Pais?": { + "main": [ + [], + [] + ] } }, "authors": "Eidan Then", - "name": "Version ae5f0096", + "name": "Version 8c3bc7f9", "description": "", - "autosaved": false, + "autosaved": true, "workflowPublishHistory": [ { - "createdAt": "2026-06-12T15:55:04.894Z", - "id": 1358, + "createdAt": "2026-06-12T18:58:23.143Z", + "id": 1363, "workflowId": "F1iPg8hktNAebZua", - "versionId": "ae5f0096-4d77-451f-bd7c-f8fdf88e0a45", + "versionId": "8c3bc7f9-7f34-4f8a-b222-b4a767b8c671", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" }