{ "$json": { "updatedAt": "2026-06-06T01:22:24.945Z", "createdAt": "2026-04-23T15:09:38.785Z", "id": "ZzH2eMPrsqlY7WPz", "name": "hbdwsp", "description": null, "active": true, "isArchived": false, "nodes": [ { "parameters": { "html": "\n\n\n \n \n Tarjeta de Cumpleaños GLM\n \n\n\n
\n
\n \"Foto\n
\n\n
\n\n

{{ $('Coincide con fecha de hoy?').item.json.firstName }}

\n\n
\n\n\n
{{ new Date($('Coincide con fecha de hoy?').item.json.Birthday).toLocaleDateString('es-ES', { month: 'long', day: 'numeric' }).replace(/^./, c => c.toUpperCase()) }}
\n\n
\n
\n\n" }, "type": "n8n-nodes-base.html", "typeVersion": 1.2, "position": [ 1248, 464 ], "id": "cabdd553-df4a-44c7-91d3-22ac3b4b4b5e", "name": "HTML" }, { "parameters": { "method": "POST", "url": "https://pruebadetemplate-browserless.k11ytw.easypanel.host/chromium/screenshot?token=8d66338953f117a7c29c55364c8c9e6d", "sendBody": true, "bodyParameters": { "parameters": [ { "name": "=html", "value": "={{$json.html}}" }, { "name": "viewport", "value": "={{ { \"width\": 1080, \"height\": 1920 } }}" } ] }, "options": { "response": { "response": { "responseFormat": "file" } } } }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.3, "position": [ 1424, 464 ], "id": "a4bd2a95-6771-488e-bc93-be8c5e9fd870", "name": "HTTP Request" }, { "parameters": { "operation": "binaryToPropery", "options": {} }, "type": "n8n-nodes-base.extractFromFile", "typeVersion": 1, "position": [ 1600, 464 ], "id": "7ae03c27-6f7d-4d79-a894-cf09fe982bc1", "name": "Extract from File" }, { "parameters": { "resource": "companyReport", "reportId": "1509", "format": "CSV", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -1472, 464 ], "id": "095002c6-f2fd-4416-89f7-deedc422a2e2", "name": "BambooHR", "credentials": { "bambooHrApi": { "id": "VwYITXROyinOC4je", "name": "Eidan - BambooHR account" } } }, { "parameters": { "operation": "update", "fileId": { "__rl": true, "value": "1Jw9yOyIKB1QLcr9m8ObGP9PK0tC9z3n6", "mode": "list", "cachedResultName": "HBD.csv", "cachedResultUrl": "https://drive.google.com/file/d/1Jw9yOyIKB1QLcr9m8ObGP9PK0tC9z3n6/view?usp=drivesdk" }, "changeFileContent": true, "options": {} }, "type": "n8n-nodes-base.googleDrive", "typeVersion": 3, "position": [ -1296, 464 ], "id": "c3e1be79-28ac-48b8-9055-b702a8e658a5", "name": "Google Drive", "credentials": { "googleDriveOAuth2Api": { "id": "gL2ZTwJb6xojauac", "name": "Eidan - Google Drive account" } } }, { "parameters": { "documentId": { "__rl": true, "value": "1p0bCvHAIHjobiPhDfmTshZWvRP6PWAmmTtSoX77lBmM", "mode": "list", "cachedResultName": "HBD", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1p0bCvHAIHjobiPhDfmTshZWvRP6PWAmmTtSoX77lBmM/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": 759771456, "mode": "list", "cachedResultName": "HBD", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1p0bCvHAIHjobiPhDfmTshZWvRP6PWAmmTtSoX77lBmM/edit#gid=759771456" }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ -1136, 464 ], "id": "4443088b-0e2f-45c4-839f-54eca80361ed", "name": "Google Sheets", "credentials": { "googleSheetsOAuth2Api": { "id": "8Pp0ek3NPsEkyXfY", "name": "Eidan - Google Sheets account" } } }, { "parameters": { "options": {} }, "type": "n8n-nodes-base.splitInBatches", "typeVersion": 3, "position": [ -144, 464 ], "id": "25c15753-50c9-4656-9593-e6ec8df23fe9", "name": "Loop Over Items" }, { "parameters": { "rule": { "interval": [ { "triggerAtHour": 10 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ -1664, 464 ], "id": "1c563ad4-9cd2-4e4f-9e89-26947ae8167f", "name": "Schedule Trigger" }, { "parameters": { "amount": 3 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 1952, 464 ], "id": "cd6efe66-4716-4735-a7fb-0b4691ac3b9d", "name": "Wait", "webhookId": "1d569ac8-a779-47d1-b68c-1a35c9c10033" }, { "parameters": { "content": "18494105855@s.whatsapp.net\n\n120363216738484180@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, -16 ], "typeVersion": 1, "id": "c94d0200-89f0-4959-a8ec-55c16117ca4f", "name": "Sticky Note" }, { "parameters": { "content": "caption\n\npara agregar comentario en la foto" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, 176 ], "typeVersion": 1, "id": "ac8855c5-4701-45b6-940f-e033fc735f87", "name": "Sticky Note1" }, { "parameters": { "content": "## Guardar/actualizar y extraer datos\n\n", "height": 304, "width": 320 }, "type": "n8n-nodes-base.stickyNote", "position": [ -1328, 304 ], "typeVersion": 1, "id": "82525b83-f87a-4540-b833-aa325ca7d752", "name": "Sticky Note3" }, { "parameters": { "content": "## Trigger\n\n1. Hace un trigger todos los dias a las 10am.\n2. Descarga el reporte de la compañia con el id 1509 en formato .csv.\n\n\n", "height": 304, "width": 352, "color": "#4E2163" }, "type": "n8n-nodes-base.stickyNote", "position": [ -1696, 304 ], "typeVersion": 1, "id": "8e70160a-2b9d-4fd4-a9ae-f1717b995919", "name": "Sticky Note6" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "loose", "version": 2 }, "conditions": [ { "id": "dc715bc1-428e-4143-a746-a469a25deea1", "leftValue": "={{ $json.Birthday }}", "rightValue": "={{ $now.format('MMMM dd') }} ", "operator": { "type": "dateTime", "operation": "equals" } } ], "combinator": "and" }, "looseTypeValidation": true, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 512, 480 ], "id": "2f541e33-f840-4b86-8888-d683c805d301", "name": "Coincide con fecha de hoy?", "onError": "continueRegularOutput" }, { "parameters": { "content": "## Tiene fecha?\n\n**TRUE**: Si falta el cumpleaños o la foto del empleado, el sistema avisará automáticamente a Recursos Humanos.\n\n**FALSE**: Si el empleado tiene una fecha de nacimiento y foto registrado, el flujo sigue.\n", "height": 384, "width": 320, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ 48, 224 ], "typeVersion": 1, "id": "8c359e24-0616-484a-a666-6049885e6b7e", "name": "Sticky Note7" }, { "parameters": { "content": "## Pais?\n\n**TRUE**: Si el empleado **NO** es de estos países no hispano; el flujo sigue.\n\n**FALSE**: Si el empleado es de un país no hispano.\n", "height": 336, "width": 304, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ -976, 272 ], "typeVersion": 1, "id": "0b98fc7f-99ab-4861-aa3c-84a9cc507f73", "name": "Sticky Note8" }, { "parameters": { "content": "## Coincide con fecha de hoy? \n\n**TRUE**: Si la fecha del empleado coincide con la fecha de hoy, el flujo sigue.\n\n**FALSE**: Si la fecha del empleado no coincide con la fecha de hoy, el flujo se devuelve.", "height": 384, "width": 336, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ 384, 224 ], "typeVersion": 1, "id": "77e5295a-395f-4718-a9f4-69c084605803", "name": "Sticky Note9" }, { "parameters": { "content": "## Envía mensaje de felicitación al empleado al grupo de Whatsapp\n", "height": 256, "width": 864, "color": "#17480A" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1216, 368 ], "typeVersion": 1, "id": "25b44405-2ee1-4dc6-a16f-2b19835e851e", "name": "Sticky Note10" }, { "parameters": { "amount": 1 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 736, 704 ], "id": "8eca94d2-3d02-4be7-8020-1eb7c79215d3", "name": "Wait3", "webhookId": "02f7c446-318a-4b43-aad5-7e88062bbf8e" }, { "parameters": { "mode": "combine", "advanced": true, "mergeByFields": { "values": [ { "field1": "workEmail", "field2": "Work Email" } ] }, "joinMode": "enrichInput1", "options": {} }, "type": "n8n-nodes-base.merge", "typeVersion": 3.2, "position": [ -336, 464 ], "id": "35f13ca6-663e-4b9f-b2d0-c9929510e806", "name": "Merge" }, { "parameters": { "content": "## Manejo de datos \n\n1. Obtiene información del empleado.\n\n2. Une la información de Google Sheets y Bamboo en una sola lista.\n\n3. Loop toma a cada empleado de la lista, uno tras otro, para realizar las siguientes acciones de forma individual. ", "height": 464, "width": 608 }, "type": "n8n-nodes-base.stickyNote", "position": [ -624, 144 ], "typeVersion": 1, "id": "7e87da3b-a10a-4163-96c9-35b9ce9da2f7", "name": "Sticky Note2" }, { "parameters": { "operation": "get", "employeeId": "={{ $json.EEID }}", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -592, 352 ], "id": "69f7f1c3-a41c-4600-a10d-69aff54e5cff", "name": "Obtener empleado", "retryOnFail": true, "credentials": { "bambooHrApi": { "id": "VwYITXROyinOC4je", "name": "Eidan - BambooHR account" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "1d323e38-bb02-44e8-b9dd-1bc162900290", "name": "photoUrl", "value": "={{ $json.photoUrl }}", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1008, 400 ], "id": "9b7b2060-0b67-439b-ad1b-05292b011bc8", "name": "Foto Empleado URL" }, { "parameters": { "assignments": { "assignments": [ { "id": "1d323e38-bb02-44e8-b9dd-1bc162900290", "name": "photoUrl", "value": "=https://gomezleemarketing.com/wp-content/uploads/2026/03/hbdcake.png", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1008, 560 ], "id": "c3e24759-2a77-4a22-be75-629187f5ffe5", "name": "URL si no tiene foto" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "id": "353b5144-31f4-4539-b9d8-63011f7d394b", "leftValue": "={{ $json.photoUploaded == true }}", "rightValue": "", "operator": { "type": "boolean", "operation": "true", "singleValue": true } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ 784, 480 ], "id": "5b57d3d9-68c3-4665-a06d-6d6b6e09d58e", "name": "Tiene foto?" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "id": "353b5144-31f4-4539-b9d8-63011f7d394b", "leftValue": "={{ !$json.Birthday }}", "rightValue": "", "operator": { "type": "boolean", "operation": "true", "singleValue": true } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ 160, 480 ], "id": "66cd3a4f-a3d9-422c-8a93-1b104866b923", "name": "Tiene fecha?" }, { "parameters": { "content": "## Tiene foto? \n\n**TRUE**: Si el empleado tiene foto, usa la foto que tiene registrado.\n\n**FALSE**: Si el empleado no tiene foto, usa la foto de un bizcocho.", "height": 480, "width": 432, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ 752, 224 ], "typeVersion": 1, "id": "80a8d26c-5c9c-4ed7-a345-4dd592cf36b6", "name": "Sticky Note11" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [ { "id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Jamaica", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "32931394-f4ea-4055-b866-906a81988173", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Trinidad and Tobago", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Barbados", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "28e49217-0c1a-4462-9642-676e54926d3e", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Saint Thomas", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "634f5b1c-fd01-4d42-9a63-4351852f5210", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Trinidad & Tobago", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "St. Croix", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Tobago", "operator": { "type": "string", "operation": "notEquals" } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ -880, 464 ], "id": "b2472ad1-fb13-4b67-a12f-959f3851c20b", "name": "Pais?" }, { "parameters": { "method": "POST", "url": "={{'https://wsp.gomezleemarketing.com'}}/message/sendMedia/{{'botsoporte'}}", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "apikey", "value": "={{'C267126ABB45-4C12-B626-6BAB1833F5D7'}}" } ] }, "sendBody": true, "bodyParameters": { "parameters": [ { "name": "number", "value": "={{ '120363404268176806@g.us' }}" }, { "name": "mediatype", "value": "=image" }, { "name": "media", "value": "={{ $json.data }}" }, { "name": "delay", "value": "={{2000}}" } ] }, "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 1776, 464 ], "id": "a1623f35-ed70-4965-ae51-89e562da6d6c", "name": "Enviar mensaje al whatsapp imagen" }, { "parameters": { "content": "## Numero oficinal del grupo de motorola\n\n120363404268176806@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1712, 640 ], "typeVersion": 1, "id": "21e5dc92-d322-4f15-a6bf-1c0eff3f6319", "name": "Sticky Note4" }, { "parameters": { "content": "## Numero del grupo para pruebas\n\n120363426353723539@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 2224, 432 ], "typeVersion": 1, "id": "33f79a5c-4266-42cc-904f-687c5879f79e", "name": "Sticky Note5" }, { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ -1664, 944 ], "id": "ca97d042-ea23-4013-8acf-f0f6b66751e4", "name": "When clicking ‘Execute workflow’" }, { "parameters": { "method": "POST", "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" } ] }, "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 1056 ], "id": "200d651f-1752-4739-863d-415af6921cec", "name": "Subir archivo", "retryOnFail": false }, { "parameters": { "jsCode": "const sha = $('Obtener archivo').first().json.sha;\nconst data = { $json };\n\nreturn [{\n json: {\n message: \"Update \" + $('Valores').first().json.file_name + \".json\",\n content: Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\"),\n sha: sha,\n branch: \"main\"\n }\n}];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ -880, 848 ], "id": "eef04499-7d3f-4e6b-afbb-372a3f36b009", "name": "Code in JavaScript" }, { "parameters": { "jsCode": "const sha = $json.sha; // viene del GET anterior\nconst data = { $json };\n\nconst base64 = Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\");\n\nreturn [{\n json: {\n message: \"Create \" + $('Valores').first().json.file_name + \".json\",\n content: base64,\n sha: sha,\n branch: \"main\"\n }\n}];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ -880, 1056 ], "id": "e194cb60-209b-41b5-ba08-5fbbf0d91eeb", "name": "Code in JavaScript1" }, { "parameters": { "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendHeaders": true, "headerParameters": { "parameters": [] }, "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -1312, 944 ], "id": "05a92af4-c7a4-465e-8cfa-ef149864dbce", "name": "Obtener archivo", "credentials": { "httpHeaderAuth": { "id": "KMhOYCzV5kCW5ztz", "name": "Header Auth account 3" } }, "onError": "continueErrorOutput" }, { "parameters": { "method": "PUT", "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" } ] }, "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"sha\": \"{{ $json.sha }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 848 ], "id": "266adc8b-d8ed-41e2-a942-8db69b274230", "name": "Actualizar archivo" }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "ZzH2eMPrsqlY7WPz", "mode": "list", "cachedResultName": "hbdwsp (#ZzH2eMPrsqlY7WPz)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 848 ], "id": "585b45a1-b9f0-456f-8f9b-1d8261fc1576", "name": "Get a workflow1", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "ZzH2eMPrsqlY7WPz", "mode": "list", "cachedResultName": "hbdwsp (#ZzH2eMPrsqlY7WPz)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 1056 ], "id": "7df25b5e-ad70-4f75-8239-efb60eae12ed", "name": "Get a workflow2", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "3519ad4c-6d66-4963-ab76-ee5517d88d67", "name": "repo_name", "value": "wsp-cumpleanos", "type": "string" }, { "id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6", "name": "file_name", "value": "hbd-panama", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ -1488, 944 ], "id": "1faee201-e948-45a9-a189-e7613bc5e343", "name": "Valores" } ], "connections": { "HTML": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 } ] ] }, "HTTP Request": { "main": [ [ { "node": "Extract from File", "type": "main", "index": 0 } ] ] }, "Extract from File": { "main": [ [ { "node": "Enviar mensaje al whatsapp imagen", "type": "main", "index": 0 } ] ] }, "BambooHR": { "main": [ [ { "node": "Google Drive", "type": "main", "index": 0 } ] ] }, "Google Drive": { "main": [ [ { "node": "Google Sheets", "type": "main", "index": 0 } ] ] }, "Google Sheets": { "main": [ [ { "node": "Pais?", "type": "main", "index": 0 } ] ] }, "Loop Over Items": { "main": [ [], [ { "node": "Tiene fecha?", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "BambooHR", "type": "main", "index": 0 } ] ] }, "Wait": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Coincide con fecha de hoy?": { "main": [ [ { "node": "Tiene foto?", "type": "main", "index": 0 } ], [ { "node": "Wait3", "type": "main", "index": 0 } ] ] }, "Wait3": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Merge": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Obtener empleado": { "main": [ [ { "node": "Merge", "type": "main", "index": 0 } ] ] }, "Foto Empleado URL": { "main": [ [ { "node": "HTML", "type": "main", "index": 0 } ] ] }, "Tiene foto?": { "main": [ [ { "node": "Foto Empleado URL", "type": "main", "index": 0 } ], [ { "node": "URL si no tiene foto", "type": "main", "index": 0 } ] ] }, "URL si no tiene foto": { "main": [ [ { "node": "HTML", "type": "main", "index": 0 } ] ] }, "Tiene fecha?": { "main": [ [ { "node": "Wait3", "type": "main", "index": 0 } ], [ { "node": "Coincide con fecha de hoy?", "type": "main", "index": 0 } ] ] }, "Pais?": { "main": [ [ { "node": "Merge", "type": "main", "index": 1 }, { "node": "Obtener empleado", "type": "main", "index": 0 } ] ] }, "Enviar mensaje al whatsapp imagen": { "main": [ [ { "node": "Wait", "type": "main", "index": 0 } ] ] }, "When clicking ‘Execute workflow’": { "main": [ [ { "node": "Valores", "type": "main", "index": 0 } ] ] }, "Code in JavaScript": { "main": [ [ { "node": "Actualizar archivo", "type": "main", "index": 0 } ] ] }, "Code in JavaScript1": { "main": [ [ { "node": "Subir archivo", "type": "main", "index": 0 } ] ] }, "Obtener archivo": { "main": [ [ { "node": "Get a workflow1", "type": "main", "index": 0 } ], [ { "node": "Get a workflow2", "type": "main", "index": 0 } ] ] }, "Get a workflow1": { "main": [ [ { "node": "Code in JavaScript", "type": "main", "index": 0 } ] ] }, "Get a workflow2": { "main": [ [ { "node": "Code in JavaScript1", "type": "main", "index": 0 } ] ] }, "Valores": { "main": [ [ { "node": "Obtener archivo", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1", "binaryMode": "separate", "timeSavedMode": "fixed", "errorWorkflow": "lX5ITf9s4TSQglsM", "timezone": "America/Santo_Domingo", "callerPolicy": "workflowsFromSameOwner", "availableInMCP": false }, "staticData": { "node:Schedule Trigger": { "recurrenceRules": [] } }, "meta": { "templateCredsSetupCompleted": true }, "pinData": { "Schedule Trigger": [ { "json": { "timestamp": "2026-05-29T10:00:57.014-04:00", "Readable date": "May 29th 2026, 10:00:57 am", "Readable time": "10:00:57 am", "Day of week": "Friday", "Year": "2026", "Month": "May", "Day of month": "29", "Hour": "10", "Minute": "00", "Second": "57", "Timezone": "America/Santo_Domingo (UTC-04:00)" }, "pairedItem": { "item": 0 } } ] }, "versionId": "87db2fe3-6ced-4701-b0e9-79904384a4bd", "activeVersionId": "89a13adb-5a90-4de5-afe8-6d8dabe41834", "versionCounter": 224, "triggerCount": 1, "shared": [ { "updatedAt": "2026-04-23T15:09:38.790Z", "createdAt": "2026-04-23T15:09:38.790Z", "role": "workflow:owner", "workflowId": "ZzH2eMPrsqlY7WPz", "projectId": "0bH6HfYEL8n6SDmr", "project": { "updatedAt": "2026-04-22T14:25:04.701Z", "createdAt": "2026-04-22T14:22:54.790Z", "id": "0bH6HfYEL8n6SDmr", "name": "Eidan Then ", "type": "personal", "icon": null, "description": null, "creatorId": "de14e7e5-491b-4983-abb2-f88af42e92fd" } } ], "tags": [], "activeVersion": { "updatedAt": "2026-06-06T01:09:32.000Z", "createdAt": "2026-06-06T01:09:27.699Z", "versionId": "89a13adb-5a90-4de5-afe8-6d8dabe41834", "workflowId": "ZzH2eMPrsqlY7WPz", "nodes": [ { "parameters": { "html": "\n\n\n \n \n Tarjeta de Cumpleaños GLM\n \n\n\n
\n
\n \"Foto\n
\n\n
\n\n

{{ $('Coincide con fecha de hoy?').item.json.firstName }}

\n\n
\n\n\n
{{ new Date($('Coincide con fecha de hoy?').item.json.Birthday).toLocaleDateString('es-ES', { month: 'long', day: 'numeric' }).replace(/^./, c => c.toUpperCase()) }}
\n\n
\n
\n\n" }, "type": "n8n-nodes-base.html", "typeVersion": 1.2, "position": [ 1248, 464 ], "id": "cabdd553-df4a-44c7-91d3-22ac3b4b4b5e", "name": "HTML" }, { "parameters": { "method": "POST", "url": "https://pruebadetemplate-browserless.k11ytw.easypanel.host/chromium/screenshot?token=8d66338953f117a7c29c55364c8c9e6d", "sendBody": true, "bodyParameters": { "parameters": [ { "name": "=html", "value": "={{$json.html}}" }, { "name": "viewport", "value": "={{ { \"width\": 1080, \"height\": 1920 } }}" } ] }, "options": { "response": { "response": { "responseFormat": "file" } } } }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.3, "position": [ 1424, 464 ], "id": "a4bd2a95-6771-488e-bc93-be8c5e9fd870", "name": "HTTP Request" }, { "parameters": { "operation": "binaryToPropery", "options": {} }, "type": "n8n-nodes-base.extractFromFile", "typeVersion": 1, "position": [ 1600, 464 ], "id": "7ae03c27-6f7d-4d79-a894-cf09fe982bc1", "name": "Extract from File" }, { "parameters": { "resource": "companyReport", "reportId": "1509", "format": "CSV", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -1472, 464 ], "id": "095002c6-f2fd-4416-89f7-deedc422a2e2", "name": "BambooHR", "credentials": { "bambooHrApi": { "id": "VwYITXROyinOC4je", "name": "Eidan - BambooHR account" } } }, { "parameters": { "operation": "update", "fileId": { "__rl": true, "value": "1Jw9yOyIKB1QLcr9m8ObGP9PK0tC9z3n6", "mode": "list", "cachedResultName": "HBD.csv", "cachedResultUrl": "https://drive.google.com/file/d/1Jw9yOyIKB1QLcr9m8ObGP9PK0tC9z3n6/view?usp=drivesdk" }, "changeFileContent": true, "options": {} }, "type": "n8n-nodes-base.googleDrive", "typeVersion": 3, "position": [ -1296, 464 ], "id": "c3e1be79-28ac-48b8-9055-b702a8e658a5", "name": "Google Drive", "credentials": { "googleDriveOAuth2Api": { "id": "gL2ZTwJb6xojauac", "name": "Eidan - Google Drive account" } } }, { "parameters": { "documentId": { "__rl": true, "value": "1p0bCvHAIHjobiPhDfmTshZWvRP6PWAmmTtSoX77lBmM", "mode": "list", "cachedResultName": "HBD", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1p0bCvHAIHjobiPhDfmTshZWvRP6PWAmmTtSoX77lBmM/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": 759771456, "mode": "list", "cachedResultName": "HBD", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1p0bCvHAIHjobiPhDfmTshZWvRP6PWAmmTtSoX77lBmM/edit#gid=759771456" }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ -1136, 464 ], "id": "4443088b-0e2f-45c4-839f-54eca80361ed", "name": "Google Sheets", "credentials": { "googleSheetsOAuth2Api": { "id": "8Pp0ek3NPsEkyXfY", "name": "Eidan - Google Sheets account" } } }, { "parameters": { "options": {} }, "type": "n8n-nodes-base.splitInBatches", "typeVersion": 3, "position": [ -144, 464 ], "id": "25c15753-50c9-4656-9593-e6ec8df23fe9", "name": "Loop Over Items" }, { "parameters": { "rule": { "interval": [ { "triggerAtHour": 10 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ -1664, 464 ], "id": "1c563ad4-9cd2-4e4f-9e89-26947ae8167f", "name": "Schedule Trigger" }, { "parameters": { "amount": 3 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 1952, 464 ], "id": "cd6efe66-4716-4735-a7fb-0b4691ac3b9d", "name": "Wait", "webhookId": "1d569ac8-a779-47d1-b68c-1a35c9c10033" }, { "parameters": { "content": "18494105855@s.whatsapp.net\n\n120363216738484180@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, -16 ], "typeVersion": 1, "id": "c94d0200-89f0-4959-a8ec-55c16117ca4f", "name": "Sticky Note" }, { "parameters": { "content": "caption\n\npara agregar comentario en la foto" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, 176 ], "typeVersion": 1, "id": "ac8855c5-4701-45b6-940f-e033fc735f87", "name": "Sticky Note1" }, { "parameters": { "content": "## Guardar/actualizar y extraer datos\n\n", "height": 304, "width": 320 }, "type": "n8n-nodes-base.stickyNote", "position": [ -1328, 304 ], "typeVersion": 1, "id": "82525b83-f87a-4540-b833-aa325ca7d752", "name": "Sticky Note3" }, { "parameters": { "content": "## Trigger\n\n1. Hace un trigger todos los dias a las 10am.\n2. Descarga el reporte de la compañia con el id 1509 en formato .csv.\n\n\n", "height": 304, "width": 352, "color": "#4E2163" }, "type": "n8n-nodes-base.stickyNote", "position": [ -1696, 304 ], "typeVersion": 1, "id": "8e70160a-2b9d-4fd4-a9ae-f1717b995919", "name": "Sticky Note6" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "loose", "version": 2 }, "conditions": [ { "id": "dc715bc1-428e-4143-a746-a469a25deea1", "leftValue": "={{ $json.Birthday }}", "rightValue": "={{ $now.format('MMMM dd') }} ", "operator": { "type": "dateTime", "operation": "equals" } } ], "combinator": "and" }, "looseTypeValidation": true, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 512, 480 ], "id": "2f541e33-f840-4b86-8888-d683c805d301", "name": "Coincide con fecha de hoy?", "onError": "continueRegularOutput" }, { "parameters": { "content": "## Tiene fecha?\n\n**TRUE**: Si falta el cumpleaños o la foto del empleado, el sistema avisará automáticamente a Recursos Humanos.\n\n**FALSE**: Si el empleado tiene una fecha de nacimiento y foto registrado, el flujo sigue.\n", "height": 384, "width": 320, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ 48, 224 ], "typeVersion": 1, "id": "8c359e24-0616-484a-a666-6049885e6b7e", "name": "Sticky Note7" }, { "parameters": { "content": "## Pais?\n\n**TRUE**: Si el empleado **NO** es de estos países no hispano; el flujo sigue.\n\n**FALSE**: Si el empleado es de un país no hispano.\n", "height": 336, "width": 304, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ -976, 272 ], "typeVersion": 1, "id": "0b98fc7f-99ab-4861-aa3c-84a9cc507f73", "name": "Sticky Note8" }, { "parameters": { "content": "## Coincide con fecha de hoy? \n\n**TRUE**: Si la fecha del empleado coincide con la fecha de hoy, el flujo sigue.\n\n**FALSE**: Si la fecha del empleado no coincide con la fecha de hoy, el flujo se devuelve.", "height": 384, "width": 336, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ 384, 224 ], "typeVersion": 1, "id": "77e5295a-395f-4718-a9f4-69c084605803", "name": "Sticky Note9" }, { "parameters": { "content": "## Envía mensaje de felicitación al empleado al grupo de Whatsapp\n", "height": 256, "width": 864, "color": "#17480A" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1216, 368 ], "typeVersion": 1, "id": "25b44405-2ee1-4dc6-a16f-2b19835e851e", "name": "Sticky Note10" }, { "parameters": { "amount": 1 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 736, 704 ], "id": "8eca94d2-3d02-4be7-8020-1eb7c79215d3", "name": "Wait3", "webhookId": "02f7c446-318a-4b43-aad5-7e88062bbf8e" }, { "parameters": { "mode": "combine", "advanced": true, "mergeByFields": { "values": [ { "field1": "workEmail", "field2": "Work Email" } ] }, "joinMode": "enrichInput1", "options": {} }, "type": "n8n-nodes-base.merge", "typeVersion": 3.2, "position": [ -336, 464 ], "id": "35f13ca6-663e-4b9f-b2d0-c9929510e806", "name": "Merge" }, { "parameters": { "content": "## Manejo de datos \n\n1. Obtiene información del empleado.\n\n2. Une la información de Google Sheets y Bamboo en una sola lista.\n\n3. Loop toma a cada empleado de la lista, uno tras otro, para realizar las siguientes acciones de forma individual. ", "height": 464, "width": 608 }, "type": "n8n-nodes-base.stickyNote", "position": [ -624, 144 ], "typeVersion": 1, "id": "7e87da3b-a10a-4163-96c9-35b9ce9da2f7", "name": "Sticky Note2" }, { "parameters": { "operation": "get", "employeeId": "={{ $json.EEID }}", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -592, 352 ], "id": "69f7f1c3-a41c-4600-a10d-69aff54e5cff", "name": "Obtener empleado", "retryOnFail": true, "credentials": { "bambooHrApi": { "id": "VwYITXROyinOC4je", "name": "Eidan - BambooHR account" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "1d323e38-bb02-44e8-b9dd-1bc162900290", "name": "photoUrl", "value": "={{ $json.photoUrl }}", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1008, 400 ], "id": "9b7b2060-0b67-439b-ad1b-05292b011bc8", "name": "Foto Empleado URL" }, { "parameters": { "assignments": { "assignments": [ { "id": "1d323e38-bb02-44e8-b9dd-1bc162900290", "name": "photoUrl", "value": "=https://gomezleemarketing.com/wp-content/uploads/2026/03/hbdcake.png", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1008, 560 ], "id": "c3e24759-2a77-4a22-be75-629187f5ffe5", "name": "URL si no tiene foto" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "id": "353b5144-31f4-4539-b9d8-63011f7d394b", "leftValue": "={{ $json.photoUploaded == true }}", "rightValue": "", "operator": { "type": "boolean", "operation": "true", "singleValue": true } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ 784, 480 ], "id": "5b57d3d9-68c3-4665-a06d-6d6b6e09d58e", "name": "Tiene foto?" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "id": "353b5144-31f4-4539-b9d8-63011f7d394b", "leftValue": "={{ !$json.Birthday }}", "rightValue": "", "operator": { "type": "boolean", "operation": "true", "singleValue": true } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ 160, 480 ], "id": "66cd3a4f-a3d9-422c-8a93-1b104866b923", "name": "Tiene fecha?" }, { "parameters": { "content": "## Tiene foto? \n\n**TRUE**: Si el empleado tiene foto, usa la foto que tiene registrado.\n\n**FALSE**: Si el empleado no tiene foto, usa la foto de un bizcocho.", "height": 480, "width": 432, "color": 5 }, "type": "n8n-nodes-base.stickyNote", "position": [ 752, 224 ], "typeVersion": 1, "id": "80a8d26c-5c9c-4ed7-a345-4dd592cf36b6", "name": "Sticky Note11" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [ { "id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Jamaica", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "32931394-f4ea-4055-b866-906a81988173", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Trinidad and Tobago", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Barbados", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "28e49217-0c1a-4462-9642-676e54926d3e", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Saint Thomas", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "634f5b1c-fd01-4d42-9a63-4351852f5210", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Trinidad & Tobago", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "St. Croix", "operator": { "type": "string", "operation": "notEquals" } }, { "id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c", "leftValue": "={{ $('Google Sheets').item.json.Location }}", "rightValue": "Tobago", "operator": { "type": "string", "operation": "notEquals" } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ -880, 464 ], "id": "b2472ad1-fb13-4b67-a12f-959f3851c20b", "name": "Pais?" }, { "parameters": { "method": "POST", "url": "={{'https://wsp.gomezleemarketing.com'}}/message/sendMedia/{{'botsoporte'}}", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "apikey", "value": "={{'C267126ABB45-4C12-B626-6BAB1833F5D7'}}" } ] }, "sendBody": true, "bodyParameters": { "parameters": [ { "name": "number", "value": "={{ '120363404268176806@g.us' }}" }, { "name": "mediatype", "value": "=image" }, { "name": "media", "value": "={{ $json.data }}" }, { "name": "delay", "value": "={{2000}}" } ] }, "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 1776, 464 ], "id": "a1623f35-ed70-4965-ae51-89e562da6d6c", "name": "Enviar mensaje al whatsapp imagen" }, { "parameters": { "content": "## Numero oficinal del grupo de motorola\n\n120363404268176806@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1712, 640 ], "typeVersion": 1, "id": "21e5dc92-d322-4f15-a6bf-1c0eff3f6319", "name": "Sticky Note4" }, { "parameters": { "content": "## Numero del grupo para pruebas\n\n120363426353723539@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 2224, 432 ], "typeVersion": 1, "id": "33f79a5c-4266-42cc-904f-687c5879f79e", "name": "Sticky Note5" }, { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ -1664, 944 ], "id": "ca97d042-ea23-4013-8acf-f0f6b66751e4", "name": "When clicking ‘Execute workflow’" }, { "parameters": { "method": "POST", "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" } ] }, "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 1056 ], "id": "200d651f-1752-4739-863d-415af6921cec", "name": "Subir archivo", "retryOnFail": false }, { "parameters": { "jsCode": "const sha = $('Obtener archivo').first().json.sha;\nconst data = { $json };\n\nreturn [{\n json: {\n message: \"Update \" + $('Valores').first().json.file_name + \".json\",\n content: Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\"),\n sha: sha,\n branch: \"main\"\n }\n}];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ -880, 848 ], "id": "eef04499-7d3f-4e6b-afbb-372a3f36b009", "name": "Code in JavaScript" }, { "parameters": { "jsCode": "const sha = $json.sha; // viene del GET anterior\nconst data = { $json };\n\nconst base64 = Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\");\n\nreturn [{\n json: {\n message: \"Create \" + $('Valores').first().json.file_name + \".json\",\n content: base64,\n sha: sha,\n branch: \"main\"\n }\n}];" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ -880, 1056 ], "id": "e194cb60-209b-41b5-ba08-5fbbf0d91eeb", "name": "Code in JavaScript1" }, { "parameters": { "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" } ] }, "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -1312, 944 ], "id": "05a92af4-c7a4-465e-8cfa-ef149864dbce", "name": "Obtener archivo", "onError": "continueErrorOutput" }, { "parameters": { "method": "PUT", "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" } ] }, "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"sha\": \"{{ $json.sha }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 848 ], "id": "266adc8b-d8ed-41e2-a942-8db69b274230", "name": "Actualizar archivo" }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "nvV9JrJGy1AEZdYI", "mode": "list", "cachedResultName": "Gitea n8n test (#nvV9JrJGy1AEZdYI)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 848 ], "id": "585b45a1-b9f0-456f-8f9b-1d8261fc1576", "name": "Get a workflow1", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "nvV9JrJGy1AEZdYI", "mode": "list", "cachedResultName": "Gitea n8n test (#nvV9JrJGy1AEZdYI)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 1056 ], "id": "7df25b5e-ad70-4f75-8239-efb60eae12ed", "name": "Get a workflow2", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "3519ad4c-6d66-4963-ab76-ee5517d88d67", "name": "repo_name", "value": "n8n-prueba", "type": "string" }, { "id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6", "name": "file_name", "value": "n8nWorkflow", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ -1488, 944 ], "id": "1faee201-e948-45a9-a189-e7613bc5e343", "name": "Valores" } ], "connections": { "HTML": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 } ] ] }, "HTTP Request": { "main": [ [ { "node": "Extract from File", "type": "main", "index": 0 } ] ] }, "Extract from File": { "main": [ [ { "node": "Enviar mensaje al whatsapp imagen", "type": "main", "index": 0 } ] ] }, "BambooHR": { "main": [ [ { "node": "Google Drive", "type": "main", "index": 0 } ] ] }, "Google Drive": { "main": [ [ { "node": "Google Sheets", "type": "main", "index": 0 } ] ] }, "Google Sheets": { "main": [ [ { "node": "Pais?", "type": "main", "index": 0 } ] ] }, "Loop Over Items": { "main": [ [], [ { "node": "Tiene fecha?", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "BambooHR", "type": "main", "index": 0 } ] ] }, "Wait": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Coincide con fecha de hoy?": { "main": [ [ { "node": "Tiene foto?", "type": "main", "index": 0 } ], [ { "node": "Wait3", "type": "main", "index": 0 } ] ] }, "Wait3": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Merge": { "main": [ [ { "node": "Loop Over Items", "type": "main", "index": 0 } ] ] }, "Obtener empleado": { "main": [ [ { "node": "Merge", "type": "main", "index": 0 } ] ] }, "Foto Empleado URL": { "main": [ [ { "node": "HTML", "type": "main", "index": 0 } ] ] }, "Tiene foto?": { "main": [ [ { "node": "Foto Empleado URL", "type": "main", "index": 0 } ], [ { "node": "URL si no tiene foto", "type": "main", "index": 0 } ] ] }, "URL si no tiene foto": { "main": [ [ { "node": "HTML", "type": "main", "index": 0 } ] ] }, "Tiene fecha?": { "main": [ [ { "node": "Wait3", "type": "main", "index": 0 } ], [ { "node": "Coincide con fecha de hoy?", "type": "main", "index": 0 } ] ] }, "Pais?": { "main": [ [ { "node": "Merge", "type": "main", "index": 1 }, { "node": "Obtener empleado", "type": "main", "index": 0 } ] ] }, "Enviar mensaje al whatsapp imagen": { "main": [ [ { "node": "Wait", "type": "main", "index": 0 } ] ] }, "When clicking ‘Execute workflow’": { "main": [ [ { "node": "Valores", "type": "main", "index": 0 } ] ] }, "Code in JavaScript": { "main": [ [ { "node": "Actualizar archivo", "type": "main", "index": 0 } ] ] }, "Code in JavaScript1": { "main": [ [ { "node": "Subir archivo", "type": "main", "index": 0 } ] ] }, "Obtener archivo": { "main": [ [ { "node": "Get a workflow1", "type": "main", "index": 0 } ], [ { "node": "Get a workflow2", "type": "main", "index": 0 } ] ] }, "Get a workflow1": { "main": [ [ { "node": "Code in JavaScript", "type": "main", "index": 0 } ] ] }, "Get a workflow2": { "main": [ [ { "node": "Code in JavaScript1", "type": "main", "index": 0 } ] ] }, "Valores": { "main": [ [ { "node": "Obtener archivo", "type": "main", "index": 0 } ] ] } }, "authors": "Eidan Then", "name": "Version 89a13adb", "description": "", "autosaved": true, "workflowPublishHistory": [ { "createdAt": "2026-06-06T01:09:32.324Z", "id": 1174, "workflowId": "ZzH2eMPrsqlY7WPz", "versionId": "89a13adb-5a90-4de5-afe8-6d8dabe41834", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" } ] } } }