{ "$json": { "updatedAt": "2026-06-30T15:03:16.343Z", "createdAt": "2026-06-19T16:43:03.789Z", "id": "0o7S2ClBdSy7dJm2", "name": "hbdwsp colombia whirpool", "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": "ef955e42-68c2-438b-b849-fbf25ee7070e", "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": "4f5fdcdc-4352-47b0-9e9b-c87adcf2caa9", "name": "HTTP Request" }, { "parameters": { "operation": "binaryToPropery", "options": {} }, "type": "n8n-nodes-base.extractFromFile", "typeVersion": 1, "position": [ 1600, 464 ], "id": "d451e137-b4dd-4ae1-98a6-1cefdfc3f883", "name": "Extract from File" }, { "parameters": { "resource": "companyReport", "reportId": "1568", "format": "CSV", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -1472, 464 ], "id": "321f7825-be1f-46e4-9450-5ceb0c9c9b96", "name": "BambooHR", "credentials": { "bambooHrApi": { "id": "VwYITXROyinOC4je", "name": "Eidan - BambooHR account" } } }, { "parameters": { "operation": "update", "fileId": { "__rl": true, "value": "1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4", "mode": "list", "cachedResultName": "HBD_Colombia_Whirlpool", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4/edit?usp=drivesdk" }, "changeFileContent": true, "options": {} }, "type": "n8n-nodes-base.googleDrive", "typeVersion": 3, "position": [ -1296, 464 ], "id": "a9bbfff2-4197-4bcd-969d-2ec174218455", "name": "Google Drive", "credentials": { "googleDriveOAuth2Api": { "id": "gL2ZTwJb6xojauac", "name": "Eidan - Google Drive account" } } }, { "parameters": { "documentId": { "__rl": true, "value": "1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4", "mode": "list", "cachedResultName": "HBD_Colombia_Whirlpool", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": "HBD_Colombia_Whirlpool", "mode": "name" }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ -1136, 464 ], "id": "6ea33253-fdd7-448b-93cb-5f5ce4d28928", "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": "7552eda0-e1cd-4e7b-bce2-691edbc0017e", "name": "Loop Over Items" }, { "parameters": { "rule": { "interval": [ { "triggerAtHour": 10, "triggerAtMinute": 15 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ -1664, 464 ], "id": "22cd09f2-9ec0-46ae-addc-15e14940c39d", "name": "Schedule Trigger" }, { "parameters": { "amount": 3 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 1952, 464 ], "id": "d2698757-cbda-4ccb-b849-9bd3536f25c7", "name": "Wait", "webhookId": "456d61f1-14a8-4deb-be1c-bb883ccb69d6" }, { "parameters": { "content": "18494105855@s.whatsapp.net\n\n120363216738484180@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, -16 ], "typeVersion": 1, "id": "00b9c4b8-0f59-44cb-bf90-23fe8b77f1f4", "name": "Sticky Note" }, { "parameters": { "content": "caption\n\npara agregar comentario en la foto" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, 176 ], "typeVersion": 1, "id": "d51c53ef-059d-43f6-9260-c7579d647793", "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": "6553e528-0cba-49fc-86ae-0195b052c17a", "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": "91371264-8d7b-478b-a8e5-f28dba57812f", "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": "baf0bad2-bc8d-4877-b9b2-cb34676fc4ee", "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": "b521d53d-7f59-4ac9-b84f-aa091a8c7dbf", "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": "576e3c88-2cdf-4b2d-aea7-ad7386cc265e", "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": "bf612a83-929a-4ded-bd66-67a21915cd95", "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": "cab3e24a-68bd-43ba-863f-5356d060990b", "name": "Sticky Note10" }, { "parameters": { "amount": 1 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 736, 704 ], "id": "1ca48609-9a23-4920-a3c2-6048223324c4", "name": "Wait3", "webhookId": "371d99f1-4d14-4a49-b4bd-b2a1b9ddbe54" }, { "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": "5d786d8d-4ed2-4dc8-9555-c3f84bd85f4f", "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": "79e4d740-17a8-4cb4-8aeb-26f066574f6b", "name": "Sticky Note2" }, { "parameters": { "operation": "get", "employeeId": "={{ $json.EEID }}", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -592, 352 ], "id": "b97ff5d1-dbca-4544-9186-2ff525a93063", "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": "a0247802-a9e5-441c-a030-f3f2d172cf08", "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": "8fe1256e-c709-456c-bc78-9fa0ab26248a", "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": "19c8a8d3-dd2a-4705-a00c-074432a6549b", "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": "0b52208d-af0e-4342-a5a1-c2b3819a7a4d", "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": "97f11b87-89cc-4a0f-8a9f-225c0c7e410f", "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": "df73df94-df04-441c-89c8-8520bdb884ca", "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": "={{ '120363373950847903@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": "23cdc84f-153e-4396-a07f-197fc5f19928", "name": "Enviar mensaje al whatsapp imagen" }, { "parameters": { "content": "## Numero oficinal del grupo de motorola\n\n120363373950847903@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1712, 640 ], "typeVersion": 1, "id": "cc86d35d-613a-45d5-b179-559f23a89852", "name": "Sticky Note4" }, { "parameters": { "content": "## Numero del grupo para pruebas\n\n120363426353723539@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 2192, 432 ], "typeVersion": 1, "id": "d1520e5a-c6e0-4702-a0ed-feb027435c65", "name": "Sticky Note5" }, { "parameters": { "assignments": { "assignments": [ { "id": "e81e1cfa-504a-4a4f-be27-ca749eae4290", "name": "user", "value": "EidanThen", "type": "string" }, { "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-colombia-whirpool", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ -1488, 1040 ], "id": "4d9997f1-a606-4be7-b9f5-0801700ae8f3", "name": "Valores" }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "0o7S2ClBdSy7dJm2", "mode": "list", "cachedResultName": "hbdwsp colombia whirpool (#0o7S2ClBdSy7dJm2)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 1152 ], "id": "d41dd3e2-5f69-4235-a254-39155301ad3a", "name": "Get a workflow2", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "0o7S2ClBdSy7dJm2", "mode": "list", "cachedResultName": "hbdwsp colombia whirpool (#0o7S2ClBdSy7dJm2)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 944 ], "id": "a1374449-ad4a-4fa9-a04d-d4c6eac53f22", "name": "Get a workflow1", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "method": "PUT", "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $('Valores').item.json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"sha\": \"{{ $json.sha }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 944 ], "id": "d3c72ef1-f12e-485b-b405-789d540592d8", "name": "Actualizar archivo", "credentials": { "httpHeaderAuth": { "id": "R4tnNpYoEjhBYeUT", "name": "Eidan - gitea" } } }, { "parameters": { "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $json.user }}/{{ $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, 1040 ], "id": "bf09d07f-deae-48e1-b78e-8ad8c59d1bff", "name": "Obtener archivo", "credentials": { "httpHeaderAuth": { "id": "R4tnNpYoEjhBYeUT", "name": "Eidan - gitea" } }, "onError": "continueErrorOutput" }, { "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, 1152 ], "id": "8f284b15-f84b-419b-96c4-f0109e4a724c", "name": "Code in JavaScript1" }, { "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, 944 ], "id": "dd854f0a-30f4-4644-99d4-1049e6569b6b", "name": "Code in JavaScript" }, { "parameters": { "method": "POST", "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $('Valores').item.json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 1152 ], "id": "3e7fac5b-3426-475f-9870-f1a47d7b4b2a", "name": "Subir archivo", "retryOnFail": false, "credentials": { "httpHeaderAuth": { "id": "R4tnNpYoEjhBYeUT", "name": "Eidan - gitea" } } }, { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ -1664, 1040 ], "id": "9159fb79-113f-4ef3-b740-d126f6ed5111", "name": "When clicking ‘Execute workflow’" }, { "parameters": { "content": "## Subir a gitea\n\n1. Crear el repositorio en GItea manualmente\n2. En valores poner el nombre de usuario y nombre de repositorio\n3. En \"get a worflow\" elegir el workflow a guardar\n4. En \"actualizar/subir archivo\" crear un Header Auth, poner el token de tu gitea con el nombre \"Authorization\"", "height": 528, "width": 1152 }, "type": "n8n-nodes-base.stickyNote", "position": [ -1696, 784 ], "typeVersion": 1, "id": "941f95ff-8eaa-473d-abfe-27a31811ab07", "name": "Sticky Note12" } ], "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 } ] ] }, "Valores": { "main": [ [ { "node": "Obtener archivo", "type": "main", "index": 0 } ] ] }, "Get a workflow1": { "main": [ [ { "node": "Code in JavaScript", "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 workflow2": { "main": [ [ { "node": "Code in JavaScript1", "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 } ] ] }, "When clicking ‘Execute workflow’": { "main": [ [ { "node": "Valores", "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": {}, "versionId": "9b3a420d-1636-4e2b-bbd0-8736a2a5c95a", "activeVersionId": "aa75e118-db0c-4303-8563-ce697f027990", "versionCounter": 69, "triggerCount": 1, "shared": [ { "updatedAt": "2026-06-19T16:43:03.793Z", "createdAt": "2026-06-19T16:43:03.793Z", "role": "workflow:owner", "workflowId": "0o7S2ClBdSy7dJm2", "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-30T15:02:23.000Z", "createdAt": "2026-06-30T15:02:20.715Z", "versionId": "aa75e118-db0c-4303-8563-ce697f027990", "workflowId": "0o7S2ClBdSy7dJm2", "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": "ef955e42-68c2-438b-b849-fbf25ee7070e", "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": "4f5fdcdc-4352-47b0-9e9b-c87adcf2caa9", "name": "HTTP Request" }, { "parameters": { "operation": "binaryToPropery", "options": {} }, "type": "n8n-nodes-base.extractFromFile", "typeVersion": 1, "position": [ 1600, 464 ], "id": "d451e137-b4dd-4ae1-98a6-1cefdfc3f883", "name": "Extract from File" }, { "parameters": { "resource": "companyReport", "reportId": "1568", "format": "CSV", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -1472, 464 ], "id": "321f7825-be1f-46e4-9450-5ceb0c9c9b96", "name": "BambooHR", "credentials": { "bambooHrApi": { "id": "VwYITXROyinOC4je", "name": "Eidan - BambooHR account" } } }, { "parameters": { "operation": "update", "fileId": { "__rl": true, "value": "1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4", "mode": "list", "cachedResultName": "HBD_Colombia_Whirlpool", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4/edit?usp=drivesdk" }, "changeFileContent": true, "options": {} }, "type": "n8n-nodes-base.googleDrive", "typeVersion": 3, "position": [ -1296, 464 ], "id": "a9bbfff2-4197-4bcd-969d-2ec174218455", "name": "Google Drive", "credentials": { "googleDriveOAuth2Api": { "id": "gL2ZTwJb6xojauac", "name": "Eidan - Google Drive account" } } }, { "parameters": { "documentId": { "__rl": true, "value": "1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4", "mode": "list", "cachedResultName": "HBD_Colombia_Whirlpool", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1d6me__JddD2hbAyuYMv_-evO7aLnHS4ABx0cGeTTyY4/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": "HBD_Colombia_Whirlpool", "mode": "name" }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ -1136, 464 ], "id": "6ea33253-fdd7-448b-93cb-5f5ce4d28928", "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": "7552eda0-e1cd-4e7b-bce2-691edbc0017e", "name": "Loop Over Items" }, { "parameters": { "rule": { "interval": [ { "triggerAtHour": 10, "triggerAtMinute": 15 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ -1664, 464 ], "id": "22cd09f2-9ec0-46ae-addc-15e14940c39d", "name": "Schedule Trigger" }, { "parameters": { "amount": 3 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 1952, 464 ], "id": "d2698757-cbda-4ccb-b849-9bd3536f25c7", "name": "Wait", "webhookId": "456d61f1-14a8-4deb-be1c-bb883ccb69d6" }, { "parameters": { "content": "18494105855@s.whatsapp.net\n\n120363216738484180@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, -16 ], "typeVersion": 1, "id": "00b9c4b8-0f59-44cb-bf90-23fe8b77f1f4", "name": "Sticky Note" }, { "parameters": { "content": "caption\n\npara agregar comentario en la foto" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1776, 176 ], "typeVersion": 1, "id": "d51c53ef-059d-43f6-9260-c7579d647793", "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": "6553e528-0cba-49fc-86ae-0195b052c17a", "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": "91371264-8d7b-478b-a8e5-f28dba57812f", "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": "baf0bad2-bc8d-4877-b9b2-cb34676fc4ee", "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": "b521d53d-7f59-4ac9-b84f-aa091a8c7dbf", "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": "576e3c88-2cdf-4b2d-aea7-ad7386cc265e", "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": "bf612a83-929a-4ded-bd66-67a21915cd95", "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": "cab3e24a-68bd-43ba-863f-5356d060990b", "name": "Sticky Note10" }, { "parameters": { "amount": 1 }, "type": "n8n-nodes-base.wait", "typeVersion": 1.1, "position": [ 736, 704 ], "id": "1ca48609-9a23-4920-a3c2-6048223324c4", "name": "Wait3", "webhookId": "371d99f1-4d14-4a49-b4bd-b2a1b9ddbe54" }, { "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": "5d786d8d-4ed2-4dc8-9555-c3f84bd85f4f", "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": "79e4d740-17a8-4cb4-8aeb-26f066574f6b", "name": "Sticky Note2" }, { "parameters": { "operation": "get", "employeeId": "={{ $json.EEID }}", "options": {} }, "type": "n8n-nodes-base.bambooHr", "typeVersion": 1, "position": [ -592, 352 ], "id": "b97ff5d1-dbca-4544-9186-2ff525a93063", "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": "a0247802-a9e5-441c-a030-f3f2d172cf08", "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": "8fe1256e-c709-456c-bc78-9fa0ab26248a", "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": "19c8a8d3-dd2a-4705-a00c-074432a6549b", "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": "0b52208d-af0e-4342-a5a1-c2b3819a7a4d", "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": "97f11b87-89cc-4a0f-8a9f-225c0c7e410f", "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": "df73df94-df04-441c-89c8-8520bdb884ca", "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": "={{ '120363373950847903@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": "23cdc84f-153e-4396-a07f-197fc5f19928", "name": "Enviar mensaje al whatsapp imagen" }, { "parameters": { "content": "## Numero oficinal del grupo de motorola\n\n120363373950847903@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 1712, 640 ], "typeVersion": 1, "id": "cc86d35d-613a-45d5-b179-559f23a89852", "name": "Sticky Note4" }, { "parameters": { "content": "## Numero del grupo para pruebas\n\n120363426353723539@g.us" }, "type": "n8n-nodes-base.stickyNote", "position": [ 2192, 432 ], "typeVersion": 1, "id": "d1520e5a-c6e0-4702-a0ed-feb027435c65", "name": "Sticky Note5" }, { "parameters": { "assignments": { "assignments": [ { "id": "e81e1cfa-504a-4a4f-be27-ca749eae4290", "name": "user", "value": "EidanThen", "type": "string" }, { "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-colombia-whirpool", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ -1488, 1040 ], "id": "4d9997f1-a606-4be7-b9f5-0801700ae8f3", "name": "Valores" }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "0o7S2ClBdSy7dJm2", "mode": "list", "cachedResultName": "hbdwsp colombia whirpool (#0o7S2ClBdSy7dJm2)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 1152 ], "id": "d41dd3e2-5f69-4235-a254-39155301ad3a", "name": "Get a workflow2", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "operation": "get", "workflowId": { "__rl": true, "value": "0o7S2ClBdSy7dJm2", "mode": "list", "cachedResultName": "hbdwsp colombia whirpool (#0o7S2ClBdSy7dJm2)" }, "requestOptions": {} }, "type": "n8n-nodes-base.n8n", "typeVersion": 1, "position": [ -1056, 944 ], "id": "a1374449-ad4a-4fa9-a04d-d4c6eac53f22", "name": "Get a workflow1", "credentials": { "n8nApi": { "id": "73Ydc9X8h5HXvFrt", "name": "Eidan - n8n account" } } }, { "parameters": { "method": "PUT", "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"sha\": \"{{ $json.sha }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 944 ], "id": "d3c72ef1-f12e-485b-b405-789d540592d8", "name": "Actualizar archivo", "credentials": { "httpHeaderAuth": { "id": "R4tnNpYoEjhBYeUT", "name": "Eidan - gitea" } } }, { "parameters": { "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $json.user }}/{{ $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, 1040 ], "id": "bf09d07f-deae-48e1-b78e-8ad8c59d1bff", "name": "Obtener archivo", "credentials": { "httpHeaderAuth": { "id": "R4tnNpYoEjhBYeUT", "name": "Eidan - gitea" } }, "onError": "continueErrorOutput" }, { "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, 1152 ], "id": "8f284b15-f84b-419b-96c4-f0109e4a724c", "name": "Code in JavaScript1" }, { "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, 944 ], "id": "dd854f0a-30f4-4644-99d4-1049e6569b6b", "name": "Code in JavaScript" }, { "parameters": { "method": "POST", "url": "=https://git.digitalcompass.agency/api/v1/repos/{{ $json.user }}/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"branch\": \"{{ $json.branch }}\"\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [ -704, 1152 ], "id": "3e7fac5b-3426-475f-9870-f1a47d7b4b2a", "name": "Subir archivo", "retryOnFail": false, "credentials": { "httpHeaderAuth": { "id": "R4tnNpYoEjhBYeUT", "name": "Eidan - gitea" } } }, { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ -1664, 1040 ], "id": "9159fb79-113f-4ef3-b740-d126f6ed5111", "name": "When clicking ‘Execute workflow’" }, { "parameters": { "content": "## Subir a gitea\n\n1. Crear el repositorio en GItea manualmente\n2. En valores poner el nombre de usuario y nombre de repositorio\n3. En \"get a worflow\" elegir el workflow a guardar\n4. En \"actualizar/subir archivo\" crear un Header Auth, poner el token de tu gitea con el nombre \"Authorization\"", "height": 528, "width": 1152 }, "type": "n8n-nodes-base.stickyNote", "position": [ -1696, 784 ], "typeVersion": 1, "id": "941f95ff-8eaa-473d-abfe-27a31811ab07", "name": "Sticky Note12" } ], "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 } ] ] }, "Valores": { "main": [ [ { "node": "Obtener archivo", "type": "main", "index": 0 } ] ] }, "Get a workflow1": { "main": [ [ { "node": "Code in JavaScript", "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 workflow2": { "main": [ [ { "node": "Code in JavaScript1", "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 } ] ] }, "When clicking ‘Execute workflow’": { "main": [ [ { "node": "Valores", "type": "main", "index": 0 } ] ] } }, "authors": "Eidan Then", "name": "Version aa75e118", "description": "", "autosaved": true, "workflowPublishHistory": [ { "createdAt": "2026-06-30T15:02:23.397Z", "id": 2066, "workflowId": "0o7S2ClBdSy7dJm2", "versionId": "aa75e118-db0c-4303-8563-ce697f027990", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" } ] } } }