diff --git a/glmway-workflow.json b/glmway-workflow.json index 432f3cf..a3b9697 100644 --- a/glmway-workflow.json +++ b/glmway-workflow.json @@ -1,6 +1,6 @@ { "$json": { - "updatedAt": "2026-06-30T21:29:51.638Z", + "updatedAt": "2026-07-01T21:16:20.279Z", "createdAt": "2026-06-08T13:50:12.174Z", "id": "F1iPg8hktNAebZua", "name": "GLMWay", @@ -1109,10 +1109,10 @@ }, { "parameters": { - "sendTo": "eidan.then14@gmail.com", + "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 }}", + "message": "=Hola, GLMer!\n\nEste {{ $json.fechaFormateada }} a las {{ $('Obtener sesiones español').item.json.hora_inicio }} tenemos entrenamiento, y 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{{ $('Obtener sesiones español').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -1120,7 +1120,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2272, + 2480, -400 ], "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", @@ -1136,10 +1136,10 @@ }, { "parameters": { - "sendTo": "eidan.then14@gmail.com", + "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 }}", + "message": "=Hello, GLMer!\n\nThis {{ $json.fechaFormateada }} at {{ $('Obtener sesiones ingles').item.json.hora_inicio }} we have training, and we want to share our culture, our DNA, and what makes us different from the rest.\n\nWe expect you to be punctual and eager to learn.\n\nSee you at the link!\n\n{{ $('Obtener sesiones ingles').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -1147,7 +1147,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2272, + 2480, -224 ], "id": "f173c8d1-9311-405c-a7ee-164726df32f1", @@ -1213,7 +1213,7 @@ "parameters": { "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", "height": 608, - "width": 2784, + "width": 3008, "color": 6 }, "type": "n8n-nodes-base.stickyNote", @@ -1292,7 +1292,7 @@ "parameters": { "content": "## Completar datos y enviar invitacion", "height": 544, - "width": 3472, + "width": 3696, "color": 6 }, "type": "n8n-nodes-base.stickyNote", @@ -1472,7 +1472,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 2592, + 2816, 352 ], "id": "30b3a4dd-6d50-405d-9c77-27febcc50aa4", @@ -1517,7 +1517,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ - 2768, + 2992, 432 ], "id": "67928478-7604-45a4-9ab0-851079e1470c", @@ -1529,7 +1529,7 @@ "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 }}", + "message": "=Hola, GLMer!\n\nEste {{ $json.fechaFormateada }} a las {{ $('Obtener sesiones español1').item.json.hora_inicio }} tenemos entrenamiento, y 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{{ $('Obtener sesiones español1').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -1537,7 +1537,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2240, + 2464, 272 ], "id": "32302b24-aa4c-4f9a-afc8-ef7e86cad56b", @@ -1556,7 +1556,7 @@ "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 }}", + "message": "=Hello, GLMer!\n\nThis {{ $json.fechaFormateada }} at {{ $('Obtener sesiones ingles1').item.json.hora_inicio }} we have training, and we want to share our culture, our DNA, and what makes us different from the rest.\n\nWe expect you to be punctual and eager to learn.\n\nSee you at the link!\n\n{{ $('Obtener sesiones ingles1').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -1564,7 +1564,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2240, + 2464, 448 ], "id": "db2cb6a3-1da8-472a-95eb-1a02de2a5fa4", @@ -1730,7 +1730,7 @@ "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ - 2944, + 3168, 352 ], "id": "98185de1-e81a-440f-8951-f98bd78c707b", @@ -1873,11 +1873,7 @@ "filtersUI": { "values": [ { - "lookupColumn": "cargo", - "lookupValue": "Coordinador RRHH" - }, - { - "lookupColumn": "country", + "lookupColumn": "Pais", "lookupValue": "={{ $('Get an employee').item.json.location }}" } ] @@ -1929,7 +1925,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 2432, + 2656, 352 ], "id": "3a6f198b-e136-49fb-a171-78164e10b600", @@ -2197,7 +2193,7 @@ }, { "parameters": { - "jsCode": "const hireDate = new Date(\n $('Entra hoy?1').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" + "jsCode": "const hireDate = new Date(\n $('Entra hoy?').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -2210,7 +2206,7 @@ }, { "parameters": { - "jsCode": "const hireDate = new Date(\n $('Entra hoy?1').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" + "jsCode": "const hireDate = new Date(\n $('Entra hoy?').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -2500,6 +2496,16 @@ "operation": "notEmpty", "singleValue": true } + }, + { + "id": "a245c081-ef08-4ba2-8164-2d2c35bd1e17", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "", + "operator": { + "type": "string", + "operation": "notEmpty", + "singleValue": true + } } ], "combinator": "and" @@ -3038,6 +3044,16 @@ "operation": "notEmpty", "singleValue": true } + }, + { + "id": "ec0276ab-208e-409b-8101-d06e535f541c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "", + "operator": { + "type": "string", + "operation": "notEmpty", + "singleValue": true + } } ], "combinator": "and" @@ -3152,7 +3168,7 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 2496, + 2704, -352 ], "id": "ca136518-b776-45ba-b1a2-ad5327dd4cca", @@ -3203,7 +3219,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 3392, + 3600, -352 ], "id": "7c321f7d-bce9-447c-b94c-35f6967a48e3", @@ -3221,7 +3237,7 @@ "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ - 3216, + 3424, -352 ], "id": "27531838-5dc7-4169-a08a-f4da93899580", @@ -3251,7 +3267,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 3040, + 3248, -352 ], "id": "bd8cb535-6aa3-46df-9ca0-6efc0555f2e4", @@ -3272,7 +3288,7 @@ }, "type": "n8n-nodes-base.stickyNote", "position": [ - 2464, + 2672, -480 ], "typeVersion": 1, @@ -3600,7 +3616,7 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 2688, + 2896, -352 ], "id": "b2b03ce6-6010-4e4f-be7a-d9040286e295", @@ -3619,7 +3635,7 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 2864, + 3072, -352 ], "id": "73c39af9-bc01-4d97-81ee-846aff70b3a6", @@ -3638,7 +3654,7 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 2496, + 2704, -48 ], "id": "55a755d8-8b74-440f-93c6-8a1ecba4c666", @@ -3652,7 +3668,7 @@ }, "type": "n8n-nodes-base.stickyNote", "position": [ - 2464, + 2672, -160 ], "typeVersion": 1, @@ -3679,7 +3695,7 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 3792, + 4144, -208 ], "id": "3c32f96e-cd34-4be4-8c24-b4be7a8f29d9", @@ -3712,7 +3728,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 2672, + 2880, -48 ], "id": "73089147-ba1f-4fb4-ac17-d5670b263fd8", @@ -3750,7 +3766,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 3008, + 3216, -48 ], "id": "231f396b-855a-4c50-8d6d-096018e6d2ac", @@ -3765,7 +3781,7 @@ "type": "n8n-nodes-base.aggregate", "typeVersion": 1, "position": [ - 2832, + 3040, -48 ], "id": "e51bd2d5-22b5-46cf-b346-c1ba16bb5c34", @@ -3796,7 +3812,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 4592, + 4944, -304 ], "id": "3f4a0807-5f29-49cb-a851-41100e04f5bf", @@ -3811,7 +3827,7 @@ "type": "n8n-nodes-base.aggregate", "typeVersion": 1, "position": [ - 4448, + 4800, -304 ], "id": "3ecbb0c7-f5f5-4644-9f42-8be9502e814d", @@ -3820,13 +3836,13 @@ { "parameters": { "mode": "raw", - "jsonOutput": "={\n \"meet_id\": \"{{ $json.id }}\",\n \"titulo\": \"{{ $json.titulo }}\",\n \"fecha_sesion\": \"{{ $json.fecha }}\",\n \"hora_inicio\": \"{{ $json.hora_fin }}\",\n \"hora_fin\": \"{{ $json.hora_fin }}\",\n \"instructor\": \"{{ $json.Espanol || $json.English || null }}\",\n \"correo_instructor\": \"{{ $json.Correo || null }}\",\n \"enlace_reunion\": \"{{ $json.url }}\",\n \"idioma\": \"{{ $json.idioma }}\"\n}", + "jsonOutput": "={\n \"meet_id\": \"{{ $json.id }}\",\n \"titulo\": \"{{ $json.titulo }}\",\n \"fecha_sesion\": \"{{ $json.fecha }}\",\n \"hora_inicio\": \"{{ $json.hora_inicio }}\",\n \"hora_fin\": \"{{ $json.hora_fin }}\",\n \"instructor\": \"{{ $json.Espanol || $json.English || null }}\",\n \"correo_instructor\": \"{{ $json.Correo || null }}\",\n \"enlace_reunion\": \"{{ $json.url }}\",\n \"idioma\": \"{{ $json.idioma }}\"\n}", "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 4304, + 4656, -304 ], "id": "a099259d-36e3-48b6-aa77-d8132f33f85e", @@ -3849,7 +3865,7 @@ "type": "n8n-nodes-base.merge", "typeVersion": 3.2, "position": [ - 4160, + 4512, -304 ], "id": "456bcbe4-cc98-48fc-bcd2-40f8961934ae", @@ -3857,13 +3873,13 @@ }, { "parameters": { - "content": "## Actualizar instructores y fechas de las sesiones en supabase\n\nEste trigger se activa todos los dias a las", + "content": "## Actualizar instructores y fechas de las sesiones en supabase\n\nEste trigger se activa todos los dias a las 3pm", "height": 416, "width": 1152 }, "type": "n8n-nodes-base.stickyNote", "position": [ - 3584, + 3936, -480 ], "typeVersion": 1, @@ -3887,7 +3903,7 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 3632, + 3984, -288 ], "id": "6ef829bf-1d52-4093-bcc5-45d922393611", @@ -3914,7 +3930,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 3792, + 4144, -384 ], "id": "f1bf8c51-43cf-41d4-93c4-1a1d0a0dac7a", @@ -3958,7 +3974,7 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 3968, + 4320, -208 ], "id": "8f80d9ca-1e4b-4753-b482-df7b0fd24f61", @@ -4132,8 +4148,8 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 1968, - 928 + 2000, + 1136 ], "id": "03832c44-864b-4277-a9fb-f94d56dc0f1c", "name": "Hay sesion?" @@ -4198,7 +4214,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 3200, + 3344, 176 ], "id": "df865311-bf25-4b35-ac8a-da71a3d93e05", @@ -4210,130 +4226,6 @@ } } }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2080, - 272 - ], - "id": "f3df197d-b557-45d7-94bb-76f3c300ae61", - "name": "Insertar/actualizar coordinadores a la bd1" - }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2080, - 448 - ], - "id": "23ac8709-b0ac-4bb6-911a-1e7641be075d", - "name": "Insertar/actualizar coordinadores a la bd2" - }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2096, - -400 - ], - "id": "4ab5f973-c2e1-410e-9212-8ed3b9d372e3", - "name": "Insertar/actualizar coordinadores a la bd3" - }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2096, - -224 - ], - "id": "5e69165f-16a2-4f7a-ad48-d24c70f3c88b", - "name": "Insertar/actualizar coordinadores a la bd4" - }, { "parameters": { "jsCode": "const item = $input.first().json;\nconst fecha_sesion = item.fecha_sesion;\n\n// Hoy\nconst hoy = new Date();\nhoy.setHours(0, 0, 0, 0);\n\n// Formatear hoy como \"26 June\"\nconst fecha_hoy = hoy.toLocaleDateString('en-GB', {\n day: 'numeric',\n month: 'long'\n});\n\n// Crear la fecha de la sesión usando el año actual\nlet sesion = new Date(`${fecha_sesion} ${hoy.getFullYear()}`);\nsesion.setHours(0, 0, 0, 0);\n\n// Si ya pasó este año, asumir el próximo\nif (sesion < hoy) {\n sesion = new Date(`${fecha_sesion} ${hoy.getFullYear() + 1}`);\n sesion.setHours(0, 0, 0, 0);\n}\n\n// Diferencia en días\nconst diferenciaDias = Math.floor(\n (sesion - hoy) / (1000 * 60 * 60 * 24)\n);\n\nconst isValid = diferenciaDias >= 0 && diferenciaDias <= 2;\n\n// Si no cumple la condición, no retornar nada\nif (!isValid) {\n return [];\n}\n\n// Retornar la sesión dentro de la llave \"sesion\"\nreturn [\n {\n json: {\n sesion: item,\n fecha_hoy,\n diferenciaDias,\n isValid\n }\n }\n];" @@ -4521,11 +4413,187 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 2192, + 1968, 928 ], "id": "d1472787-4c2f-4e1d-8673-5c2368d469ab", "name": "Hay inscritos?" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2096, + -400 + ], + "id": "4ab5f973-c2e1-410e-9212-8ed3b9d372e3", + "name": "Registrar empleado a la sesion" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana1').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2096, + -224 + ], + "id": "5e69165f-16a2-4f7a-ad48-d24c70f3c88b", + "name": "Registrar empleado a la sesion1" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2080, + 272 + ], + "id": "f3df197d-b557-45d7-94bb-76f3c300ae61", + "name": "Registrar empleado a la sesion2" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana3').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2080, + 448 + ], + "id": "23ac8709-b0ac-4bb6-911a-1e7641be075d", + "name": "Registrar empleado a la sesion3" + }, + { + "parameters": { + "jsCode": "// Diccionario de meses inglés -> español\nconst meses = {\n january: 'Enero',\n february: 'Febrero',\n march: 'Marzo',\n april: 'Abril',\n may: 'Mayo',\n june: 'Junio',\n july: 'Julio',\n august: 'Agosto',\n september: 'Septiembre',\n october: 'Octubre',\n november: 'Noviembre',\n december: 'Diciembre'\n};\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mesIngles = partes[1].toLowerCase();\n const mesEspanol = meses[mesIngles] || partes[1];\n\n item.json.fechaFormateada = `${mesEspanol} ${dia}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2288, + -400 + ], + "id": "ad0bb609-e224-4956-bf20-0d624f4ef3ae", + "name": "Convertir fecha a espanol" + }, + { + "parameters": { + "jsCode": "function getOrdinalSuffix(dia) {\n const d = parseInt(dia, 10);\n if (d > 3 && d < 21) return `${d}th`; // 11th-13th excepción cubierta aquí\n switch (d % 10) {\n case 1: return `${d}st`;\n case 2: return `${d}nd`;\n case 3: return `${d}rd`;\n default: return `${d}th`;\n }\n}\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mes = partes[1];\n const diaConSufijo = getOrdinalSuffix(dia);\n\n item.json.fechaFormateada = `${mes} ${diaConSufijo}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2288, + -224 + ], + "id": "a1ad0e55-59e3-405e-b75d-d092112e9151", + "name": "Convertir fecha a ingles" + }, + { + "parameters": { + "jsCode": "// Diccionario de meses inglés -> español\nconst meses = {\n january: 'Enero',\n february: 'Febrero',\n march: 'Marzo',\n april: 'Abril',\n may: 'Mayo',\n june: 'Junio',\n july: 'Julio',\n august: 'Agosto',\n september: 'Septiembre',\n october: 'Octubre',\n november: 'Noviembre',\n december: 'Diciembre'\n};\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mesIngles = partes[1].toLowerCase();\n const mesEspanol = meses[mesIngles] || partes[1];\n\n item.json.fechaFormateada = `${mesEspanol} ${dia}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2272, + 272 + ], + "id": "0d7870a9-0d82-49fe-96de-05c20164cffa", + "name": "Convertir fecha a espanol1" + }, + { + "parameters": { + "jsCode": "function getOrdinalSuffix(dia) {\n const d = parseInt(dia, 10);\n if (d > 3 && d < 21) return `${d}th`; // 11th-13th excepción cubierta aquí\n switch (d % 10) {\n case 1: return `${d}st`;\n case 2: return `${d}nd`;\n case 3: return `${d}rd`;\n default: return `${d}th`;\n }\n}\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mes = partes[1];\n const diaConSufijo = getOrdinalSuffix(dia);\n\n item.json.fechaFormateada = `${mes} ${diaConSufijo}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2272, + 448 + ], + "id": "4abc2638-3ae3-4aba-b45f-0b60e73e3267", + "name": "Convertir fecha a ingles1" } ], "connections": { @@ -5110,7 +5178,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd3", + "node": "Registrar empleado a la sesion", "type": "main", "index": 0 } @@ -5121,7 +5189,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd4", + "node": "Registrar empleado a la sesion1", "type": "main", "index": 0 } @@ -5194,7 +5262,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd1", + "node": "Registrar empleado a la sesion2", "type": "main", "index": 0 } @@ -5353,7 +5421,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd2", + "node": "Registrar empleado a la sesion3", "type": "main", "index": 0 } @@ -5617,7 +5685,7 @@ "main": [ [ { - "node": "Hay sesion?", + "node": "Hay inscritos?", "type": "main", "index": 0 } @@ -5655,13 +5723,7 @@ }, "Hay sesion?": { "main": [ - [ - { - "node": "Hay inscritos?", - "type": "main", - "index": 0 - } - ] + [] ] }, "Obtener sesiones": { @@ -5675,50 +5737,6 @@ ] ] }, - "Insertar/actualizar coordinadores a la bd1": { - "main": [ - [ - { - "node": "Send a message espanol1", - "type": "main", - "index": 0 - } - ] - ] - }, - "Insertar/actualizar coordinadores a la bd2": { - "main": [ - [ - { - "node": "Send a message ingles1", - "type": "main", - "index": 0 - } - ] - ] - }, - "Insertar/actualizar coordinadores a la bd3": { - "main": [ - [ - { - "node": "Send a message espanol", - "type": "main", - "index": 0 - } - ] - ] - }, - "Insertar/actualizar coordinadores a la bd4": { - "main": [ - [ - { - "node": "Send a message ingles", - "type": "main", - "index": 0 - } - ] - ] - }, "Calcular falta 48h o 24h": { "main": [ [ @@ -5821,6 +5839,94 @@ } ] ] + }, + "Registrar empleado a la sesion": { + "main": [ + [ + { + "node": "Convertir fecha a espanol", + "type": "main", + "index": 0 + } + ] + ] + }, + "Registrar empleado a la sesion1": { + "main": [ + [ + { + "node": "Convertir fecha a ingles", + "type": "main", + "index": 0 + } + ] + ] + }, + "Registrar empleado a la sesion2": { + "main": [ + [ + { + "node": "Convertir fecha a espanol1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Registrar empleado a la sesion3": { + "main": [ + [ + { + "node": "Convertir fecha a ingles1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a espanol": { + "main": [ + [ + { + "node": "Send a message espanol", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a ingles": { + "main": [ + [ + { + "node": "Send a message ingles", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a espanol1": { + "main": [ + [ + { + "node": "Send a message espanol1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a ingles1": { + "main": [ + [ + { + "node": "Send a message ingles1", + "type": "main", + "index": 0 + } + ] + ] } }, "settings": { @@ -5829,7 +5935,8 @@ "timeSavedMode": "fixed", "timezone": "America/Santo_Domingo", "callerPolicy": "workflowsFromSameOwner", - "availableInMCP": false + "availableInMCP": false, + "errorWorkflow": "lX5ITf9s4TSQglsM" }, "staticData": { "node:Gmail Trigger": { @@ -5844,19 +5951,19 @@ "recurrenceRules": [] }, "node:Comenzo evento ingles": { - "lastTimeChecked": "2026-06-30T21:23:14Z" + "lastTimeChecked": "2026-07-01T21:16:27Z" }, "node:Comenzo evento español": { - "lastTimeChecked": "2026-06-30T21:23:14Z" + "lastTimeChecked": "2026-07-01T21:16:28Z" }, "node:Termino evento español": { - "lastTimeChecked": "2026-06-30T21:23:14Z" + "lastTimeChecked": "2026-07-01T21:16:28Z" }, "node:Termino evento ingles": { - "lastTimeChecked": "2026-06-30T21:23:15Z" + "lastTimeChecked": "2026-07-01T21:16:28Z" }, "node:Prueba": { - "lastTimeChecked": "2026-06-30T21:23:15Z" + "lastTimeChecked": "2026-07-01T21:16:28Z" }, "node:Schedule Trigger2": { "recurrenceRules": [] @@ -6134,940 +6241,76 @@ } } ], - "Obtener sesiones": [ + "Schedule Trigger1": [ { "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "26 June", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "fc77eb7b-5c29-4cf8-ac79-967553bb6258", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260107T230000Z", - "participantes": { - "Colombia": [ + "timestamp": "2026-07-01T14:00:24.006-04:00", + "Readable date": "July 1st 2026, 2:00:24 pm", + "Readable time": "2:00:24 pm", + "Day of week": "Wednesday", + "Year": "2026", + "Month": "July", + "Day of month": "01", + "Hour": "14", + "Minute": "00", + "Second": "24", + "Timezone": "America/Santo_Domingo (UTC-04:00)" + }, + "pairedItem": { + "item": 0 + } + } + ], + "Webhook": [ + { + "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-6a451caf00000000fd3abfaf6b2acb63-c45af2dcb6cc8c70-01", + "tracestate": "dd=t.dm:-0", + "x-bamboohr-signature": "834446230a1b8076a2279412cb7cacdc655f9301bffdb380aee842ff295bc168", + "x-bamboohr-timestamp": "1782914223", + "x-datadog-parent-id": "14148888209111420016", + "x-datadog-sampling-priority": "1", + "x-datadog-tags": "_dd.p.tid=6a451caf00000000,_dd.p.dm=-0", + "x-datadog-trace-id": "18247107600383134563", + "x-forwarded-for": "18.119.117.53", + "x-forwarded-host": "agenteit.digitalcompass.agency", + "x-forwarded-port": "443", + "x-forwarded-proto": "https", + "x-forwarded-server": "07b4f09d2c65", + "x-real-ip": "18.119.117.53", + "accept-encoding": "gzip" + }, + "params": {}, + "query": {}, + "body": { + "employees": [ { - "correo": "pnossa@gomezlee.marketing", - "nombre": "Pedro Alejandro Nossa Mateus", - "division": "Whirlpool", - "departamento": "Field Force" - }, - { - "correo": "eortiz02@gomezlee.marketing", - "nombre": "Evelyn Ortiz Montoya", - "division": "Whirlpool", - "departamento": "Field Force" - } - ], - "Puerto Rico": [ - { - "correo": "johndoe@gomezlee.marketing", - "nombre": "John Doe", - "division": "Whirlpool", - "departamento": "Field Force" - }, - { - "correo": "ejemplo@gomezlee.marketing", - "nombre": "Nombre Ejemplo", - "division": "Whirlpool", - "departamento": "Field Force" + "changedFields": [], + "fields": {}, + "id": "50816", + "action": "Created", + "timestamp": "2026-07-01T07:56:59-06:00" } ] - } - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "21 January", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "cd6fe4dd-ebee-42fa-a91b-2bc045e7ce18", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260121T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "4 February", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "58387a88-1420-45da-aeeb-8fd7ef55b801", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260204T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "18 February", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "7b63f9d7-2332-47c0-972a-a5c36cc84588", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260218T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "25 February", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "7c81e311-9ca3-4df3-8ac1-30dd54f0b7d2", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260225T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "4 March", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "62ce5944-1046-4d60-8566-19610fc899d3", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260304T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "11 March", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "d9edbcb7-d9a5-4ba4-921a-07316f915b9e", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260311T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "18 March", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "fe9cd801-f6b8-4199-96b1-c3a0d665285d", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260318T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "25 March", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "bb836c6b-90bd-4fb8-a030-f06915ec6829", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260325T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "1 April", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "7df3d6ea-3f33-4966-84e4-177265b649ff", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260401T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "8 April", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "ff283fae-7d15-4b0e-90c1-95a59fd78ac8", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260408T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "15 April", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "c0633e67-c36d-49b5-a63d-c918ae6df4f5", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260415T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "22 April", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "6d262384-f976-4800-beda-8229ac4fd015", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260422T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "29 April", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "655725db-9ec4-41a7-828a-f32835cdfbe9", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260429T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "6 May", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "1c162202-38c5-47ac-b15c-c6df8627ce19", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260506T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "13 May", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "11ffe359-daee-431f-bb6f-aab7aa98446a", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260513T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "20 May", - "hora_inicio": "19:00", - "hora_fin": "19:00", - "instructor": "Gabriel", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "ec38560f-fa60-4ab5-a7b4-ae75e6015009", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260520T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "27 May", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Francis", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "3553b681-fb15-47f1-9135-0bf18c35ecdd", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260527T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "3 June", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Luis Matos", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "eaf67650-dd4f-4c5e-974d-710dd245dd4a", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260603T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "10 June", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Cher", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "55e77ba9-92ee-4daf-b599-73fe426f0785", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260610T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "17 June", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "José Fernando", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "22eedc5d-c272-4170-8d89-542820d0e021", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "24 June", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Liz", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "9c482ab0-c644-4843-a5e4-f6def353de48", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260624T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "8 July", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Francis", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "7781debb-b253-4768-8f0b-b72a4773696c", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260708T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "15 July", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Poul", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "b4b66241-7172-4f00-b0f8-297d2d93e054", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260715T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "22 July", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Francis", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "eb17c8a3-618f-470c-9bc1-eb6b0c45c869", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260722T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "29 July", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Pablo", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "367813be-f9b6-4209-85f7-0ea63a9777fb", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260729T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "5 August", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Lil", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "0ffb6207-8b33-4853-8008-a5d801a48353", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260805T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "12 August", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Yanelly", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "77984a4e-abb8-4b8a-ba67-04d2abbdf4e6", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260812T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "19 August", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Jose Leopoldo", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "19724904-e9b1-4a14-a39d-86bfded42326", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260819T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "26 August", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Jorge Mendieta", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "625a4465-19d6-4381-a648-b3de25d6132b", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260826T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "2 September", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Maximo", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "7ce860c1-aa2d-4649-a2fc-65de64027d6e", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260902T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "9 September", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Gerardo", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "247fbd24-c17f-4ac7-b6fb-541990abd6ad", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260909T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "16 September", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Lil", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "0788a80e-cfa1-4774-9a42-555e10b148b6", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260916T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "23 September", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Poul", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "22aa6454-4dc0-405d-88b2-99993a779a72", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260923T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "28 January", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "f2047f89-a15c-4351-bb13-9611c4f0c3a8", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260128T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "30 September", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Liz", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "137d23c1-b266-41af-9e41-18771b23a651", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20260930T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "7 October", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Gabriel", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "225df60f-113a-4cef-99f4-a33ce48d62a9", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261007T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "14 October", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Cher", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "34e91064-98ab-49f9-a1eb-abbe26c334e8", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20261014T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "21 October", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Lucy", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "29376839-a81c-4618-83cd-3d973e68d09c", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261021T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "28 October", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Jose Leopoldo", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "0b80e04d-869d-485f-8d32-28628b7c976c", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20261028T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "4 November", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Christian Coreas", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "d67863de-75c2-42a3-8624-ab909a50ad10", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261104T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "11 November", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Francis", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "00eb9ba5-d439-4f7e-8ea2-683094b9be18", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20261111T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "18 November", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Luis Matos", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "d98a1bf9-72de-4f98-89a4-e25f0498e46e", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261118T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "25 November", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Maximo", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "3889b22e-ba3e-42eb-8dfe-44caafa3d50f", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20261125T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "2 December", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "José Fernando", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "53c7c467-3f48-4746-a56e-4584a0b70368", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261202T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "9 December", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Lil", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "17aa07b3-3461-4aa9-8e5a-4439ca5b1fd2", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20261209T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "16 December", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Nathalia Suárez", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "5e08b1ae-c52f-4a10-8d03-7a97762cfc1f", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261216T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "#TheGLMWay Training", - "descripcion": null, - "fecha_sesion": "23 December", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Jose Leopoldo", - "enlace_reunion": "https://meet.google.com/mmc-iupp-sao", - "idioma": "EN", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "fae9a197-561b-4589-a9bf-f73cfb96719b", - "correo_instructor": "null", - "meet_id": "c82i08rqs6mt3gg9j4it0mulmc_20261223T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "30 December", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Gabriel", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "9a6a2ec8-3e7f-448f-9595-4247687ae4a3", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20261230T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "1 July", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "Nathalia Suárez", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "55f071e9-95ab-45d5-ad30-cb70d55ec7ac", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260701T230000Z", - "participantes": { - "Colombia": [ - { - "correo": "pnossa@gomezlee.marketing", - "nombre": "Pedro Alejandro Nossa Mateus", - "division": "Whirlpool", - "departamento": "Field Force" - }, - { - "correo": "eortiz02@gomezlee.marketing", - "nombre": "Evelyn Ortiz Montoya", - "division": "Whirlpool", - "departamento": "Field Force" - } - ] - } - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "14 January", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "46eb7333-e063-4aac-9d52-024b26759667", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260114T230000Z", - "participantes": null - } - }, - { - "json": { - "titulo": "Entrenamiento #TheGLMWay", - "descripcion": null, - "fecha_sesion": "11 February", - "hora_inicio": "20:00", - "hora_fin": "20:00", - "instructor": "null", - "enlace_reunion": "https://meet.google.com/aao-ixkr-uwu", - "idioma": "ES", - "created_at": "2026-06-25T21:44:29.483246+00:00", - "id": "470b29ca-b362-4c45-a02d-c56a879b7535", - "correo_instructor": "null", - "meet_id": "3ul4moq4isoavr9jhqpcbs7juu_20260211T230000Z", - "participantes": null + }, + "webhookUrl": "https://agenteit.digitalcompass.agency/webhook/glmway", + "executionMode": "production" + }, + "pairedItem": { + "item": 0 } } ] }, - "versionId": "3ea02347-34a4-4e2f-b908-054abd63eac9", - "activeVersionId": "99e21735-df66-460c-9b02-e3c8f5386801", - "versionCounter": 3409, + "versionId": "4bef6f10-7d40-43dd-bfa7-824b04d847d7", + "activeVersionId": "4bef6f10-7d40-43dd-bfa7-824b04d847d7", + "versionCounter": 3605, "triggerCount": 13, "shared": [ { @@ -7090,9 +6333,9 @@ ], "tags": [], "activeVersion": { - "updatedAt": "2026-06-30T21:23:15.000Z", - "createdAt": "2026-06-30T21:23:05.368Z", - "versionId": "99e21735-df66-460c-9b02-e3c8f5386801", + "updatedAt": "2026-07-01T21:16:28.000Z", + "createdAt": "2026-07-01T21:16:20.284Z", + "versionId": "4bef6f10-7d40-43dd-bfa7-824b04d847d7", "workflowId": "F1iPg8hktNAebZua", "nodes": [ { @@ -8196,10 +7439,10 @@ }, { "parameters": { - "sendTo": "eidan.then14@gmail.com", + "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 }}", + "message": "=Hola, GLMer!\n\nEste {{ $json.fechaFormateada }} a las {{ $('Obtener sesiones español').item.json.hora_inicio }} tenemos entrenamiento, y 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{{ $('Obtener sesiones español').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -8207,7 +7450,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2272, + 2480, -400 ], "id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387", @@ -8223,10 +7466,10 @@ }, { "parameters": { - "sendTo": "eidan.then14@gmail.com", + "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 }}", + "message": "=Hello, GLMer!\n\nThis {{ $json.fechaFormateada }} at {{ $('Obtener sesiones ingles').item.json.hora_inicio }} we have training, and we want to share our culture, our DNA, and what makes us different from the rest.\n\nWe expect you to be punctual and eager to learn.\n\nSee you at the link!\n\n{{ $('Obtener sesiones ingles').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -8234,7 +7477,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2272, + 2480, -224 ], "id": "f173c8d1-9311-405c-a7ee-164726df32f1", @@ -8300,7 +7543,7 @@ "parameters": { "content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado", "height": 608, - "width": 2784, + "width": 3008, "color": 6 }, "type": "n8n-nodes-base.stickyNote", @@ -8379,7 +7622,7 @@ "parameters": { "content": "## Completar datos y enviar invitacion", "height": 544, - "width": 3472, + "width": 3696, "color": 6 }, "type": "n8n-nodes-base.stickyNote", @@ -8559,7 +7802,7 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 2592, + 2816, 352 ], "id": "30b3a4dd-6d50-405d-9c77-27febcc50aa4", @@ -8604,7 +7847,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ - 2768, + 2992, 432 ], "id": "67928478-7604-45a4-9ab0-851079e1470c", @@ -8616,7 +7859,7 @@ "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 }}", + "message": "=Hola, GLMer!\n\nEste {{ $json.fechaFormateada }} a las {{ $('Obtener sesiones español1').item.json.hora_inicio }} tenemos entrenamiento, y 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{{ $('Obtener sesiones español1').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -8624,7 +7867,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2240, + 2464, 272 ], "id": "32302b24-aa4c-4f9a-afc8-ef7e86cad56b", @@ -8643,7 +7886,7 @@ "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 }}", + "message": "=Hello, GLMer!\n\nThis {{ $json.fechaFormateada }} at {{ $('Obtener sesiones ingles1').item.json.hora_inicio }} we have training, and we want to share our culture, our DNA, and what makes us different from the rest.\n\nWe expect you to be punctual and eager to learn.\n\nSee you at the link!\n\n{{ $('Obtener sesiones ingles1').item.json.enlace_reunion }}", "options": { "appendAttribution": false } @@ -8651,7 +7894,7 @@ "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [ - 2240, + 2464, 448 ], "id": "db2cb6a3-1da8-472a-95eb-1a02de2a5fa4", @@ -8817,7 +8060,7 @@ "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ - 2944, + 3168, 352 ], "id": "98185de1-e81a-440f-8951-f98bd78c707b", @@ -8960,11 +8203,7 @@ "filtersUI": { "values": [ { - "lookupColumn": "cargo", - "lookupValue": "Coordinador RRHH" - }, - { - "lookupColumn": "country", + "lookupColumn": "Pais", "lookupValue": "={{ $('Get an employee').item.json.location }}" } ] @@ -9016,7 +8255,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 2432, + 2656, 352 ], "id": "3a6f198b-e136-49fb-a171-78164e10b600", @@ -9284,7 +8523,7 @@ }, { "parameters": { - "jsCode": "const hireDate = new Date(\n $('Entra hoy?1').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" + "jsCode": "const hireDate = new Date(\n $('Entra hoy?').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -9297,7 +8536,7 @@ }, { "parameters": { - "jsCode": "const hireDate = new Date(\n $('Entra hoy?1').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" + "jsCode": "const hireDate = new Date(\n $('Entra hoy?').first().json.hireDate\n);\nconst sessions = $input.all();\n\n// Helper para parsear \"14 January\" → Date\nfunction parseSessionDate(dateStr) {\n if (!dateStr) return null;\n const [day, month] = dateStr.split(' ');\n const currentYear = new Date().getFullYear();\n return new Date(`${month} ${day}, ${currentYear}`);\n}\n\nconst validSessions = sessions.filter(item => {\n const sessionDate = parseSessionDate(item.json.fecha_sesion);\n return sessionDate && sessionDate >= hireDate;\n});\n\nvalidSessions.sort((a, b) =>\n parseSessionDate(a.json.fecha_sesion) - parseSessionDate(b.json.fecha_sesion)\n);\n\nconst nearestSession = validSessions[0];\nreturn [\n {\n json: {\n hireDate: hireDate.toISOString().split('T')[0],\n foundSession: !!nearestSession,\n session: nearestSession?.json ?? null\n }\n }\n];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -9587,6 +8826,16 @@ "operation": "notEmpty", "singleValue": true } + }, + { + "id": "a245c081-ef08-4ba2-8164-2d2c35bd1e17", + "leftValue": "={{ $('Get an employee1').item.json.location }}", + "rightValue": "", + "operator": { + "type": "string", + "operation": "notEmpty", + "singleValue": true + } } ], "combinator": "and" @@ -10125,6 +9374,16 @@ "operation": "notEmpty", "singleValue": true } + }, + { + "id": "ec0276ab-208e-409b-8101-d06e535f541c", + "leftValue": "={{ $('Get an employee').item.json.location }}", + "rightValue": "", + "operator": { + "type": "string", + "operation": "notEmpty", + "singleValue": true + } } ], "combinator": "and" @@ -10239,7 +9498,7 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 2496, + 2704, -352 ], "id": "ca136518-b776-45ba-b1a2-ad5327dd4cca", @@ -10290,7 +9549,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 3392, + 3600, -352 ], "id": "7c321f7d-bce9-447c-b94c-35f6967a48e3", @@ -10308,7 +9567,7 @@ "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ - 3216, + 3424, -352 ], "id": "27531838-5dc7-4169-a08a-f4da93899580", @@ -10338,7 +9597,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 3040, + 3248, -352 ], "id": "bd8cb535-6aa3-46df-9ca0-6efc0555f2e4", @@ -10359,7 +9618,7 @@ }, "type": "n8n-nodes-base.stickyNote", "position": [ - 2464, + 2672, -480 ], "typeVersion": 1, @@ -10687,7 +9946,7 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 2688, + 2896, -352 ], "id": "b2b03ce6-6010-4e4f-be7a-d9040286e295", @@ -10706,7 +9965,7 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 2864, + 3072, -352 ], "id": "73c39af9-bc01-4d97-81ee-846aff70b3a6", @@ -10725,7 +9984,7 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 2496, + 2704, -48 ], "id": "55a755d8-8b74-440f-93c6-8a1ecba4c666", @@ -10739,7 +9998,7 @@ }, "type": "n8n-nodes-base.stickyNote", "position": [ - 2464, + 2672, -160 ], "typeVersion": 1, @@ -10766,7 +10025,7 @@ "type": "n8n-nodes-base.googleCalendar", "typeVersion": 1.3, "position": [ - 3792, + 4144, -208 ], "id": "3c32f96e-cd34-4be4-8c24-b4be7a8f29d9", @@ -10799,7 +10058,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 2672, + 2880, -48 ], "id": "73089147-ba1f-4fb4-ac17-d5670b263fd8", @@ -10837,7 +10096,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 3008, + 3216, -48 ], "id": "231f396b-855a-4c50-8d6d-096018e6d2ac", @@ -10852,7 +10111,7 @@ "type": "n8n-nodes-base.aggregate", "typeVersion": 1, "position": [ - 2832, + 3040, -48 ], "id": "e51bd2d5-22b5-46cf-b346-c1ba16bb5c34", @@ -10883,7 +10142,7 @@ "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ - 4592, + 4944, -304 ], "id": "3f4a0807-5f29-49cb-a851-41100e04f5bf", @@ -10898,7 +10157,7 @@ "type": "n8n-nodes-base.aggregate", "typeVersion": 1, "position": [ - 4448, + 4800, -304 ], "id": "3ecbb0c7-f5f5-4644-9f42-8be9502e814d", @@ -10907,13 +10166,13 @@ { "parameters": { "mode": "raw", - "jsonOutput": "={\n \"meet_id\": \"{{ $json.id }}\",\n \"titulo\": \"{{ $json.titulo }}\",\n \"fecha_sesion\": \"{{ $json.fecha }}\",\n \"hora_inicio\": \"{{ $json.hora_fin }}\",\n \"hora_fin\": \"{{ $json.hora_fin }}\",\n \"instructor\": \"{{ $json.Espanol || $json.English || null }}\",\n \"correo_instructor\": \"{{ $json.Correo || null }}\",\n \"enlace_reunion\": \"{{ $json.url }}\",\n \"idioma\": \"{{ $json.idioma }}\"\n}", + "jsonOutput": "={\n \"meet_id\": \"{{ $json.id }}\",\n \"titulo\": \"{{ $json.titulo }}\",\n \"fecha_sesion\": \"{{ $json.fecha }}\",\n \"hora_inicio\": \"{{ $json.hora_inicio }}\",\n \"hora_fin\": \"{{ $json.hora_fin }}\",\n \"instructor\": \"{{ $json.Espanol || $json.English || null }}\",\n \"correo_instructor\": \"{{ $json.Correo || null }}\",\n \"enlace_reunion\": \"{{ $json.url }}\",\n \"idioma\": \"{{ $json.idioma }}\"\n}", "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ - 4304, + 4656, -304 ], "id": "a099259d-36e3-48b6-aa77-d8132f33f85e", @@ -10936,7 +10195,7 @@ "type": "n8n-nodes-base.merge", "typeVersion": 3.2, "position": [ - 4160, + 4512, -304 ], "id": "456bcbe4-cc98-48fc-bcd2-40f8961934ae", @@ -10944,13 +10203,13 @@ }, { "parameters": { - "content": "## Actualizar instructores y fechas de las sesiones en supabase\n\nEste trigger se activa todos los dias a las", + "content": "## Actualizar instructores y fechas de las sesiones en supabase\n\nEste trigger se activa todos los dias a las 3pm", "height": 416, "width": 1152 }, "type": "n8n-nodes-base.stickyNote", "position": [ - 3584, + 3936, -480 ], "typeVersion": 1, @@ -10974,7 +10233,7 @@ "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ - 3632, + 3984, -288 ], "id": "6ef829bf-1d52-4093-bcc5-45d922393611", @@ -11001,7 +10260,7 @@ "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [ - 3792, + 4144, -384 ], "id": "f1bf8c51-43cf-41d4-93c4-1a1d0a0dac7a", @@ -11045,7 +10304,7 @@ "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ - 3968, + 4320, -208 ], "id": "8f80d9ca-1e4b-4753-b482-df7b0fd24f61", @@ -11095,7 +10354,7 @@ "sendTo": "eidan.then14@gmail.com", "subject": "Entrenamiento #TheGLMWay", "emailType": "text", - "message": "=¡Hola, GLMer!\n\nEste es un recordatorio de tu entrenamiento, donde te transmitiremos nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\n¡Te esperamos puntual y con toda la energía para aprender!\n\nÚnete aquí:\n{{ $json.conferenceData.entryPoints[0].uri }}", + "message": "=Hola,\n\nTe escribo para informarte que, hasta el momento, no hay personas inscritas para la actividad de hoy.\n\nSaludos.\n\nEste es un mensaje automático generado por el sistema de gestión de inscripciones.", "options": { "appendAttribution": false } @@ -11122,7 +10381,7 @@ "sendTo": "eidan.then14@gmail.com", "subject": "#TheGLMWay Training", "emailType": "text", - "message": "=Hello, GLMer!\n\nThis is a reminder about your training session, where we'll share our culture, our DNA, and what makes us different from the rest.\n\nWe're looking forward to seeing you on time and ready to learn!\n\nJoin here:\n{{ $json.conferenceData.entryPoints[0].uri }}", + "message": "=Hello,\n\nThis is to inform you that, as of now, there are no people enrolled for today's activity.\n\nBest regards.\n\nThis is an automated message generated by the enrollment management system.", "options": { "appendAttribution": false } @@ -11219,8 +10478,8 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 1968, - 928 + 2000, + 1136 ], "id": "03832c44-864b-4277-a9fb-f94d56dc0f1c", "name": "Hay sesion?" @@ -11285,7 +10544,7 @@ "type": "n8n-nodes-base.supabase", "typeVersion": 1, "position": [ - 3200, + 3344, 176 ], "id": "df865311-bf25-4b35-ac8a-da71a3d93e05", @@ -11297,130 +10556,6 @@ } } }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2080, - 272 - ], - "id": "f3df197d-b557-45d7-94bb-76f3c300ae61", - "name": "Insertar/actualizar coordinadores a la bd1" - }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2080, - 448 - ], - "id": "23ac8709-b0ac-4bb6-911a-1e7641be075d", - "name": "Insertar/actualizar coordinadores a la bd2" - }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2096, - -400 - ], - "id": "4ab5f973-c2e1-410e-9212-8ed3b9d372e3", - "name": "Insertar/actualizar coordinadores a la bd3" - }, - { - "parameters": { - "method": "POST", - "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "apikey", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - }, - { - "name": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", - "options": {} - }, - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - 2096, - -224 - ], - "id": "5e69165f-16a2-4f7a-ad48-d24c70f3c88b", - "name": "Insertar/actualizar coordinadores a la bd4" - }, { "parameters": { "jsCode": "const item = $input.first().json;\nconst fecha_sesion = item.fecha_sesion;\n\n// Hoy\nconst hoy = new Date();\nhoy.setHours(0, 0, 0, 0);\n\n// Formatear hoy como \"26 June\"\nconst fecha_hoy = hoy.toLocaleDateString('en-GB', {\n day: 'numeric',\n month: 'long'\n});\n\n// Crear la fecha de la sesión usando el año actual\nlet sesion = new Date(`${fecha_sesion} ${hoy.getFullYear()}`);\nsesion.setHours(0, 0, 0, 0);\n\n// Si ya pasó este año, asumir el próximo\nif (sesion < hoy) {\n sesion = new Date(`${fecha_sesion} ${hoy.getFullYear() + 1}`);\n sesion.setHours(0, 0, 0, 0);\n}\n\n// Diferencia en días\nconst diferenciaDias = Math.floor(\n (sesion - hoy) / (1000 * 60 * 60 * 24)\n);\n\nconst isValid = diferenciaDias >= 0 && diferenciaDias <= 2;\n\n// Si no cumple la condición, no retornar nada\nif (!isValid) {\n return [];\n}\n\n// Retornar la sesión dentro de la llave \"sesion\"\nreturn [\n {\n json: {\n sesion: item,\n fecha_hoy,\n diferenciaDias,\n isValid\n }\n }\n];" @@ -11608,11 +10743,187 @@ "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ - 2192, + 1968, 928 ], "id": "d1472787-4c2f-4e1d-8673-5c2368d469ab", "name": "Hay inscritos?" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2096, + -400 + ], + "id": "4ab5f973-c2e1-410e-9212-8ed3b9d372e3", + "name": "Registrar empleado a la sesion" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana1').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2096, + -224 + ], + "id": "5e69165f-16a2-4f7a-ad48-d24c70f3c88b", + "name": "Registrar empleado a la sesion1" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana2').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2080, + 272 + ], + "id": "f3df197d-b557-45d7-94bb-76f3c300ae61", + "name": "Registrar empleado a la sesion2" + }, + { + "parameters": { + "method": "POST", + "url": "https://dbit.digitalcompass.agency/rest/v1/rpc/insertar_participantes_sesion_glmway", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "apikey", + "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + }, + { + "name": "Authorization", + "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"p_sesion_id\": \"{{ $('Calcular sesion mas cercana3').item.json.session.id }}\",\n \"p_pais\": \"{{ $json.pais }}\",\n \"p_empleados\": [\n {\n \"nombre\": \"{{ $json.nombre }}\",\n \"correo\": \"{{ $json.email }}\",\n \"departamento\": \"{{ $json.departamento }}\",\n \"division\": \"{{ $json.division }}\"\n }\n ]\n}", + "options": {} + }, + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.4, + "position": [ + 2080, + 448 + ], + "id": "23ac8709-b0ac-4bb6-911a-1e7641be075d", + "name": "Registrar empleado a la sesion3" + }, + { + "parameters": { + "jsCode": "// Diccionario de meses inglés -> español\nconst meses = {\n january: 'Enero',\n february: 'Febrero',\n march: 'Marzo',\n april: 'Abril',\n may: 'Mayo',\n june: 'Junio',\n july: 'Julio',\n august: 'Agosto',\n september: 'Septiembre',\n october: 'Octubre',\n november: 'Noviembre',\n december: 'Diciembre'\n};\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mesIngles = partes[1].toLowerCase();\n const mesEspanol = meses[mesIngles] || partes[1];\n\n item.json.fechaFormateada = `${mesEspanol} ${dia}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2288, + -400 + ], + "id": "ad0bb609-e224-4956-bf20-0d624f4ef3ae", + "name": "Convertir fecha a espanol" + }, + { + "parameters": { + "jsCode": "function getOrdinalSuffix(dia) {\n const d = parseInt(dia, 10);\n if (d > 3 && d < 21) return `${d}th`; // 11th-13th excepción cubierta aquí\n switch (d % 10) {\n case 1: return `${d}st`;\n case 2: return `${d}nd`;\n case 3: return `${d}rd`;\n default: return `${d}th`;\n }\n}\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mes = partes[1];\n const diaConSufijo = getOrdinalSuffix(dia);\n\n item.json.fechaFormateada = `${mes} ${diaConSufijo}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2288, + -224 + ], + "id": "a1ad0e55-59e3-405e-b75d-d092112e9151", + "name": "Convertir fecha a ingles" + }, + { + "parameters": { + "jsCode": "// Diccionario de meses inglés -> español\nconst meses = {\n january: 'Enero',\n february: 'Febrero',\n march: 'Marzo',\n april: 'Abril',\n may: 'Mayo',\n june: 'Junio',\n july: 'Julio',\n august: 'Agosto',\n september: 'Septiembre',\n october: 'Octubre',\n november: 'Noviembre',\n december: 'Diciembre'\n};\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mesIngles = partes[1].toLowerCase();\n const mesEspanol = meses[mesIngles] || partes[1];\n\n item.json.fechaFormateada = `${mesEspanol} ${dia}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2272, + 272 + ], + "id": "0d7870a9-0d82-49fe-96de-05c20164cffa", + "name": "Convertir fecha a espanol1" + }, + { + "parameters": { + "jsCode": "function getOrdinalSuffix(dia) {\n const d = parseInt(dia, 10);\n if (d > 3 && d < 21) return `${d}th`; // 11th-13th excepción cubierta aquí\n switch (d % 10) {\n case 1: return `${d}st`;\n case 2: return `${d}nd`;\n case 3: return `${d}rd`;\n default: return `${d}th`;\n }\n}\n\nfor (const item of $input.all()) {\n const fecha = $('Calcular sesion mas cercana1').first().json.session.fecha_sesion; // Cambia \"fecha\" por el nombre real de tu campo\n const partes = fecha.trim().split(' '); // [\"8\", \"July\"]\n\n const dia = partes[0];\n const mes = partes[1];\n const diaConSufijo = getOrdinalSuffix(dia);\n\n item.json.fechaFormateada = `${mes} ${diaConSufijo}`;\n}\n\nreturn $input.all();" + }, + "type": "n8n-nodes-base.code", + "typeVersion": 2, + "position": [ + 2272, + 448 + ], + "id": "4abc2638-3ae3-4aba-b45f-0b60e73e3267", + "name": "Convertir fecha a ingles1" } ], "connections": { @@ -12197,7 +11508,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd3", + "node": "Registrar empleado a la sesion", "type": "main", "index": 0 } @@ -12208,7 +11519,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd4", + "node": "Registrar empleado a la sesion1", "type": "main", "index": 0 } @@ -12281,7 +11592,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd1", + "node": "Registrar empleado a la sesion2", "type": "main", "index": 0 } @@ -12440,7 +11751,7 @@ "main": [ [ { - "node": "Insertar/actualizar coordinadores a la bd2", + "node": "Registrar empleado a la sesion3", "type": "main", "index": 0 } @@ -12704,7 +12015,7 @@ "main": [ [ { - "node": "Hay sesion?", + "node": "Hay inscritos?", "type": "main", "index": 0 } @@ -12742,13 +12053,7 @@ }, "Hay sesion?": { "main": [ - [ - { - "node": "Hay inscritos?", - "type": "main", - "index": 0 - } - ] + [] ] }, "Obtener sesiones": { @@ -12762,50 +12067,6 @@ ] ] }, - "Insertar/actualizar coordinadores a la bd1": { - "main": [ - [ - { - "node": "Send a message espanol1", - "type": "main", - "index": 0 - } - ] - ] - }, - "Insertar/actualizar coordinadores a la bd2": { - "main": [ - [ - { - "node": "Send a message ingles1", - "type": "main", - "index": 0 - } - ] - ] - }, - "Insertar/actualizar coordinadores a la bd3": { - "main": [ - [ - { - "node": "Send a message espanol", - "type": "main", - "index": 0 - } - ] - ] - }, - "Insertar/actualizar coordinadores a la bd4": { - "main": [ - [ - { - "node": "Send a message ingles", - "type": "main", - "index": 0 - } - ] - ] - }, "Calcular falta 48h o 24h": { "main": [ [ @@ -12908,18 +12169,106 @@ } ] ] + }, + "Registrar empleado a la sesion": { + "main": [ + [ + { + "node": "Convertir fecha a espanol", + "type": "main", + "index": 0 + } + ] + ] + }, + "Registrar empleado a la sesion1": { + "main": [ + [ + { + "node": "Convertir fecha a ingles", + "type": "main", + "index": 0 + } + ] + ] + }, + "Registrar empleado a la sesion2": { + "main": [ + [ + { + "node": "Convertir fecha a espanol1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Registrar empleado a la sesion3": { + "main": [ + [ + { + "node": "Convertir fecha a ingles1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a espanol": { + "main": [ + [ + { + "node": "Send a message espanol", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a ingles": { + "main": [ + [ + { + "node": "Send a message ingles", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a espanol1": { + "main": [ + [ + { + "node": "Send a message espanol1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Convertir fecha a ingles1": { + "main": [ + [ + { + "node": "Send a message ingles1", + "type": "main", + "index": 0 + } + ] + ] } }, "authors": "Eidan Then", - "name": "Version 99e21735", + "name": "Version 4bef6f10", "description": "", "autosaved": true, "workflowPublishHistory": [ { - "createdAt": "2026-06-30T21:23:15.364Z", - "id": 2126, + "createdAt": "2026-07-01T21:16:28.782Z", + "id": 2213, "workflowId": "F1iPg8hktNAebZua", - "versionId": "99e21735-df66-460c-9b02-e3c8f5386801", + "versionId": "4bef6f10-7d40-43dd-bfa7-824b04d847d7", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" }