From d322986b9c315d22a75b47652a5cf5b311cccd24 Mon Sep 17 00:00:00 2001 From: EidanThen Date: Tue, 16 Jun 2026 16:58:17 +0000 Subject: [PATCH] Update glmway-workflow.json --- glmway-workflow.json | 3668 ++++++++++++++++++++++++++++++------------ 1 file changed, 2648 insertions(+), 1020 deletions(-) diff --git a/glmway-workflow.json b/glmway-workflow.json index 8af2050..6a8ea14 100644 --- a/glmway-workflow.json +++ b/glmway-workflow.json @@ -1,6 +1,6 @@ { "$json": { - "updatedAt": "2026-06-15T19:08:47.534Z", + "updatedAt": "2026-06-16T16:58:16.183Z", "createdAt": "2026-06-08T13:50:12.174Z", "id": "F1iPg8hktNAebZua", "name": "GLMWay", @@ -29,8 +29,8 @@ "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ - 1296, - 1024 + 2368, + 640 ], "id": "a2082638-94e3-4a91-aeac-f7849833a6a1", "name": "When clicking ‘Execute workflow’" @@ -49,8 +49,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 2256, - 1136 + 3328, + 752 ], "id": "e428eaaf-f678-45ac-bbcc-926f8bd574b7", "name": "Subir archivo", @@ -76,8 +76,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 1648, - 1024 + 2720, + 640 ], "id": "58d2c064-8982-42b0-8f1a-a10d018dff94", "name": "Obtener archivo", @@ -103,8 +103,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 2256, - 928 + 3328, + 544 ], "id": "f804d797-946f-4673-8291-308d47ede436", "name": "Actualizar archivo", @@ -129,8 +129,8 @@ "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ - 1904, - 928 + 2976, + 544 ], "id": "a6420476-f217-4079-b7a0-194969a2dac2", "name": "Get a workflow1", @@ -155,8 +155,8 @@ "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ - 1904, - 1136 + 2976, + 752 ], "id": "f96e2477-f9db-4d36-a162-836d05dcd8ab", "name": "Get a workflow2", @@ -196,8 +196,8 @@ "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 1472, - 1024 + 2544, + 640 ], "id": "fa4f3a95-6fe7-41c4-9a90-f4a3f58e06a8", "name": "Valores" @@ -209,8 +209,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 2080, - 928 + 3152, + 544 ], "id": "5d50d650-f0b6-4046-b9c1-974664b655f6", "name": "Code in JavaScript2" @@ -222,8 +222,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 2080, - 1136 + 3152, + 752 ], "id": "30ffb25f-3ad7-465d-9630-887828df95f6", "name": "Code in JavaScript4" @@ -247,8 +247,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 1904, - -160 + 1952, + -304 ], "id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be", "name": "Informacion del supervisor", @@ -261,52 +261,6 @@ } } }, - { - "parameters": { - "documentId": { - "__rl": true, - "value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4", - "mode": "list", - "cachedResultName": "Empleados GLM Prueba", - "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk" - }, - "sheetName": { - "__rl": true, - "value": "gid=0", - "mode": "list", - "cachedResultName": "Hoja 1", - "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0" - }, - "filtersUI": { - "values": [ - { - "lookupColumn": "cargo", - "lookupValue": "Coordinador RRHH" - }, - { - "lookupColumn": "country", - "lookupValue": "={{ $('Get an employee').item.json.location }}" - } - ] - }, - "options": {} - }, - "type": "n8n-nodes-base.googleSheets", - "typeVersion": 4.7, - "position": [ - 688, - -240 - ], - "id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7", - "name": "Get row(s) in sheet", - "alwaysOutputData": true, - "credentials": { - "googleSheetsOAuth2Api": { - "id": "8Pp0ek3NPsEkyXfY", - "name": "Eidan - Google Sheets account" - } - } - }, { "parameters": { "documentId": { @@ -336,8 +290,8 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 1696, - 736 + 2752, + 1328 ], "id": "b7a1afb4-5e9c-4fc0-8a64-99b2b71c918e", "name": "Get row(s) in sheet1", @@ -457,8 +411,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 1920, - 192 + 2000, + -128 ], "id": "901ca3ad-1e76-41fe-a1ff-a55b0f5c1ea2", "name": "Get many events1", @@ -469,112 +423,6 @@ } } }, - { - "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" - } - }, - { - "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", - "leftValue": "={{ $('Get an employee').item.json.location }}", - "rightValue": "Guyana", - "operator": { - "type": "string", - "operation": "notEquals" - } - }, - { - "id": "35a50a33-a2b5-4116-9336-11300357569e", - "leftValue": "={{ $('Get an employee').item.json.location }}", - "rightValue": "Aruba", - "operator": { - "type": "string", - "operation": "equals", - "name": "filter.operator.equals" - } - } - ], - "combinator": "and" - }, - "options": {} - }, - "type": "n8n-nodes-base.if", - "typeVersion": 2.2, - "position": [ - 1088, - -320 - ], - "id": "b7950711-8695-4232-88ab-6b013a0c29d1", - "name": "Pais?" - }, { "parameters": { "operation": "getAll", @@ -639,7 +487,9 @@ "parameters": { "pollTimes": { "item": [ - {} + { + "mode": "everyMinute" + } ] }, "calendarId": { @@ -650,7 +500,7 @@ }, "triggerOn": "eventStarted", "options": { - "matchTerm": "training" + "matchTerm": "#TheGLMWay Training" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -666,13 +516,16 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { "pollTimes": { - "item": [] + "item": [ + { + "mode": "everyMinute" + } + ] }, "calendarId": { "__rl": true, @@ -682,7 +535,7 @@ }, "triggerOn": "eventStarted", "options": { - "matchTerm": "entrenamiento" + "matchTerm": "Entrenamiento #TheGLMWay" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -698,8 +551,7 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { @@ -718,7 +570,7 @@ }, "triggerOn": "eventEnded", "options": { - "matchTerm": "entrenamiento" + "matchTerm": "Entrenamiento #TheGLMWay" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -734,13 +586,16 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { "pollTimes": { - "item": [] + "item": [ + { + "mode": "everyMinute" + } + ] }, "calendarId": { "__rl": true, @@ -750,7 +605,7 @@ }, "triggerOn": "eventEnded", "options": { - "matchTerm": "training" + "matchTerm": "#TheGLMWay Training" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -766,8 +621,7 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { @@ -776,8 +630,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1488, - 736 + 2544, + 1328 ], "id": "a088f9b0-7ec6-40d0-9a90-fa2047ab0461", "name": "Cambiar formato de fecha" @@ -840,8 +694,8 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - -352, - 176 + 2720, + 1024 ], "id": "7f7d71b2-6c53-49a2-92d8-e66b2d0bff54", "name": "Schedule Trigger" @@ -865,8 +719,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 1728, - 32 + 1808, + -176 ], "id": "77e81486-bffe-457d-8bc0-442c25ff4512", "name": "Entrenamiento ingles1", @@ -971,7 +825,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 1712, + 1840, -688 ], "id": "deb40073-dc0e-41e4-ad7c-6df18de25b4f", @@ -984,8 +838,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1040, - 736 + 2240, + 1312 ], "id": "0db9e6a4-2e5e-4513-97fd-71d22aa90822", "name": "Fecha hoy" @@ -1044,7 +898,7 @@ "rule": { "interval": [ { - "triggerAtHour": 1 + "field": "hours" } ] } @@ -1052,8 +906,8 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - -48, - 512 + -352, + 352 ], "id": "20e1c800-bf0b-4484-b836-14bc7154e4e7", "name": "Schedule Trigger1" @@ -1157,7 +1011,7 @@ "typeVersion": 1, "position": [ 528, - -48 + -32 ], "id": "0a800bb8-d5f1-443e-b3b1-3ca9546eb28f", "name": "Insertar a inscritos (inactivo)", @@ -1170,7 +1024,7 @@ }, { "parameters": { - "jsCode": "const hireDate = $json.hireDate; // Ej: \"2026-06-01\"\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];" + "jsCode": "const hireDate = $json.hireDate;\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -1222,7 +1076,7 @@ }, { "name": "text", - "value": "=Manda un texto o un audio contestando estas preguntas:\n\n1. ¿Cuál fue tu ruta?\n (ej: 'Santo Domingo → Santiago → Santo Domingo')\n\n2. ¿Cuánto recibiste de anticipo?\n\n3. Fecha de periodo de inicio y finalización.\n\n4. ¿Cuál es el motivo o destino del viaje?\n (ej. 'Viaje a Santiago — visita Cervecería Nacional')\n\n5. ¿Cliente o proyecto?\n (escribe 'general' si no aplica)" + "value": "=⚠️ No hay coordinador RRHH en el país de este nuevo ingreso:\n\nNombre: {{ $('Get an employee').item.json.displayName }}\nCorreo: {{ $('Get an employee').item.json.workEmail }}\nPaís: {{ $('Get an employee').item.json.location }}\n\n#GLMWay" }, { "name": "delay", @@ -1239,7 +1093,8 @@ -144 ], "id": "09ce1f03-3dfb-4108-9d25-6c05ac622a6f", - "name": "Alerta no hay coordinador RRHH" + "name": "Alerta no hay coordinador RRHH", + "disabled": true }, { "parameters": { @@ -1250,8 +1105,8 @@ "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ - 496, - 624 + 192, + 352 ], "id": "9e00d1ce-5533-4357-977e-31a8da97f232", "name": "Get an employee1", @@ -1262,6 +1117,833 @@ } } }, + { + "parameters": { + "url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle", + "authentication": "genericCredentialType", + "genericAuthType": "httpBasicAuth", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "accept", + "value": "application/json" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 368, + 352 + ], + "id": "06c32cb0-a8ab-42c1-ae36-fe628b1b5e2b", + "name": "Informacion extra del empleado1", + "retryOnFail": true, + "waitBetweenTries": 2000, + "credentials": { + "httpBasicAuth": { + "id": "vXrW3oJWVhNbzB07", + "name": "GLM Credential" + } + } + }, + { + "parameters": { + "options": {} + }, + "type": "n8n-nodes-base.splitInBatches", + "typeVersion": 3, + "position": [ + -16, + 352 + ], + "id": "36c1682f-35a1-4016-b2ac-77f7e20e3e59", + "name": "Loop Over Items" + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "Entrenamiento #TheGLMWay", + "emailType": "text", + "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1488, + -224 + ], + "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", + "name": "Send a message espanol", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "#TheGLMWay Training", + "emailType": "text", + "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1488, + -400 + ], + "id": "f173c8d1-9311-405c-a7ee-164726df32f1", + "name": "Send a message ingles", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "content": "## Recordatorio a nuevo ingreso 24 horas antes de la sesion\n", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 800 + ], + "typeVersion": 1, + "id": "ba58d863-3211-4f53-b087-eb53ba839499", + "name": "Sticky Note2" + }, + { + "parameters": { + "content": "## Recordatorio a coordinador RRHH 48 horas antes de la sesion\n", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 1424 + ], + "typeVersion": 1, + "id": "e32bdd94-d61e-4b43-bf60-7acab8c0d3ae", + "name": "Sticky Note3" + }, + { + "parameters": { + "content": "## Envio de formulario de evaluacion despues que la sesion finalize", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 2768 + ], + "typeVersion": 1, + "id": "6d5c0fe5-5ab1-4cdc-bfd2-197dc2144274", + "name": "Sticky Note4" + }, + { + "parameters": { + "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", + "height": 608, + "width": 2016, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + -480 + ], + "typeVersion": 1, + "id": "cd2fe5c5-9963-410b-a61a-edc36b5aaed1", + "name": "Sticky Note5" + }, + { + "parameters": { + "operation": "getAll", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "returnAll": true, + "timeMax": "={{ $now.plus({ week: 2 }) }}", + "options": { + "query": "#TheGLMWay Training" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1200, + -736 + ], + "id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601", + "name": "Entrenamiento ingles3", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "pollTimes": { + "item": [ + { + "mode": "everyMinute" + } + ] + }, + "calendarId": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "triggerOn": "eventStarted", + "options": {} + }, + "type": "n8n-nodes-base.googleCalendarTrigger", + "typeVersion": 1, + "position": [ + -704, + 320 + ], + "id": "35ec709a-30fd-4e3b-8492-cf6d8928e372", + "name": "Prueba", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "content": "## Completar datos ", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 160 + ], + "typeVersion": 1, + "id": "126bdd3f-a050-4053-aff3-e625c8bf161c", + "name": "Sticky Note6" + }, + { + "parameters": { + "jsCode": "const hireDate = $json.hireDate;\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 560, + 352 + ], + "id": "26d7adef-3c91-410e-b92f-69841d28c039", + "name": "Calcular fecha hireDate1" + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 3 + }, + "conditions": [ + { + "id": "d7d68505-8c34-44cd-b771-56bef28ada41", + "leftValue": "={{ $json.isValid }}", + "rightValue": "", + "operator": { + "type": "boolean", + "operation": "true", + "singleValue": true + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.3, + "position": [ + 736, + 352 + ], + "id": "15a1892d-01e8-432c-91f1-db236317cbca", + "name": "Entra hoy?1" + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 2 + }, + "conditions": [ + { + "id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Jamaica", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "32931394-f4ea-4055-b866-906a81988173", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Trinidad and Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Barbados", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "28e49217-0c1a-4462-9642-676e54926d3e", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Saint Thomas", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "St. Croix", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Guyana", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "35a50a33-a2b5-4116-9336-11300357569e", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Aruba", + "operator": { + "type": "string", + "operation": "equals" + } + } + ], + "combinator": "or" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + 1504, + 272 + ], + "id": "ce9f31d4-454e-4e31-9a22-8173b3fae392", + "name": "Pais?1" + }, + { + "parameters": { + "operation": "getAll", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "returnAll": true, + "timeMax": "={{ $now.plus({ week: 2 }) }}", + "options": { + "query": "Entrenamiento #TheGLMWay" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1712, + 368 + ], + "id": "00c87312-256a-4738-856d-e92b9e144c75", + "name": "Entrenamiento español1", + "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: 2 }) }}", + "options": { + "query": "#TheGLMWay Training" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1712, + 192 + ], + "id": "b3c26eeb-2ff9-42c9-b5cc-fe0776e53c46", + "name": "Entrenamiento ingles4", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 3 + }, + "conditions": [ + { + "id": "d7d68505-8c34-44cd-b771-56bef28ada41", + "leftValue": "={{ Object.keys($json).length }}", + "rightValue": 0, + "operator": { + "type": "number", + "operation": "gt" + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.3, + "position": [ + 1264, + 352 + ], + "id": "30b3a4dd-6d50-405d-9c77-27febcc50aa4", + "name": "Hay coordinador?1" + }, + { + "parameters": { + "method": "POST", + "url": "={{'https://wsp.gomezleemarketing.com'}}/message/sendText/{{'botsoporte'}}", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "={{'C267126ABB45-4C12-B626-6BAB1833F5D7'}}" + } + ] + }, + "sendBody": true, + "bodyParameters": { + "parameters": [ + { + "name": "number", + "value": "={{ \"18097159076@s.whatsapp.net\" }}" + }, + { + "name": "mediatype", + "value": "=image" + }, + { + "name": "text", + "value": "=⚠️ No hay coordinador RRHH en el país de este nuevo ingreso:\n\nNombre: {{ $('Get an employee1').item.json.displayName }}\nCorreo: {{ $('Get an employee1').item.json.workEmail }}\nPaís: {{ $('Get an employee1').item.json.location }}\n\n#GLMWay" + }, + { + "name": "delay", + "value": "={{5000}}" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.2, + "position": [ + 1504, + 448 + ], + "id": "67928478-7604-45a4-9ab0-851079e1470c", + "name": "Alerta no hay coordinador RRHH1", + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "Entrenamiento #TheGLMWay", + "emailType": "text", + "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1904, + 368 + ], + "id": "32302b24-aa4c-4f9a-afc8-ef7e86cad56b", + "name": "Send a message espanol1", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "#TheGLMWay Training", + "emailType": "text", + "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1904, + 192 + ], + "id": "db2cb6a3-1da8-472a-95eb-1a02de2a5fa4", + "name": "Send a message ingles1", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "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": "equals" + } + }, + { + "id": "32931394-f4ea-4055-b866-906a81988173", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Trinidad and Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Barbados", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "28e49217-0c1a-4462-9642-676e54926d3e", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Saint Thomas", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "St. Croix", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Guyana", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "35a50a33-a2b5-4116-9336-11300357569e", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Aruba", + "operator": { + "type": "string", + "operation": "equals" + } + } + ], + "combinator": "or" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + 1088, + -320 + ], + "id": "b183c892-8822-4bc3-a92c-4410eac41a01", + "name": "Pais?" + }, + { + "parameters": { + "operation": "update", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "eventId": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z", + "updateFields": { + "attendeesUi": { + "values": { + "attendees": [ + "" + ] + } + } + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1520, + -768 + ], + "id": "711b3353-6f75-4c6d-bef7-e704290787e8", + "name": "Invitar con calendarios entrenamiento ingles", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "content": "## Invitar al nuevo ingreso a travez del calendario usando el id del evento, asi le aparece el evento", + "height": 384 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + 1440, + -1008 + ], + "typeVersion": 1, + "id": "304297ee-18fc-4cbd-8a01-b627ae08b991", + "name": "Sticky Note7" + }, + { + "parameters": { + "amount": 2 + }, + "type": "n8n-nodes-base.wait", + "typeVersion": 1.1, + "position": [ + 2144, + 368 + ], + "id": "98185de1-e81a-440f-8951-f98bd78c707b", + "name": "Wait", + "webhookId": "22a77d35-7adb-47ec-beca-0fae7615ab5b" + }, + { + "parameters": { + "content": "## Enviar listado de inscritos al facilitador antes de iniciar la sesion\n", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 2048 + ], + "typeVersion": 1, + "id": "79ccf49e-4434-4b72-8147-ad27b9d994a2", + "name": "Sticky Note8" + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "Entrenamiento #TheGLMWay", + "emailType": "text", + "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1136, + 1168 + ], + "id": "10b2cb4e-274d-4913-9345-2c024c071f4c", + "name": "Send a message espanol2", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "#TheGLMWay Training", + "emailType": "text", + "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1136, + 992 + ], + "id": "1dc76989-8c58-4ffe-9e1c-5113a59d346c", + "name": "Send a message ingles2", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "rule": { + "interval": [ + { + "triggerAtHour": 9 + } + ] + } + }, + "type": "n8n-nodes-base.scheduleTrigger", + "typeVersion": 1.3, + "position": [ + -352, + 1040 + ], + "id": "60708d5c-0cd7-45fc-bb67-ed050c1f8022", + "name": "Schedule Trigger2" + }, { "parameters": { "operation": "get", @@ -1278,11 +1960,11 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 128, - 512 + -176, + 352 ], "id": "93a65a61-59a9-4903-8a35-dbf66a0ef468", - "name": "Get a row", + "name": "Obtener inactivos", "credentials": { "supabaseApi": { "id": "2PlsR6rpK7rQTIEn", @@ -1290,6 +1972,80 @@ } } }, + { + "parameters": { + "operation": "get", + "tableId": "inscritos_glmway", + "filters": { + "conditions": [ + { + "keyName": "estado", + "keyValue": "activo" + } + ] + } + }, + "type": "n8n-nodes-base.supabase", + "typeVersion": 1, + "position": [ + -176, + 1040 + ], + "id": "34aa0bc5-0feb-46e3-871b-27a1cc418675", + "name": "Obtener activos", + "credentials": { + "supabaseApi": { + "id": "2PlsR6rpK7rQTIEn", + "name": "Sofia test - Supabase account" + } + } + }, + { + "parameters": { + "documentId": { + "__rl": true, + "value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4", + "mode": "list", + "cachedResultName": "Empleados GLM Prueba", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk" + }, + "sheetName": { + "__rl": true, + "value": "gid=0", + "mode": "list", + "cachedResultName": "Hoja 1", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0" + }, + "filtersUI": { + "values": [ + { + "lookupColumn": "cargo", + "lookupValue": "Coordinador RRHH" + }, + { + "lookupColumn": "country", + "lookupValue": "={{ $('Get an employee').item.json.location }}" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.googleSheets", + "typeVersion": 4.7, + "position": [ + 688, + -240 + ], + "id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7", + "name": "Obtener coordinador", + "alwaysOutputData": true, + "credentials": { + "googleSheetsOAuth2Api": { + "id": "8Pp0ek3NPsEkyXfY", + "name": "Eidan - Google Sheets account" + } + } + }, { "parameters": { "operation": "update", @@ -1323,7 +2079,19 @@ }, { "fieldId": "fecha_inscripcion", - "fieldValue": "={{ $json.date }}" + "fieldValue": "={{ $json.today }}" + }, + { + "fieldId": "division", + "fieldValue": "={{ $('Get an employee1').item.json.division }}" + }, + { + "fieldId": "puesto", + "fieldValue": "={{ $('Get an employee1').item.json.jobTitle }}" + }, + { + "fieldId": "pais", + "fieldValue": "={{ $('Get an employee1').item.json.location }}" } ] } @@ -1331,11 +2099,11 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 1200, - 736 + 944, + 352 ], "id": "e67b21c3-ab44-4d27-ada0-719197b5c3df", - "name": "Update a row", + "name": "Actualizar datos de empleado", "credentials": { "supabaseApi": { "id": "2PlsR6rpK7rQTIEn", @@ -1345,34 +2113,77 @@ }, { "parameters": { - "url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle", - "authentication": "genericCredentialType", - "genericAuthType": "httpBasicAuth", - "sendHeaders": true, - "headerParameters": { - "parameters": [ + "documentId": { + "__rl": true, + "value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4", + "mode": "list", + "cachedResultName": "Empleados GLM", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk" + }, + "sheetName": { + "__rl": true, + "value": "gid=0", + "mode": "list", + "cachedResultName": "Hoja 1", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0" + }, + "filtersUI": { + "values": [ { - "name": "accept", - "value": "application/json" + "lookupColumn": "cargo", + "lookupValue": "Coordinador RRHH" + }, + { + "lookupColumn": "country", + "lookupValue": "={{ $('Get an employee1').item.json.location }}" } ] }, "options": {} }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, + "type": "n8n-nodes-base.googleSheets", + "typeVersion": 4.7, "position": [ - 672, - 624 + 1104, + 352 ], - "id": "06c32cb0-a8ab-42c1-ae36-fe628b1b5e2b", - "name": "Informacion extra del empleado1", - "retryOnFail": true, - "waitBetweenTries": 2000, + "id": "3a6f198b-e136-49fb-a171-78164e10b600", + "name": "Obtener coordinador1", + "alwaysOutputData": true, "credentials": { - "httpBasicAuth": { - "id": "vXrW3oJWVhNbzB07", - "name": "GLM Credential" + "googleSheetsOAuth2Api": { + "id": "8Pp0ek3NPsEkyXfY", + "name": "Eidan - Google Sheets account" + } + } + }, + { + "parameters": { + "tableId": "inscritos_glmway", + "fieldsUi": { + "fieldValues": [ + { + "fieldId": "empleado_id" + }, + { + "fieldId": "estado", + "fieldValue": "notificado" + } + ] + } + }, + "type": "n8n-nodes-base.supabase", + "typeVersion": 1, + "position": [ + 1216, + 832 + ], + "id": "ddf0a273-d3bc-44cc-888b-d789ce72ff77", + "name": "Actualizar estado a notificado", + "credentials": { + "supabaseApi": { + "id": "2PlsR6rpK7rQTIEn", + "name": "Sofia test - Supabase account" } } }, @@ -1383,11 +2194,25 @@ "type": "n8n-nodes-base.splitInBatches", "typeVersion": 3, "position": [ - 288, - 512 + 0, + 1040 ], - "id": "36c1682f-35a1-4016-b2ac-77f7e20e3e59", - "name": "Loop Over Items" + "id": "9e8fd238-541e-455b-8ae5-6a3097eb38a0", + "name": "Loop Over Items1" + }, + { + "parameters": { + "amount": 2 + }, + "type": "n8n-nodes-base.wait", + "typeVersion": 1.1, + "position": [ + 1104, + 656 + ], + "id": "ee5bb9bc-b8cb-493f-8463-ae0a24cf1f0d", + "name": "Wait1", + "webhookId": "09d53dc8-c92a-43d2-a47f-477c0d1317af" }, { "parameters": { @@ -1396,175 +2221,118 @@ "caseSensitive": true, "leftValue": "", "typeValidation": "strict", - "version": 3 + "version": 2 }, "conditions": [ { - "id": "d7d68505-8c34-44cd-b771-56bef28ada41", - "leftValue": "={{ $json.isValid }}", - "rightValue": "", + "id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Jamaica", "operator": { - "type": "boolean", - "operation": "true", - "singleValue": true + "type": "string", + "operation": "equals" + } + }, + { + "id": "32931394-f4ea-4055-b866-906a81988173", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Trinidad and Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Barbados", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "28e49217-0c1a-4462-9642-676e54926d3e", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Saint Thomas", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "St. Croix", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Guyana", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "35a50a33-a2b5-4116-9336-11300357569e", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Aruba", + "operator": { + "type": "string", + "operation": "equals" } } ], - "combinator": "and" + "combinator": "or" }, "options": {} }, "type": "n8n-nodes-base.if", - "typeVersion": 2.3, - "position": [ - 848, - 624 - ], - "id": "15a1892d-01e8-432c-91f1-db236317cbca", - "name": "Le falta info?" - }, - { - "parameters": { - "sendTo": "eidan.then14@gmail.com", - "subject": "Entrenamiento #TheGLMWay", - "emailType": "text", - "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", - "options": { - "appendAttribution": false - } - }, - "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 1488, - -224 + 224, + 1040 ], - "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", - "name": "Send a message espanol", - "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", - "credentials": { - "gmailOAuth2": { - "id": "QWNicjw1khRm5BVI", - "name": "Eidan - Gmail account" - } - } + "id": "4d94c907-8ab1-4213-be20-9e24173cf0a3", + "name": "Pais?2" }, { "parameters": { - "sendTo": "eidan.then14@gmail.com", - "subject": "#TheGLMWay Training", - "emailType": "text", - "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", - "options": {} - }, - "type": "n8n-nodes-base.gmail", - "typeVersion": 2.2, - "position": [ - 1488, - -400 - ], - "id": "f173c8d1-9311-405c-a7ee-164726df32f1", - "name": "Send a message ingles", - "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", - "credentials": { - "gmailOAuth2": { - "id": "QWNicjw1khRm5BVI", - "name": "Eidan - Gmail account" - } - } - }, - { - "parameters": { - "content": "## Recordatorio a nuevo ingreso 24 horas antes de la sesion\n", - "height": 544, - "width": 1392, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -384, - 560 - ], - "typeVersion": 1, - "id": "ba58d863-3211-4f53-b087-eb53ba839499", - "name": "Sticky Note2" - }, - { - "parameters": { - "content": "## Recordatorio a coordinador RRHH 48 horas antes de la sesion\n", - "height": 544, - "width": 1392, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -512, - 1328 - ], - "typeVersion": 1, - "id": "e32bdd94-d61e-4b43-bf60-7acab8c0d3ae", - "name": "Sticky Note3" - }, - { - "parameters": { - "content": "## Envio de formulario de evaluacion despues que la sesion finalize", - "height": 896, - "width": 1392, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -512, - 1952 - ], - "typeVersion": 1, - "id": "6d5c0fe5-5ab1-4cdc-bfd2-197dc2144274", - "name": "Sticky Note4" - }, - { - "parameters": { - "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", - "height": 608, - "width": 2016, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -384, - -480 - ], - "typeVersion": 1, - "id": "cd2fe5c5-9963-410b-a61a-edc36b5aaed1", - "name": "Sticky Note5" - }, - { - "parameters": { - "operation": "update", + "operation": "getAll", "calendar": { "__rl": true, "value": "ethen@gomezleemarketing.com", "mode": "list", "cachedResultName": "ethen@gomezleemarketing.com" }, - "eventId": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z", - "updateFields": { - "attendeesUi": { - "values": { - "attendees": [ - "" - ] - } - } + "returnAll": true, + "timeMax": "={{ $now.plus({ week: 2 }) }}", + "options": { + "query": "Entrenamiento #TheGLMWay" } }, "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 976, - -672 + 432, + 1136 ], - "id": "711b3353-6f75-4c6d-bef7-e704290787e8", - "name": "Entrenamiento ingles2", + "id": "7dd9a706-4d80-45c6-942a-c703eb074a20", + "name": "Entrenamiento español2", "credentials": { "googleCalendarOAuth2Api": { "id": "yEmGG4av5RxOK7wu", @@ -1582,7 +2350,7 @@ "cachedResultName": "ethen@gomezleemarketing.com" }, "returnAll": true, - "timeMax": "={{ $now.plus({ week: 4 }) }}", + "timeMax": "={{ $now.plus({ week: 2 }) }}", "options": { "query": "#TheGLMWay Training" } @@ -1590,11 +2358,11 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 1216, - -656 + 432, + 960 ], - "id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601", - "name": "Entrenamiento ingles3", + "id": "d8253a7a-4e37-4c14-b4da-e0029571cd21", + "name": "Entrenamiento ingles5", "credentials": { "googleCalendarOAuth2Api": { "id": "yEmGG4av5RxOK7wu", @@ -1710,24 +2478,6 @@ ] ] }, - "Pais?": { - "main": [ - [ - { - "node": "Entrenamiento ingles", - "type": "main", - "index": 0 - } - ], - [ - { - "node": "Entrenamiento español", - "type": "main", - "index": 0 - } - ] - ] - }, "Cambiar formato de fecha": { "main": [ [ @@ -1755,26 +2505,9 @@ ] ] }, - "Get row(s) in sheet": { - "main": [ - [ - { - "node": "Hay coordinador?", - "type": "main", - "index": 0 - } - ] - ] - }, "Fecha hoy": { "main": [ - [ - { - "node": "Update a row", - "type": "main", - "index": 0 - } - ] + [] ] }, "Entra hoy?": { @@ -1810,7 +2543,7 @@ "main": [ [ { - "node": "Get row(s) in sheet", + "node": "Obtener coordinador", "type": "main", "index": 0 } @@ -1839,18 +2572,7 @@ "main": [ [ { - "node": "Get a row", - "type": "main", - "index": 0 - } - ] - ] - }, - "Get a row": { - "main": [ - [ - { - "node": "Loop Over Items", + "node": "Obtener inactivos", "type": "main", "index": 0 } @@ -1872,7 +2594,7 @@ "main": [ [ { - "node": "Le falta info?", + "node": "Calcular fecha hireDate1", "type": "main", "index": 0 } @@ -1891,18 +2613,6 @@ ] ] }, - "Le falta info?": { - "main": [ - [], - [ - { - "node": "Fecha hoy", - "type": "main", - "index": 0 - } - ] - ] - }, "Entrenamiento ingles": { "main": [ [ @@ -1924,6 +2634,234 @@ } ] ] + }, + "Calcular fecha hireDate1": { + "main": [ + [ + { + "node": "Entra hoy?1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Entra hoy?1": { + "main": [ + [ + { + "node": "Actualizar datos de empleado", + "type": "main", + "index": 0 + } + ], + [] + ] + }, + "Pais?1": { + "main": [ + [ + { + "node": "Entrenamiento ingles4", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Entrenamiento español1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Entrenamiento español1": { + "main": [ + [ + { + "node": "Send a message espanol1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Entrenamiento ingles4": { + "main": [ + [ + { + "node": "Send a message ingles1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Hay coordinador?1": { + "main": [ + [ + { + "node": "Pais?1", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Alerta no hay coordinador RRHH1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Pais?": { + "main": [ + [ + { + "node": "Entrenamiento ingles", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Entrenamiento español", + "type": "main", + "index": 0 + } + ] + ] + }, + "Send a message ingles1": { + "main": [ + [ + { + "node": "Wait", + "type": "main", + "index": 0 + } + ] + ] + }, + "Send a message espanol1": { + "main": [ + [ + { + "node": "Wait", + "type": "main", + "index": 0 + } + ] + ] + }, + "Wait": { + "main": [ + [ + { + "node": "Loop Over Items", + "type": "main", + "index": 0 + } + ] + ] + }, + "Schedule Trigger2": { + "main": [ + [ + { + "node": "Obtener activos", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener inactivos": { + "main": [ + [ + { + "node": "Loop Over Items", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener coordinador": { + "main": [ + [ + { + "node": "Hay coordinador?", + "type": "main", + "index": 0 + } + ] + ] + }, + "Actualizar datos de empleado": { + "main": [ + [ + { + "node": "Obtener coordinador1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener coordinador1": { + "main": [ + [ + { + "node": "Hay coordinador?1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener activos": { + "main": [ + [ + { + "node": "Loop Over Items1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Loop Over Items1": { + "main": [ + [], + [ + { + "node": "Pais?2", + "type": "main", + "index": 0 + } + ] + ] + }, + "Pais?2": { + "main": [ + [ + { + "node": "Entrenamiento ingles5", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Entrenamiento español2", + "type": "main", + "index": 0 + } + ] + ] } }, "settings": { @@ -1941,6 +2879,24 @@ }, "node:Schedule Trigger1": { "recurrenceRules": [] + }, + "node:Comenzo evento ingles": { + "lastTimeChecked": "2026-06-16T16:48:54Z" + }, + "node:Comenzo evento español": { + "lastTimeChecked": "2026-06-16T16:48:54Z" + }, + "node:Termino evento español": { + "lastTimeChecked": "2026-06-16T16:48:54Z" + }, + "node:Termino evento ingles": { + "lastTimeChecked": "2026-06-16T16:48:54Z" + }, + "node:Prueba": { + "lastTimeChecked": "2026-06-16T16:48:55Z" + }, + "node:Schedule Trigger2": { + "recurrenceRules": [] } }, "meta": { @@ -1960,46 +2916,10 @@ } } ], - "Webhook": [ + "Fecha hoy": [ { "json": { - "headers": { - "host": "agenteit.digitalcompass.agency", - "user-agent": "BambooHR-WebHooks/1.0 (+https://www.bamboohr.com)", - "content-length": "120", - "accept": "*/*", - "content-type": "application/json", - "traceparent": "00-6a2ffcd80000000090a90716fcdbe92f-592b1070e73c2740-01", - "tracestate": "dd=t.dm:-0", - "x-bamboohr-signature": "645a789d249d80ff1a2bdc52bf6c5097ecb9fb18af22f8f218e2a29f676dfed9", - "x-bamboohr-timestamp": "1781529816", - "x-datadog-parent-id": "6425247370476005184", - "x-datadog-sampling-priority": "1", - "x-datadog-tags": "_dd.p.tid=6a2ffcd800000000,_dd.p.dm=-0", - "x-datadog-trace-id": "10423870607838669103", - "x-forwarded-for": "3.148.192.37", - "x-forwarded-host": "agenteit.digitalcompass.agency", - "x-forwarded-port": "443", - "x-forwarded-proto": "https", - "x-forwarded-server": "07b4f09d2c65", - "x-real-ip": "3.148.192.37", - "accept-encoding": "gzip" - }, - "params": {}, - "query": {}, - "body": { - "employees": [ - { - "changedFields": [], - "fields": {}, - "id": "50751", - "action": "Created", - "timestamp": "2026-06-15T07:23:32-06:00" - } - ] - }, - "webhookUrl": "https://agenteit.digitalcompass.agency/webhook/glmway", - "executionMode": "production" + "date": "2026-06-16" }, "pairedItem": { "item": 0 @@ -2007,10 +2927,10 @@ } ] }, - "versionId": "7aa58b19-1772-4fe3-910e-4623639b8741", - "activeVersionId": "7aa58b19-1772-4fe3-910e-4623639b8741", - "versionCounter": 781, - "triggerCount": 3, + "versionId": "0bcb4b3c-7469-4134-90eb-84792c945546", + "activeVersionId": "063005cf-469e-4361-b778-08acd792e61a", + "versionCounter": 1091, + "triggerCount": 9, "shared": [ { "updatedAt": "2026-06-08T13:50:12.177Z", @@ -2032,9 +2952,9 @@ ], "tags": [], "activeVersion": { - "updatedAt": "2026-06-15T19:08:50.000Z", - "createdAt": "2026-06-15T19:08:47.536Z", - "versionId": "7aa58b19-1772-4fe3-910e-4623639b8741", + "updatedAt": "2026-06-16T16:48:55.000Z", + "createdAt": "2026-06-16T16:48:53.145Z", + "versionId": "063005cf-469e-4361-b778-08acd792e61a", "workflowId": "F1iPg8hktNAebZua", "nodes": [ { @@ -2058,8 +2978,8 @@ "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ - 1296, - 1024 + 2368, + 640 ], "id": "a2082638-94e3-4a91-aeac-f7849833a6a1", "name": "When clicking ‘Execute workflow’" @@ -2078,8 +2998,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 2256, - 1136 + 3328, + 752 ], "id": "e428eaaf-f678-45ac-bbcc-926f8bd574b7", "name": "Subir archivo", @@ -2105,8 +3025,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 1648, - 1024 + 2720, + 640 ], "id": "58d2c064-8982-42b0-8f1a-a10d018dff94", "name": "Obtener archivo", @@ -2132,8 +3052,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 2256, - 928 + 3328, + 544 ], "id": "f804d797-946f-4673-8291-308d47ede436", "name": "Actualizar archivo", @@ -2158,8 +3078,8 @@ "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ - 1904, - 928 + 2976, + 544 ], "id": "a6420476-f217-4079-b7a0-194969a2dac2", "name": "Get a workflow1", @@ -2184,8 +3104,8 @@ "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ - 1904, - 1136 + 2976, + 752 ], "id": "f96e2477-f9db-4d36-a162-836d05dcd8ab", "name": "Get a workflow2", @@ -2225,8 +3145,8 @@ "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 1472, - 1024 + 2544, + 640 ], "id": "fa4f3a95-6fe7-41c4-9a90-f4a3f58e06a8", "name": "Valores" @@ -2238,8 +3158,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 2080, - 928 + 3152, + 544 ], "id": "5d50d650-f0b6-4046-b9c1-974664b655f6", "name": "Code in JavaScript2" @@ -2251,8 +3171,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 2080, - 1136 + 3152, + 752 ], "id": "30ffb25f-3ad7-465d-9630-887828df95f6", "name": "Code in JavaScript4" @@ -2276,8 +3196,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 1904, - -160 + 1952, + -304 ], "id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be", "name": "Informacion del supervisor", @@ -2290,52 +3210,6 @@ } } }, - { - "parameters": { - "documentId": { - "__rl": true, - "value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4", - "mode": "list", - "cachedResultName": "Empleados GLM Prueba", - "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk" - }, - "sheetName": { - "__rl": true, - "value": "gid=0", - "mode": "list", - "cachedResultName": "Hoja 1", - "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0" - }, - "filtersUI": { - "values": [ - { - "lookupColumn": "cargo", - "lookupValue": "Coordinador RRHH" - }, - { - "lookupColumn": "country", - "lookupValue": "={{ $('Get an employee').item.json.location }}" - } - ] - }, - "options": {} - }, - "type": "n8n-nodes-base.googleSheets", - "typeVersion": 4.7, - "position": [ - 688, - -240 - ], - "id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7", - "name": "Get row(s) in sheet", - "alwaysOutputData": true, - "credentials": { - "googleSheetsOAuth2Api": { - "id": "8Pp0ek3NPsEkyXfY", - "name": "Eidan - Google Sheets account" - } - } - }, { "parameters": { "documentId": { @@ -2365,8 +3239,8 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 1696, - 736 + 2752, + 1328 ], "id": "b7a1afb4-5e9c-4fc0-8a64-99b2b71c918e", "name": "Get row(s) in sheet1", @@ -2486,8 +3360,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 1920, - 192 + 2000, + -128 ], "id": "901ca3ad-1e76-41fe-a1ff-a55b0f5c1ea2", "name": "Get many events1", @@ -2498,112 +3372,6 @@ } } }, - { - "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" - } - }, - { - "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", - "leftValue": "={{ $('Get an employee').item.json.location }}", - "rightValue": "Guyana", - "operator": { - "type": "string", - "operation": "notEquals" - } - }, - { - "id": "35a50a33-a2b5-4116-9336-11300357569e", - "leftValue": "={{ $('Get an employee').item.json.location }}", - "rightValue": "Aruba", - "operator": { - "type": "string", - "operation": "equals", - "name": "filter.operator.equals" - } - } - ], - "combinator": "and" - }, - "options": {} - }, - "type": "n8n-nodes-base.if", - "typeVersion": 2.2, - "position": [ - 1088, - -320 - ], - "id": "b7950711-8695-4232-88ab-6b013a0c29d1", - "name": "Pais?" - }, { "parameters": { "operation": "getAll", @@ -2668,7 +3436,9 @@ "parameters": { "pollTimes": { "item": [ - {} + { + "mode": "everyMinute" + } ] }, "calendarId": { @@ -2679,7 +3449,7 @@ }, "triggerOn": "eventStarted", "options": { - "matchTerm": "training" + "matchTerm": "#TheGLMWay Training" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -2695,13 +3465,16 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { "pollTimes": { - "item": [] + "item": [ + { + "mode": "everyMinute" + } + ] }, "calendarId": { "__rl": true, @@ -2711,7 +3484,7 @@ }, "triggerOn": "eventStarted", "options": { - "matchTerm": "entrenamiento" + "matchTerm": "Entrenamiento #TheGLMWay" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -2727,8 +3500,7 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { @@ -2747,7 +3519,7 @@ }, "triggerOn": "eventEnded", "options": { - "matchTerm": "entrenamiento" + "matchTerm": "Entrenamiento #TheGLMWay" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -2763,13 +3535,16 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { "pollTimes": { - "item": [] + "item": [ + { + "mode": "everyMinute" + } + ] }, "calendarId": { "__rl": true, @@ -2779,7 +3554,7 @@ }, "triggerOn": "eventEnded", "options": { - "matchTerm": "training" + "matchTerm": "#TheGLMWay Training" } }, "type": "n8n-nodes-base.googleCalendarTrigger", @@ -2795,8 +3570,7 @@ "id": "yEmGG4av5RxOK7wu", "name": "Eidan - Google Calendar account" } - }, - "disabled": true + } }, { "parameters": { @@ -2805,8 +3579,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1488, - 736 + 2544, + 1328 ], "id": "a088f9b0-7ec6-40d0-9a90-fa2047ab0461", "name": "Cambiar formato de fecha" @@ -2869,8 +3643,8 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - -352, - 176 + 2720, + 1024 ], "id": "7f7d71b2-6c53-49a2-92d8-e66b2d0bff54", "name": "Schedule Trigger" @@ -2894,8 +3668,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 1728, - 32 + 1808, + -176 ], "id": "77e81486-bffe-457d-8bc0-442c25ff4512", "name": "Entrenamiento ingles1", @@ -3000,7 +3774,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 1712, + 1840, -688 ], "id": "deb40073-dc0e-41e4-ad7c-6df18de25b4f", @@ -3013,8 +3787,8 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1040, - 736 + 2240, + 1312 ], "id": "0db9e6a4-2e5e-4513-97fd-71d22aa90822", "name": "Fecha hoy" @@ -3073,7 +3847,7 @@ "rule": { "interval": [ { - "triggerAtHour": 1 + "field": "hours" } ] } @@ -3081,8 +3855,8 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - -48, - 512 + -352, + 320 ], "id": "20e1c800-bf0b-4484-b836-14bc7154e4e7", "name": "Schedule Trigger1" @@ -3186,7 +3960,7 @@ "typeVersion": 1, "position": [ 528, - -48 + -32 ], "id": "0a800bb8-d5f1-443e-b3b1-3ca9546eb28f", "name": "Insertar a inscritos (inactivo)", @@ -3199,7 +3973,7 @@ }, { "parameters": { - "jsCode": "const hireDate = $json.hireDate; // Ej: \"2026-06-01\"\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];" + "jsCode": "const hireDate = $json.hireDate;\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -3251,7 +4025,7 @@ }, { "name": "text", - "value": "=Manda un texto o un audio contestando estas preguntas:\n\n1. ¿Cuál fue tu ruta?\n (ej: 'Santo Domingo → Santiago → Santo Domingo')\n\n2. ¿Cuánto recibiste de anticipo?\n\n3. Fecha de periodo de inicio y finalización.\n\n4. ¿Cuál es el motivo o destino del viaje?\n (ej. 'Viaje a Santiago — visita Cervecería Nacional')\n\n5. ¿Cliente o proyecto?\n (escribe 'general' si no aplica)" + "value": "=⚠️ No hay coordinador RRHH en el país de este nuevo ingreso:\n\nNombre: {{ $('Get an employee').item.json.displayName }}\nCorreo: {{ $('Get an employee').item.json.workEmail }}\nPaís: {{ $('Get an employee').item.json.location }}\n\n#GLMWay" }, { "name": "delay", @@ -3268,7 +4042,8 @@ -144 ], "id": "09ce1f03-3dfb-4108-9d25-6c05ac622a6f", - "name": "Alerta no hay coordinador RRHH" + "name": "Alerta no hay coordinador RRHH", + "disabled": true }, { "parameters": { @@ -3279,8 +4054,8 @@ "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ - 496, - 624 + 192, + 432 ], "id": "9e00d1ce-5533-4357-977e-31a8da97f232", "name": "Get an employee1", @@ -3291,6 +4066,885 @@ } } }, + { + "parameters": { + "url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle", + "authentication": "genericCredentialType", + "genericAuthType": "httpBasicAuth", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "accept", + "value": "application/json" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 368, + 432 + ], + "id": "06c32cb0-a8ab-42c1-ae36-fe628b1b5e2b", + "name": "Informacion extra del empleado1", + "retryOnFail": true, + "waitBetweenTries": 2000, + "credentials": { + "httpBasicAuth": { + "id": "vXrW3oJWVhNbzB07", + "name": "GLM Credential" + } + } + }, + { + "parameters": { + "options": {} + }, + "type": "n8n-nodes-base.splitInBatches", + "typeVersion": 3, + "position": [ + -16, + 320 + ], + "id": "36c1682f-35a1-4016-b2ac-77f7e20e3e59", + "name": "Loop Over Items" + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "Entrenamiento #TheGLMWay", + "emailType": "text", + "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1488, + -224 + ], + "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", + "name": "Send a message espanol", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "#TheGLMWay Training", + "emailType": "text", + "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1488, + -400 + ], + "id": "f173c8d1-9311-405c-a7ee-164726df32f1", + "name": "Send a message ingles", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "content": "## Recordatorio a nuevo ingreso 24 horas antes de la sesion\n", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 800 + ], + "typeVersion": 1, + "id": "ba58d863-3211-4f53-b087-eb53ba839499", + "name": "Sticky Note2" + }, + { + "parameters": { + "content": "## Recordatorio a coordinador RRHH 48 horas antes de la sesion\n", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 1424 + ], + "typeVersion": 1, + "id": "e32bdd94-d61e-4b43-bf60-7acab8c0d3ae", + "name": "Sticky Note3" + }, + { + "parameters": { + "content": "## Envio de formulario de evaluacion despues que la sesion finalize", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 2768 + ], + "typeVersion": 1, + "id": "6d5c0fe5-5ab1-4cdc-bfd2-197dc2144274", + "name": "Sticky Note4" + }, + { + "parameters": { + "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", + "height": 608, + "width": 2016, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + -480 + ], + "typeVersion": 1, + "id": "cd2fe5c5-9963-410b-a61a-edc36b5aaed1", + "name": "Sticky Note5" + }, + { + "parameters": { + "operation": "getAll", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "returnAll": true, + "timeMax": "={{ $now.plus({ week: 2 }) }}", + "options": { + "query": "#TheGLMWay Training" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1200, + -736 + ], + "id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601", + "name": "Entrenamiento ingles3", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "pollTimes": { + "item": [ + { + "mode": "everyMinute" + } + ] + }, + "calendarId": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "triggerOn": "eventStarted", + "options": {} + }, + "type": "n8n-nodes-base.googleCalendarTrigger", + "typeVersion": 1, + "position": [ + -704, + 320 + ], + "id": "35ec709a-30fd-4e3b-8492-cf6d8928e372", + "name": "Prueba", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "content": "## Completar datos ", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 160 + ], + "typeVersion": 1, + "id": "126bdd3f-a050-4053-aff3-e625c8bf161c", + "name": "Sticky Note6" + }, + { + "parameters": { + "jsCode": "const hireDate = $json.hireDate;\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 560, + 432 + ], + "id": "26d7adef-3c91-410e-b92f-69841d28c039", + "name": "Calcular fecha hireDate1" + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 3 + }, + "conditions": [ + { + "id": "d7d68505-8c34-44cd-b771-56bef28ada41", + "leftValue": "={{ $json.isValid }}", + "rightValue": "", + "operator": { + "type": "boolean", + "operation": "true", + "singleValue": true + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.3, + "position": [ + 736, + 432 + ], + "id": "15a1892d-01e8-432c-91f1-db236317cbca", + "name": "Entra hoy?1" + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 2 + }, + "conditions": [ + { + "id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Jamaica", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "32931394-f4ea-4055-b866-906a81988173", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Trinidad and Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Barbados", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "28e49217-0c1a-4462-9642-676e54926d3e", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Saint Thomas", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "St. Croix", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Guyana", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "35a50a33-a2b5-4116-9336-11300357569e", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "Aruba", + "operator": { + "type": "string", + "operation": "equals" + } + } + ], + "combinator": "or" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + 1520, + 272 + ], + "id": "ce9f31d4-454e-4e31-9a22-8173b3fae392", + "name": "Pais?1" + }, + { + "parameters": { + "operation": "getAll", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "returnAll": true, + "timeMax": "={{ $now.plus({ week: 2 }) }}", + "options": { + "query": "Entrenamiento #TheGLMWay" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1728, + 368 + ], + "id": "00c87312-256a-4738-856d-e92b9e144c75", + "name": "Entrenamiento español1", + "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: 2 }) }}", + "options": { + "query": "#TheGLMWay Training" + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1728, + 192 + ], + "id": "b3c26eeb-2ff9-42c9-b5cc-fe0776e53c46", + "name": "Entrenamiento ingles4", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 3 + }, + "conditions": [ + { + "id": "d7d68505-8c34-44cd-b771-56bef28ada41", + "leftValue": "={{ Object.keys($json).length }}", + "rightValue": 0, + "operator": { + "type": "number", + "operation": "gt" + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.3, + "position": [ + 1280, + 352 + ], + "id": "30b3a4dd-6d50-405d-9c77-27febcc50aa4", + "name": "Hay coordinador?1" + }, + { + "parameters": { + "method": "POST", + "url": "={{'https://wsp.gomezleemarketing.com'}}/message/sendText/{{'botsoporte'}}", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "={{'C267126ABB45-4C12-B626-6BAB1833F5D7'}}" + } + ] + }, + "sendBody": true, + "bodyParameters": { + "parameters": [ + { + "name": "number", + "value": "={{ \"18097159076@s.whatsapp.net\" }}" + }, + { + "name": "mediatype", + "value": "=image" + }, + { + "name": "text", + "value": "=⚠️ No hay coordinador RRHH en el país de este nuevo ingreso:\n\nNombre: {{ $('Get an employee1').item.json.displayName }}\nCorreo: {{ $('Get an employee1').item.json.workEmail }}\nPaís: {{ $('Get an employee1').item.json.location }}\n\n#GLMWay" + }, + { + "name": "delay", + "value": "={{5000}}" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.2, + "position": [ + 1520, + 448 + ], + "id": "67928478-7604-45a4-9ab0-851079e1470c", + "name": "Alerta no hay coordinador RRHH1", + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "Entrenamiento #TheGLMWay", + "emailType": "text", + "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1920, + 368 + ], + "id": "32302b24-aa4c-4f9a-afc8-ef7e86cad56b", + "name": "Send a message espanol1", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "#TheGLMWay Training", + "emailType": "text", + "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1920, + 192 + ], + "id": "db2cb6a3-1da8-472a-95eb-1a02de2a5fa4", + "name": "Send a message ingles1", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "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": "equals" + } + }, + { + "id": "32931394-f4ea-4055-b866-906a81988173", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Trinidad and Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Barbados", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "28e49217-0c1a-4462-9642-676e54926d3e", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Saint Thomas", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "St. Croix", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Tobago", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "b308c2b6-53b4-4d49-b540-cdc03e36528b", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Guyana", + "operator": { + "type": "string", + "operation": "equals" + } + }, + { + "id": "35a50a33-a2b5-4116-9336-11300357569e", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "Aruba", + "operator": { + "type": "string", + "operation": "equals" + } + } + ], + "combinator": "or" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.2, + "position": [ + 1088, + -320 + ], + "id": "b183c892-8822-4bc3-a92c-4410eac41a01", + "name": "Pais?" + }, + { + "parameters": { + "tableId": "asistencia_glmway", + "fieldsUi": { + "fieldValues": [ + {} + ] + } + }, + "type": "n8n-nodes-base.supabase", + "typeVersion": 1, + "position": [ + 1104, + 640 + ], + "id": "ddf0a273-d3bc-44cc-888b-d789ce72ff77", + "name": "Create a row", + "credentials": { + "supabaseApi": { + "id": "2PlsR6rpK7rQTIEn", + "name": "Sofia test - Supabase account" + } + } + }, + { + "parameters": { + "operation": "update", + "calendar": { + "__rl": true, + "value": "ethen@gomezleemarketing.com", + "mode": "list", + "cachedResultName": "ethen@gomezleemarketing.com" + }, + "eventId": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z", + "updateFields": { + "attendeesUi": { + "values": { + "attendees": [ + "" + ] + } + } + } + }, + "type": "n8n-nodes-base.googleCalendar", + "typeVersion": 1.3, + "position": [ + 1520, + -768 + ], + "id": "711b3353-6f75-4c6d-bef7-e704290787e8", + "name": "Invitar con calendarios entrenamiento ingles", + "credentials": { + "googleCalendarOAuth2Api": { + "id": "yEmGG4av5RxOK7wu", + "name": "Eidan - Google Calendar account" + } + } + }, + { + "parameters": { + "content": "## Invitar al nuevo ingreso a travez del calendario usando el id del evento, asi le aparece el evento", + "height": 384 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + 1440, + -1008 + ], + "typeVersion": 1, + "id": "304297ee-18fc-4cbd-8a01-b627ae08b991", + "name": "Sticky Note7" + }, + { + "parameters": { + "amount": 2 + }, + "type": "n8n-nodes-base.wait", + "typeVersion": 1.1, + "position": [ + 2160, + 368 + ], + "id": "98185de1-e81a-440f-8951-f98bd78c707b", + "name": "Wait", + "webhookId": "22a77d35-7adb-47ec-beca-0fae7615ab5b" + }, + { + "parameters": { + "content": "## Enviar listado de inscritos al facilitador antes de iniciar la sesion\n", + "height": 544, + "width": 1392, + "color": 6 + }, + "type": "n8n-nodes-base.stickyNote", + "position": [ + -384, + 2048 + ], + "typeVersion": 1, + "id": "79ccf49e-4434-4b72-8147-ad27b9d994a2", + "name": "Sticky Note8" + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "Entrenamiento #TheGLMWay", + "emailType": "text", + "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1136, + 1168 + ], + "id": "10b2cb4e-274d-4913-9345-2c024c071f4c", + "name": "Send a message espanol2", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "sendTo": "eidan.then14@gmail.com", + "subject": "#TheGLMWay Training", + "emailType": "text", + "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", + "options": { + "appendAttribution": false + } + }, + "type": "n8n-nodes-base.gmail", + "typeVersion": 2.2, + "position": [ + 1136, + 992 + ], + "id": "1dc76989-8c58-4ffe-9e1c-5113a59d346c", + "name": "Send a message ingles2", + "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", + "credentials": { + "gmailOAuth2": { + "id": "QWNicjw1khRm5BVI", + "name": "Eidan - Gmail account" + } + }, + "disabled": true + }, + { + "parameters": { + "rule": { + "interval": [ + { + "triggerAtHour": 9 + } + ] + } + }, + "type": "n8n-nodes-base.scheduleTrigger", + "typeVersion": 1.3, + "position": [ + -352, + 1040 + ], + "id": "60708d5c-0cd7-45fc-bb67-ed050c1f8022", + "name": "Schedule Trigger2" + }, + { + "parameters": { + "operation": "get", + "tableId": "inscritos_glmway", + "filters": { + "conditions": [ + { + "keyName": "estado", + "keyValue": "inactivo" + } + ] + } + }, + "type": "n8n-nodes-base.supabase", + "typeVersion": 1, + "position": [ + -176, + 320 + ], + "id": "93a65a61-59a9-4903-8a35-dbf66a0ef468", + "name": "Obtener inactivos", + "credentials": { + "supabaseApi": { + "id": "2PlsR6rpK7rQTIEn", + "name": "Sofia test - Supabase account" + } + } + }, { "parameters": { "operation": "get", @@ -3307,11 +4961,11 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 128, - 512 + -176, + 1040 ], - "id": "93a65a61-59a9-4903-8a35-dbf66a0ef468", - "name": "Get a row", + "id": "34aa0bc5-0feb-46e3-871b-27a1cc418675", + "name": "Obtener activos", "credentials": { "supabaseApi": { "id": "2PlsR6rpK7rQTIEn", @@ -3319,6 +4973,52 @@ } } }, + { + "parameters": { + "documentId": { + "__rl": true, + "value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4", + "mode": "list", + "cachedResultName": "Empleados GLM Prueba", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk" + }, + "sheetName": { + "__rl": true, + "value": "gid=0", + "mode": "list", + "cachedResultName": "Hoja 1", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0" + }, + "filtersUI": { + "values": [ + { + "lookupColumn": "cargo", + "lookupValue": "Coordinador RRHH" + }, + { + "lookupColumn": "country", + "lookupValue": "={{ $('Get an employee').item.json.location }}" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.googleSheets", + "typeVersion": 4.7, + "position": [ + 688, + -240 + ], + "id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7", + "name": "Obtener coordinador", + "alwaysOutputData": true, + "credentials": { + "googleSheetsOAuth2Api": { + "id": "8Pp0ek3NPsEkyXfY", + "name": "Eidan - Google Sheets account" + } + } + }, { "parameters": { "operation": "update", @@ -3352,7 +5052,19 @@ }, { "fieldId": "fecha_inscripcion", - "fieldValue": "={{ $json.date }}" + "fieldValue": "={{ $json.today }}" + }, + { + "fieldId": "division", + "fieldValue": "={{ $('Get an employee1').item.json.division }}" + }, + { + "fieldId": "puesto", + "fieldValue": "={{ $('Get an employee1').item.json.jobTitle }}" + }, + { + "fieldId": "pais", + "fieldValue": "={{ $('Get an employee1').item.json.location }}" } ] } @@ -3360,11 +5072,11 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 1200, - 736 + 960, + 352 ], "id": "e67b21c3-ab44-4d27-ada0-719197b5c3df", - "name": "Update a row", + "name": "Actualizar datos de empleado", "credentials": { "supabaseApi": { "id": "2PlsR6rpK7rQTIEn", @@ -3374,260 +5086,47 @@ }, { "parameters": { - "url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle", - "authentication": "genericCredentialType", - "genericAuthType": "httpBasicAuth", - "sendHeaders": true, - "headerParameters": { - "parameters": [ + "documentId": { + "__rl": true, + "value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4", + "mode": "list", + "cachedResultName": "Empleados GLM", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk" + }, + "sheetName": { + "__rl": true, + "value": "gid=0", + "mode": "list", + "cachedResultName": "Hoja 1", + "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0" + }, + "filtersUI": { + "values": [ { - "name": "accept", - "value": "application/json" + "lookupColumn": "cargo", + "lookupValue": "Coordinador RRHH" + }, + { + "lookupColumn": "country", + "lookupValue": "={{ $('Get an employee1').item.json.location }}" } ] }, "options": {} }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, + "type": "n8n-nodes-base.googleSheets", + "typeVersion": 4.7, "position": [ - 672, - 624 + 1120, + 352 ], - "id": "06c32cb0-a8ab-42c1-ae36-fe628b1b5e2b", - "name": "Informacion extra del empleado1", - "retryOnFail": true, - "waitBetweenTries": 2000, + "id": "3a6f198b-e136-49fb-a171-78164e10b600", + "name": "Obtener coordinador1", + "alwaysOutputData": true, "credentials": { - "httpBasicAuth": { - "id": "vXrW3oJWVhNbzB07", - "name": "GLM Credential" - } - } - }, - { - "parameters": { - "options": {} - }, - "type": "n8n-nodes-base.splitInBatches", - "typeVersion": 3, - "position": [ - 288, - 512 - ], - "id": "36c1682f-35a1-4016-b2ac-77f7e20e3e59", - "name": "Loop Over Items" - }, - { - "parameters": { - "conditions": { - "options": { - "caseSensitive": true, - "leftValue": "", - "typeValidation": "strict", - "version": 3 - }, - "conditions": [ - { - "id": "d7d68505-8c34-44cd-b771-56bef28ada41", - "leftValue": "={{ $json.isValid }}", - "rightValue": "", - "operator": { - "type": "boolean", - "operation": "true", - "singleValue": true - } - } - ], - "combinator": "and" - }, - "options": {} - }, - "type": "n8n-nodes-base.if", - "typeVersion": 2.3, - "position": [ - 848, - 624 - ], - "id": "15a1892d-01e8-432c-91f1-db236317cbca", - "name": "Le falta info?" - }, - { - "parameters": { - "sendTo": "eidan.then14@gmail.com", - "subject": "Entrenamiento #TheGLMWay", - "emailType": "text", - "message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", - "options": { - "appendAttribution": false - } - }, - "type": "n8n-nodes-base.gmail", - "typeVersion": 2.2, - "position": [ - 1488, - -224 - ], - "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", - "name": "Send a message espanol", - "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", - "credentials": { - "gmailOAuth2": { - "id": "QWNicjw1khRm5BVI", - "name": "Eidan - Gmail account" - } - } - }, - { - "parameters": { - "sendTo": "eidan.then14@gmail.com", - "subject": "#TheGLMWay Training", - "emailType": "text", - "message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}", - "options": {} - }, - "type": "n8n-nodes-base.gmail", - "typeVersion": 2.2, - "position": [ - 1488, - -400 - ], - "id": "f173c8d1-9311-405c-a7ee-164726df32f1", - "name": "Send a message ingles", - "webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2", - "credentials": { - "gmailOAuth2": { - "id": "QWNicjw1khRm5BVI", - "name": "Eidan - Gmail account" - } - } - }, - { - "parameters": { - "content": "## Recordatorio a nuevo ingreso 24 horas antes de la sesion\n", - "height": 544, - "width": 1392, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -384, - 560 - ], - "typeVersion": 1, - "id": "ba58d863-3211-4f53-b087-eb53ba839499", - "name": "Sticky Note2" - }, - { - "parameters": { - "content": "## Recordatorio a coordinador RRHH 48 horas antes de la sesion\n", - "height": 544, - "width": 1392, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -512, - 1328 - ], - "typeVersion": 1, - "id": "e32bdd94-d61e-4b43-bf60-7acab8c0d3ae", - "name": "Sticky Note3" - }, - { - "parameters": { - "content": "## Envio de formulario de evaluacion despues que la sesion finalize", - "height": 896, - "width": 1392, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -512, - 1952 - ], - "typeVersion": 1, - "id": "6d5c0fe5-5ab1-4cdc-bfd2-197dc2144274", - "name": "Sticky Note4" - }, - { - "parameters": { - "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", - "height": 608, - "width": 2016, - "color": 6 - }, - "type": "n8n-nodes-base.stickyNote", - "position": [ - -384, - -480 - ], - "typeVersion": 1, - "id": "cd2fe5c5-9963-410b-a61a-edc36b5aaed1", - "name": "Sticky Note5" - }, - { - "parameters": { - "operation": "update", - "calendar": { - "__rl": true, - "value": "ethen@gomezleemarketing.com", - "mode": "list", - "cachedResultName": "ethen@gomezleemarketing.com" - }, - "eventId": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z", - "updateFields": { - "attendeesUi": { - "values": { - "attendees": [ - "" - ] - } - } - } - }, - "type": "n8n-nodes-base.googleCalendar", - "typeVersion": 1.3, - "position": [ - 976, - -672 - ], - "id": "711b3353-6f75-4c6d-bef7-e704290787e8", - "name": "Entrenamiento ingles2", - "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": "#TheGLMWay Training" - } - }, - "type": "n8n-nodes-base.googleCalendar", - "typeVersion": 1.3, - "position": [ - 1216, - -656 - ], - "id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601", - "name": "Entrenamiento ingles3", - "credentials": { - "googleCalendarOAuth2Api": { - "id": "yEmGG4av5RxOK7wu", - "name": "Eidan - Google Calendar account" + "googleSheetsOAuth2Api": { + "id": "8Pp0ek3NPsEkyXfY", + "name": "Eidan - Google Sheets account" } } } @@ -3739,24 +5238,6 @@ ] ] }, - "Pais?": { - "main": [ - [ - { - "node": "Entrenamiento ingles", - "type": "main", - "index": 0 - } - ], - [ - { - "node": "Entrenamiento español", - "type": "main", - "index": 0 - } - ] - ] - }, "Cambiar formato de fecha": { "main": [ [ @@ -3784,26 +5265,9 @@ ] ] }, - "Get row(s) in sheet": { - "main": [ - [ - { - "node": "Hay coordinador?", - "type": "main", - "index": 0 - } - ] - ] - }, "Fecha hoy": { "main": [ - [ - { - "node": "Update a row", - "type": "main", - "index": 0 - } - ] + [] ] }, "Entra hoy?": { @@ -3839,7 +5303,7 @@ "main": [ [ { - "node": "Get row(s) in sheet", + "node": "Obtener coordinador", "type": "main", "index": 0 } @@ -3868,18 +5332,7 @@ "main": [ [ { - "node": "Get a row", - "type": "main", - "index": 0 - } - ] - ] - }, - "Get a row": { - "main": [ - [ - { - "node": "Loop Over Items", + "node": "Obtener inactivos", "type": "main", "index": 0 } @@ -3901,7 +5354,7 @@ "main": [ [ { - "node": "Le falta info?", + "node": "Calcular fecha hireDate1", "type": "main", "index": 0 } @@ -3920,18 +5373,6 @@ ] ] }, - "Le falta info?": { - "main": [ - [], - [ - { - "node": "Fecha hoy", - "type": "main", - "index": 0 - } - ] - ] - }, "Entrenamiento ingles": { "main": [ [ @@ -3953,18 +5394,205 @@ } ] ] + }, + "Calcular fecha hireDate1": { + "main": [ + [ + { + "node": "Entra hoy?1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Entra hoy?1": { + "main": [ + [ + { + "node": "Actualizar datos de empleado", + "type": "main", + "index": 0 + } + ], + [] + ] + }, + "Pais?1": { + "main": [ + [ + { + "node": "Entrenamiento ingles4", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Entrenamiento español1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Entrenamiento español1": { + "main": [ + [ + { + "node": "Send a message espanol1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Entrenamiento ingles4": { + "main": [ + [ + { + "node": "Send a message ingles1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Hay coordinador?1": { + "main": [ + [ + { + "node": "Pais?1", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Alerta no hay coordinador RRHH1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Pais?": { + "main": [ + [ + { + "node": "Entrenamiento ingles", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Entrenamiento español", + "type": "main", + "index": 0 + } + ] + ] + }, + "Send a message ingles1": { + "main": [ + [ + { + "node": "Wait", + "type": "main", + "index": 0 + } + ] + ] + }, + "Send a message espanol1": { + "main": [ + [ + { + "node": "Wait", + "type": "main", + "index": 0 + } + ] + ] + }, + "Wait": { + "main": [ + [ + { + "node": "Loop Over Items", + "type": "main", + "index": 0 + } + ] + ] + }, + "Schedule Trigger2": { + "main": [ + [ + { + "node": "Obtener activos", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener inactivos": { + "main": [ + [ + { + "node": "Loop Over Items", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener coordinador": { + "main": [ + [ + { + "node": "Hay coordinador?", + "type": "main", + "index": 0 + } + ] + ] + }, + "Actualizar datos de empleado": { + "main": [ + [ + { + "node": "Obtener coordinador1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Obtener coordinador1": { + "main": [ + [ + { + "node": "Hay coordinador?1", + "type": "main", + "index": 0 + } + ] + ] } }, "authors": "Eidan Then", - "name": "Version 7aa58b19", + "name": "Version 063005cf", "description": "", "autosaved": true, "workflowPublishHistory": [ { - "createdAt": "2026-06-15T19:08:50.871Z", - "id": 1411, + "createdAt": "2026-06-16T16:48:55.159Z", + "id": 1441, "workflowId": "F1iPg8hktNAebZua", - "versionId": "7aa58b19-1772-4fe3-910e-4623639b8741", + "versionId": "063005cf-469e-4361-b778-08acd792e61a", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" }