diff --git a/glmway-workflow.json b/glmway-workflow.json index 30ae0fa..e9e3ae2 100644 --- a/glmway-workflow.json +++ b/glmway-workflow.json @@ -1,6 +1,6 @@ { "$json": { - "updatedAt": "2026-06-17T14:02:01.426Z", + "updatedAt": "2026-06-17T14:29:43.782Z", "createdAt": "2026-06-08T13:50:12.174Z", "id": "F1iPg8hktNAebZua", "name": "GLMWay", @@ -1000,8 +1000,8 @@ }, "type": "n8n-nodes-base.stickyNote", "position": [ - 1328, - -32 + 1264, + -16 ], "typeVersion": 1, "id": "719365c8-8099-4108-a910-83b651d81181", @@ -1825,7 +1825,7 @@ "rule": { "interval": [ { - "triggerAtHour": 9 + "field": "hours" } ] } @@ -3161,6 +3161,48 @@ ], "id": "a9fff247-d1b0-4314-ba8d-e7401086b771", "name": "Tiene correo?1" + }, + { + "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" + } + ] + }, + "options": {} + }, + "type": "n8n-nodes-base.googleSheets", + "typeVersion": 4.7, + "position": [ + 2608, + -48 + ], + "id": "ddfe7158-8cc6-440c-9e59-de97b7124eb8", + "name": "Obtener coordinador2", + "alwaysOutputData": true, + "credentials": { + "googleSheetsOAuth2Api": { + "id": "8Pp0ek3NPsEkyXfY", + "name": "Eidan - Google Sheets account" + } + } } ], "connections": { @@ -4080,19 +4122,19 @@ "recurrenceRules": [] }, "node:Comenzo evento ingles": { - "lastTimeChecked": "2026-06-17T14:00:20Z" + "lastTimeChecked": "2026-06-17T14:12:45Z" }, "node:Comenzo evento español": { - "lastTimeChecked": "2026-06-17T14:00:06Z" + "lastTimeChecked": "2026-06-17T14:12:45Z" }, "node:Termino evento español": { - "lastTimeChecked": "2026-06-17T13:59:25Z" + "lastTimeChecked": "2026-06-17T14:12:45Z" }, "node:Termino evento ingles": { - "lastTimeChecked": "2026-06-17T13:59:36Z" + "lastTimeChecked": "2026-06-17T14:12:45Z" }, "node:Prueba": { - "lastTimeChecked": "2026-06-17T14:00:12Z" + "lastTimeChecked": "2026-06-17T14:12:45Z" }, "node:Schedule Trigger2": { "recurrenceRules": [] @@ -4129,9 +4171,9 @@ } ] }, - "versionId": "1288b143-caf2-4681-a424-dbde596e70f3", - "activeVersionId": "272c60cb-1f1d-4121-8aa3-6cadcb8ae45c", - "versionCounter": 1542, + "versionId": "796594fe-4ef3-4ae8-94e7-66eeea4534cd", + "activeVersionId": "5ebb4ae2-586d-4b43-aad3-8878435a38b5", + "versionCounter": 1560, "triggerCount": 10, "shared": [ { @@ -4154,9 +4196,9 @@ ], "tags": [], "activeVersion": { - "updatedAt": "2026-06-16T22:19:10.000Z", - "createdAt": "2026-06-16T22:17:49.515Z", - "versionId": "272c60cb-1f1d-4121-8aa3-6cadcb8ae45c", + "updatedAt": "2026-06-17T14:12:46.000Z", + "createdAt": "2026-06-17T14:12:38.747Z", + "versionId": "5ebb4ae2-586d-4b43-aad3-8878435a38b5", "workflowId": "F1iPg8hktNAebZua", "nodes": [ { @@ -4398,8 +4440,8 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 2544, - -352 + 2608, + -960 ], "id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be", "name": "Informacion del supervisor", @@ -4477,7 +4519,7 @@ "typeVersion": 4.4, "position": [ 1280, - -1248 + -1408 ], "id": "a52ef26c-a5d6-4bb5-9a99-61fa25206105", "name": "Informacion del supervisor1", @@ -4510,7 +4552,7 @@ "typeVersion": 4.4, "position": [ 1632, - -1184 + -1344 ], "id": "0088cd80-6150-4577-89a9-b28b06fea6b4", "name": "Informacion del empleado1", @@ -4562,8 +4604,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 2592, - -176 + 2656, + -784 ], "id": "901ca3ad-1e76-41fe-a1ff-a55b0f5c1ea2", "name": "Get many events1", @@ -4593,7 +4635,7 @@ "typeVersion": 1.3, "position": [ 1872, - -528 + -688 ], "id": "2cd687f2-a8b5-4c46-854a-4f60b4d7107f", "name": "Entrenamiento español", @@ -4623,7 +4665,7 @@ "typeVersion": 1.3, "position": [ 1872, - -704 + -864 ], "id": "01099730-b224-4b81-98cc-b924e2b02367", "name": "Entrenamiento ingles", @@ -4816,8 +4858,8 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 2304, - -576 + 2368, + -1184 ], "id": "ed7dc4ef-e1fe-4305-ba7e-a98b617ee095", "name": "Get row(s) in sheet2", @@ -4870,8 +4912,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 2400, - -224 + 2464, + -832 ], "id": "77e81486-bffe-457d-8bc0-442c25ff4512", "name": "Entrenamiento ingles1", @@ -4942,7 +4984,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 688, + 912, -240 ], "id": "8a2be7cc-85ad-4e44-92a7-fe3f94df703f", @@ -4976,8 +5018,8 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 2368, - -736 + 2432, + -1344 ], "id": "deb40073-dc0e-41e4-ad7c-6df18de25b4f", "name": "Empleado le falta info?" @@ -5038,7 +5080,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 336, + 560, -144 ], "id": "cb43a2bb-7743-4994-a7b2-209cd0934cd7", @@ -5093,12 +5135,24 @@ "fieldValue": "={{ $('Informacion extra del empleado').item.json.hireDate }}" }, { - "fieldId": "fecha_inscripcion", + "fieldId": "fecha_sesion_inscrito", "fieldValue": "={{ null }}" }, { "fieldId": "estado", "fieldValue": "inactivo" + }, + { + "fieldId": "puesto", + "fieldValue": "={{ $('Get an employee').item.json.jobTitle }}" + }, + { + "fieldId": "division", + "fieldValue": "={{ $('Get an employee').item.json.division }}" + }, + { + "fieldId": "pais", + "fieldValue": "={{ $('Get an employee').item.json.location }}" } ] } @@ -5106,7 +5160,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 528, + 752, -32 ], "id": "0a800bb8-d5f1-443e-b3b1-3ca9546eb28f", @@ -5139,8 +5193,8 @@ }, "type": "n8n-nodes-base.stickyNote", "position": [ - 1104, - -32 + 1264, + -16 ], "typeVersion": 1, "id": "719365c8-8099-4108-a910-83b651d81181", @@ -5185,7 +5239,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ - 928, + 1152, -144 ], "id": "09ce1f03-3dfb-4108-9d25-6c05ac622a6f", @@ -5272,7 +5326,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 1872, + 2096, -224 ], "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", @@ -5299,7 +5353,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 1872, + 2096, -400 ], "id": "f173c8d1-9311-405c-a7ee-164726df32f1", @@ -5365,7 +5419,7 @@ "parameters": { "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", "height": 608, - "width": 2448, + "width": 2672, "color": 6 }, "type": "n8n-nodes-base.stickyNote", @@ -5396,7 +5450,7 @@ "typeVersion": 1.3, "position": [ 1200, - -736 + -896 ], "id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601", "name": "Entrenamiento ingles3", @@ -5555,8 +5609,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 2176, - -64 + 2240, + -672 ], "id": "00c87312-256a-4738-856d-e92b9e144c75", "name": "Entrenamiento español1", @@ -5585,8 +5639,8 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 2176, - -240 + 2240, + -848 ], "id": "b3c26eeb-2ff9-42c9-b5cc-fe0776e53c46", "name": "Entrenamiento ingles4", @@ -5820,7 +5874,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ - 928, + 1152, -320 ], "id": "b183c892-8822-4bc3-a92c-4410eac41a01", @@ -5850,7 +5904,7 @@ "typeVersion": 1.3, "position": [ 1520, - -768 + -928 ], "id": "711b3353-6f75-4c6d-bef7-e704290787e8", "name": "Invitar con calendarios entrenamiento ingles", @@ -5869,7 +5923,7 @@ "type": "n8n-nodes-base.stickyNote", "position": [ 1440, - -1008 + -1168 ], "typeVersion": 1, "id": "304297ee-18fc-4cbd-8a01-b627ae08b991", @@ -5964,7 +6018,7 @@ "rule": { "interval": [ { - "triggerAtHour": 9 + "field": "hours" } ] } @@ -6039,7 +6093,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 528, + 752, -240 ], "id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7", @@ -6252,7 +6306,7 @@ "typeVersion": 1.3, "position": [ 1008, - -656 + -816 ], "id": "516244e1-3e39-4905-9160-86af296a0479", "name": "Entrenamiento español3", @@ -6280,7 +6334,7 @@ "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 1152, + 1376, -400 ], "id": "e8a65f36-8e8e-4135-b7a2-a7ef4617de2f", @@ -6303,7 +6357,7 @@ "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 1152, + 1376, -224 ], "id": "971ae719-5692-4f87-9a57-2287ee44783d", @@ -6325,7 +6379,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 1344, + 1568, -400 ], "id": "cb9e8a10-a1e7-40c7-8447-2379b0191a8f", @@ -6353,7 +6407,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 1344, + 1568, -224 ], "id": "5ca790ee-4944-4868-98af-89837ac39422", @@ -6372,7 +6426,7 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1536, + 1760, -400 ], "id": "c2db5e62-7741-4ff2-ad31-71c108dd7386", @@ -6385,7 +6439,7 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 1536, + 1760, -224 ], "id": "bde8fba9-0d6c-4299-8971-dcd8e0e740b4", @@ -6510,7 +6564,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 1696, + 1920, -400 ], "id": "dcdef9fc-9c61-45dd-9604-56037eac4c31", @@ -6569,7 +6623,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 1696, + 1920, -224 ], "id": "7530270a-b32e-419e-8fc5-b29fa07dda39", @@ -7266,6 +7320,40 @@ "name": "Sofia test - Supabase account" } } + }, + { + "parameters": { + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict", + "version": 3 + }, + "conditions": [ + { + "id": "d7d68505-8c34-44cd-b771-56bef28ada41", + "leftValue": "={{ $('Get an employee').item.json.workEmail }}", + "rightValue": "", + "operator": { + "type": "string", + "operation": "notEmpty", + "singleValue": true + } + } + ], + "combinator": "and" + }, + "options": {} + }, + "type": "n8n-nodes-base.if", + "typeVersion": 2.3, + "position": [ + 336, + -144 + ], + "id": "a9fff247-d1b0-4314-ba8d-e7401086b771", + "name": "Tiene correo?1" } ], "connections": { @@ -7429,7 +7517,7 @@ "main": [ [ { - "node": "Entra hoy?", + "node": "Tiene correo?1", "type": "main", "index": 0 } @@ -8143,18 +8231,36 @@ } ] ] + }, + "Tiene correo?1": { + "main": [ + [ + { + "node": "Entra hoy?", + "type": "main", + "index": 0 + } + ], + [ + { + "node": "Insertar a inscritos (inactivo)", + "type": "main", + "index": 0 + } + ] + ] } }, "authors": "Eidan Then", - "name": "Version 272c60cb", + "name": "Version 5ebb4ae2", "description": "", "autosaved": true, "workflowPublishHistory": [ { - "createdAt": "2026-06-16T22:19:10.293Z", - "id": 1474, + "createdAt": "2026-06-17T14:12:46.135Z", + "id": 1478, "workflowId": "F1iPg8hktNAebZua", - "versionId": "272c60cb-1f1d-4121-8aa3-6cadcb8ae45c", + "versionId": "5ebb4ae2-586d-4b43-aad3-8878435a38b5", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" }