3974 lines
117 KiB
JSON
3974 lines
117 KiB
JSON
{
|
||
"$json": {
|
||
"updatedAt": "2026-06-15T19:08:47.534Z",
|
||
"createdAt": "2026-06-08T13:50:12.174Z",
|
||
"id": "F1iPg8hktNAebZua",
|
||
"name": "GLMWay",
|
||
"description": null,
|
||
"active": true,
|
||
"isArchived": false,
|
||
"nodes": [
|
||
{
|
||
"parameters": {
|
||
"httpMethod": "POST",
|
||
"path": "glmway",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.webhook",
|
||
"typeVersion": 2.1,
|
||
"position": [
|
||
-352,
|
||
-144
|
||
],
|
||
"id": "4cff954f-86fd-4835-8463-b083e3a66f35",
|
||
"name": "Webhook",
|
||
"webhookId": "2dea176c-88de-41b6-851d-c9f6a703ab69"
|
||
},
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1296,
|
||
1024
|
||
],
|
||
"id": "a2082638-94e3-4a91-aeac-f7849833a6a1",
|
||
"name": "When clicking ‘Execute workflow’"
|
||
},
|
||
{
|
||
"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": [
|
||
2256,
|
||
1136
|
||
],
|
||
"id": "e428eaaf-f678-45ac-bbcc-926f8bd574b7",
|
||
"name": "Subir archivo",
|
||
"retryOnFail": false,
|
||
"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": [
|
||
1648,
|
||
1024
|
||
],
|
||
"id": "58d2c064-8982-42b0-8f1a-a10d018dff94",
|
||
"name": "Obtener archivo",
|
||
"credentials": {
|
||
"httpHeaderAuth": {
|
||
"id": "R4tnNpYoEjhBYeUT",
|
||
"name": "Eidan - gitea"
|
||
}
|
||
},
|
||
"onError": "continueErrorOutput"
|
||
},
|
||
{
|
||
"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": [
|
||
2256,
|
||
928
|
||
],
|
||
"id": "f804d797-946f-4673-8291-308d47ede436",
|
||
"name": "Actualizar archivo",
|
||
"credentials": {
|
||
"httpHeaderAuth": {
|
||
"id": "R4tnNpYoEjhBYeUT",
|
||
"name": "Eidan - gitea"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"workflowId": {
|
||
"__rl": true,
|
||
"value": "F1iPg8hktNAebZua",
|
||
"mode": "list",
|
||
"cachedResultName": "GLMWay (#F1iPg8hktNAebZua)"
|
||
},
|
||
"requestOptions": {}
|
||
},
|
||
"type": "n8n-nodes-base.n8n",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1904,
|
||
928
|
||
],
|
||
"id": "a6420476-f217-4079-b7a0-194969a2dac2",
|
||
"name": "Get a workflow1",
|
||
"credentials": {
|
||
"n8nApi": {
|
||
"id": "73Ydc9X8h5HXvFrt",
|
||
"name": "Eidan - n8n account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"workflowId": {
|
||
"__rl": true,
|
||
"value": "F1iPg8hktNAebZua",
|
||
"mode": "list",
|
||
"cachedResultName": "GLMWay (#F1iPg8hktNAebZua)"
|
||
},
|
||
"requestOptions": {}
|
||
},
|
||
"type": "n8n-nodes-base.n8n",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1904,
|
||
1136
|
||
],
|
||
"id": "f96e2477-f9db-4d36-a162-836d05dcd8ab",
|
||
"name": "Get a workflow2",
|
||
"credentials": {
|
||
"n8nApi": {
|
||
"id": "73Ydc9X8h5HXvFrt",
|
||
"name": "Eidan - n8n account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"assignments": {
|
||
"assignments": [
|
||
{
|
||
"id": "31558805-f167-47c4-b0b4-46b8a80ca282",
|
||
"name": "user",
|
||
"value": "mgomez",
|
||
"type": "string"
|
||
},
|
||
{
|
||
"id": "3519ad4c-6d66-4963-ab76-ee5517d88d67",
|
||
"name": "repo_name",
|
||
"value": "calendario-glm-way",
|
||
"type": "string"
|
||
},
|
||
{
|
||
"id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6",
|
||
"name": "file_name",
|
||
"value": "glmway-workflow",
|
||
"type": "string"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.set",
|
||
"typeVersion": 3.4,
|
||
"position": [
|
||
1472,
|
||
1024
|
||
],
|
||
"id": "fa4f3a95-6fe7-41c4-9a90-f4a3f58e06a8",
|
||
"name": "Valores"
|
||
},
|
||
{
|
||
"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": [
|
||
2080,
|
||
928
|
||
],
|
||
"id": "5d50d650-f0b6-4046-b9c1-974664b655f6",
|
||
"name": "Code in JavaScript2"
|
||
},
|
||
{
|
||
"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": [
|
||
2080,
|
||
1136
|
||
],
|
||
"id": "30ffb25f-3ad7-465d-9630-887828df95f6",
|
||
"name": "Code in JavaScript4"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.supervisorEId }}?fields=displayName,workEmail,status,supervisorEmail,location,jobTitle,department,",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
1904,
|
||
-160
|
||
],
|
||
"id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be",
|
||
"name": "Informacion del supervisor",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"documentId": {
|
||
"__rl": true,
|
||
"value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4",
|
||
"mode": "list",
|
||
"cachedResultName": "Empleados GLM Prueba",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk"
|
||
},
|
||
"sheetName": {
|
||
"__rl": true,
|
||
"value": "gid=0",
|
||
"mode": "list",
|
||
"cachedResultName": "Hoja 1",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0"
|
||
},
|
||
"filtersUI": {
|
||
"values": [
|
||
{
|
||
"lookupColumn": "cargo",
|
||
"lookupValue": "Coordinador RRHH"
|
||
},
|
||
{
|
||
"lookupColumn": "country",
|
||
"lookupValue": "={{ $('Get an employee').item.json.location }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
688,
|
||
-240
|
||
],
|
||
"id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7",
|
||
"name": "Get row(s) in sheet",
|
||
"alwaysOutputData": true,
|
||
"credentials": {
|
||
"googleSheetsOAuth2Api": {
|
||
"id": "8Pp0ek3NPsEkyXfY",
|
||
"name": "Eidan - Google Sheets account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"documentId": {
|
||
"__rl": true,
|
||
"value": "1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI",
|
||
"mode": "list",
|
||
"cachedResultName": "GLM_GLMWay_Calendario de Entrenamientos",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI/edit?usp=drivesdk"
|
||
},
|
||
"sheetName": {
|
||
"__rl": true,
|
||
"value": "gid=0",
|
||
"mode": "list",
|
||
"cachedResultName": "Hoja 1",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0"
|
||
},
|
||
"filtersUI": {
|
||
"values": [
|
||
{
|
||
"lookupColumn": "col_1",
|
||
"lookupValue": "={{ $json.fecha_transformada }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
1696,
|
||
736
|
||
],
|
||
"id": "b7a1afb4-5e9c-4fc0-8a64-99b2b71c918e",
|
||
"name": "Get row(s) in sheet1",
|
||
"credentials": {
|
||
"googleSheetsOAuth2Api": {
|
||
"id": "8Pp0ek3NPsEkyXfY",
|
||
"name": "Eidan - Google Sheets account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "=https://api.bamboohr.com/api/gateway.php/glm/v1/reports/custom",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"sendBody": true,
|
||
"specifyBody": "json",
|
||
"jsonBody": "{\n \"title\": \"Employees\",\n \"fields\": [\n \"id\",\n \"firstName\",\n \"lastName\",\n \"hireDate\",\n \"department\",\n \"jobTitle\"\n ]\n}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
1280,
|
||
-1248
|
||
],
|
||
"id": "a52ef26c-a5d6-4bb5-9a99-61fa25206105",
|
||
"name": "Informacion del supervisor1",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/50743?fields=displayName,mobilePhone,workPhone,workEmail,status,employeeNumber,supervisor,supervisorEmail,location,jobTitle,department,hireDate,supervisorEId",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
1632,
|
||
-1184
|
||
],
|
||
"id": "0088cd80-6150-4577-89a9-b28b06fea6b4",
|
||
"name": "Informacion del empleado1",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"employeeId": "={{ $json.body.employees[0].id }}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.bambooHr",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-176,
|
||
-144
|
||
],
|
||
"id": "5b4b3106-f932-4430-a11e-ebcc1740f884",
|
||
"name": "Get an employee",
|
||
"credentials": {
|
||
"bambooHrApi": {
|
||
"id": "VwYITXROyinOC4je",
|
||
"name": "Eidan - BambooHR account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 3 }) }}",
|
||
"options": {
|
||
"query": "Entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1920,
|
||
192
|
||
],
|
||
"id": "901ca3ad-1e76-41fe-a1ff-a55b0f5c1ea2",
|
||
"name": "Get many events1",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 2
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Jamaica",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "32931394-f4ea-4055-b866-906a81988173",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Trinidad and Tobago",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Barbados",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "28e49217-0c1a-4462-9642-676e54926d3e",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Saint Thomas",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "634f5b1c-fd01-4d42-9a63-4351852f5210",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Trinidad & Tobago",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "St. Croix",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Tobago",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "b308c2b6-53b4-4d49-b540-cdc03e36528b",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Guyana",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "35a50a33-a2b5-4116-9336-11300357569e",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Aruba",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "equals",
|
||
"name": "filter.operator.equals"
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1088,
|
||
-320
|
||
],
|
||
"id": "b7950711-8695-4232-88ab-6b013a0c29d1",
|
||
"name": "Pais?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 2 }) }}",
|
||
"options": {
|
||
"query": "Entrenamiento #TheGLMWay"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1296,
|
||
-224
|
||
],
|
||
"id": "2cd687f2-a8b5-4c46-854a-4f60b4d7107f",
|
||
"name": "Entrenamiento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 2 }) }}",
|
||
"options": {
|
||
"query": "#TheGLMWay Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1296,
|
||
-400
|
||
],
|
||
"id": "01099730-b224-4b81-98cc-b924e2b02367",
|
||
"name": "Entrenamiento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": [
|
||
{}
|
||
]
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventStarted",
|
||
"options": {
|
||
"matchTerm": "training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
-384
|
||
],
|
||
"id": "92aaf072-5cf8-4ffd-b641-20fa5fb88103",
|
||
"name": "Comenzo evento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": []
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventStarted",
|
||
"options": {
|
||
"matchTerm": "entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
-208
|
||
],
|
||
"id": "34eb762f-b9c7-4a72-94ce-3ce246c7c790",
|
||
"name": "Comenzo evento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": [
|
||
{
|
||
"mode": "everyMinute"
|
||
}
|
||
]
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventEnded",
|
||
"options": {
|
||
"matchTerm": "entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
160
|
||
],
|
||
"id": "e0c4da60-bbbe-4cc1-b340-1749e204b6b2",
|
||
"name": "Termino evento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": []
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventEnded",
|
||
"options": {
|
||
"matchTerm": "training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
-16
|
||
],
|
||
"id": "cd1a89d4-21e5-475e-93ed-4f00bbfd0190",
|
||
"name": "Termino evento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "for (const item of $input.all()) {\n // 1. Cambia 'fecha_original' por el nombre real de tu campo\n const fechaStr = item.json.hireDate; \n\n if (fechaStr) {\n // 2. Forzamos UTC para evitar problemas de zona horaria\n const fecha = new Date(fechaStr + 'T00:00:00Z');\n \n // 3. Extraemos el día número\n const dia = fecha.getUTCDate();\n \n // 4. Extraemos el nombre del mes en inglés\n const mes = fecha.toLocaleDateString('en-US', { month: 'long', timeZone: 'UTC' });\n \n // 5. Los unimos en el orden exacto que necesitas: \"15 June\"\n item.json.fecha_transformada = `${dia} ${mes}`;\n } else {\n item.json.fecha_transformada = null;\n }\n}\n\nreturn $input.all();"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
1488,
|
||
736
|
||
],
|
||
"id": "a088f9b0-7ec6-40d0-9a90-fa2047ab0461",
|
||
"name": "Cambiar formato de fecha"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"documentId": {
|
||
"__rl": true,
|
||
"value": "1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI",
|
||
"mode": "list",
|
||
"cachedResultName": "GLM_GLMWay_Calendario de Entrenamientos",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI/edit?usp=drivesdk"
|
||
},
|
||
"sheetName": {
|
||
"__rl": true,
|
||
"value": "gid=0",
|
||
"mode": "list",
|
||
"cachedResultName": "Hoja 1",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0"
|
||
},
|
||
"filtersUI": {
|
||
"values": [
|
||
{
|
||
"lookupColumn": "col_1",
|
||
"lookupValue": "2 July"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
1776,
|
||
-528
|
||
],
|
||
"id": "ed7dc4ef-e1fe-4305-ba7e-a98b617ee095",
|
||
"name": "Get row(s) in sheet2",
|
||
"credentials": {
|
||
"googleSheetsOAuth2Api": {
|
||
"id": "8Pp0ek3NPsEkyXfY",
|
||
"name": "Eidan - Google Sheets account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"rule": {
|
||
"interval": [
|
||
{
|
||
"field": "weeks",
|
||
"triggerAtDay": [
|
||
1,
|
||
4
|
||
]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.scheduleTrigger",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
-352,
|
||
176
|
||
],
|
||
"id": "7f7d71b2-6c53-49a2-92d8-e66b2d0bff54",
|
||
"name": "Schedule Trigger"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 4 }) }}",
|
||
"options": {
|
||
"fields": "",
|
||
"query": "Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1728,
|
||
32
|
||
],
|
||
"id": "77e81486-bffe-457d-8bc0-442c25ff4512",
|
||
"name": "Entrenamiento ingles1",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
0,
|
||
-144
|
||
],
|
||
"id": "ae2aff4d-5874-4181-9801-cf51d5cc4ff3",
|
||
"name": "Informacion extra del empleado",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ Object.keys($json).length }}",
|
||
"rightValue": 0,
|
||
"operator": {
|
||
"type": "number",
|
||
"operation": "gt"
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
848,
|
||
-240
|
||
],
|
||
"id": "8a2be7cc-85ad-4e44-92a7-fe3f94df703f",
|
||
"name": "Hay coordinador?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ $('Get an employee').item.json.workEmail }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEmpty",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
1712,
|
||
-688
|
||
],
|
||
"id": "deb40073-dc0e-41e4-ad7c-6df18de25b4f",
|
||
"name": "Empleado le falta info?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "const today = new Date();\n\n// Formato YYYY-MM-DD\nconst formattedDate = today.toISOString().split('T')[0];\n\nreturn [\n {\n json: {\n date: formattedDate\n }\n }\n];"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
1040,
|
||
736
|
||
],
|
||
"id": "0db9e6a4-2e5e-4513-97fd-71d22aa90822",
|
||
"name": "Fecha hoy"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Formato fecha\nyyyy-mm-dd\n",
|
||
"height": 192,
|
||
"width": 192
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
128,
|
||
-224
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "8de8b400-70cb-4367-bddc-d42876f18d52",
|
||
"name": "Sticky Note"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ $json.isValid }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "boolean",
|
||
"operation": "true",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
336,
|
||
-144
|
||
],
|
||
"id": "cb43a2bb-7743-4994-a7b2-209cd0934cd7",
|
||
"name": "Entra hoy?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"rule": {
|
||
"interval": [
|
||
{
|
||
"triggerAtHour": 1
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.scheduleTrigger",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
-48,
|
||
512
|
||
],
|
||
"id": "20e1c800-bf0b-4484-b836-14bc7154e4e7",
|
||
"name": "Schedule Trigger1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"tableId": "inscritos_glmway",
|
||
"fieldsUi": {
|
||
"fieldValues": [
|
||
{
|
||
"fieldId": "empleado_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.id }}"
|
||
},
|
||
{
|
||
"fieldId": "nombre",
|
||
"fieldValue": "={{ $('Get an employee').item.json.displayName }}"
|
||
},
|
||
{
|
||
"fieldId": "email",
|
||
"fieldValue": "={{ $('Get an employee').item.json.workEmail }}"
|
||
},
|
||
{
|
||
"fieldId": "departamento",
|
||
"fieldValue": "={{ $('Get an employee').item.json.department }}"
|
||
},
|
||
{
|
||
"fieldId": "supervisor_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.supervisorEId }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_ingreso",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.hireDate }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_inscripcion",
|
||
"fieldValue": "={{ $json.today }}"
|
||
},
|
||
{
|
||
"fieldId": "estado",
|
||
"fieldValue": "activo"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
528,
|
||
-240
|
||
],
|
||
"id": "dcdef9fc-9c61-45dd-9604-56037eac4c31",
|
||
"name": "Insertar a inscritos (activo)",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"tableId": "inscritos_glmway",
|
||
"fieldsUi": {
|
||
"fieldValues": [
|
||
{
|
||
"fieldId": "empleado_id",
|
||
"fieldValue": "={{ $('Get an employee').item.json.id }}"
|
||
},
|
||
{
|
||
"fieldId": "nombre",
|
||
"fieldValue": "={{ $('Get an employee').item.json.displayName }}"
|
||
},
|
||
{
|
||
"fieldId": "email",
|
||
"fieldValue": "={{ $('Get an employee').item.json.workEmail }}"
|
||
},
|
||
{
|
||
"fieldId": "departamento",
|
||
"fieldValue": "={{ $('Get an employee').item.json.department }}"
|
||
},
|
||
{
|
||
"fieldId": "supervisor_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.supervisorEId }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_ingreso",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.hireDate }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_inscripcion",
|
||
"fieldValue": "={{ null }}"
|
||
},
|
||
{
|
||
"fieldId": "estado",
|
||
"fieldValue": "inactivo"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
528,
|
||
-48
|
||
],
|
||
"id": "0a800bb8-d5f1-443e-b3b1-3ca9546eb28f",
|
||
"name": "Insertar a inscritos (inactivo)",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "const hireDate = $json.hireDate; // Ej: \"2026-06-01\"\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
176,
|
||
-144
|
||
],
|
||
"id": "241cf92b-09b1-4555-af46-7b9ff49c5e37",
|
||
"name": "Calcular fecha hireDate"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Numero wsp Matos\n\n18494105855@s.whatsapp.net",
|
||
"height": 192,
|
||
"width": 192
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
1216,
|
||
16
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "719365c8-8099-4108-a910-83b651d81181",
|
||
"name": "Sticky Note1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "={{'https://wsp.gomezleemarketing.com'}}/message/sendText/{{'botsoporte'}}",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "apikey",
|
||
"value": "={{'C267126ABB45-4C12-B626-6BAB1833F5D7'}}"
|
||
}
|
||
]
|
||
},
|
||
"sendBody": true,
|
||
"bodyParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "number",
|
||
"value": "={{ \"18097159076@s.whatsapp.net\" }}"
|
||
},
|
||
{
|
||
"name": "mediatype",
|
||
"value": "=image"
|
||
},
|
||
{
|
||
"name": "text",
|
||
"value": "=Manda un texto o un audio contestando estas preguntas:\n\n1. ¿Cuál fue tu ruta?\n (ej: 'Santo Domingo → Santiago → Santo Domingo')\n\n2. ¿Cuánto recibiste de anticipo?\n\n3. Fecha de periodo de inicio y finalización.\n\n4. ¿Cuál es el motivo o destino del viaje?\n (ej. 'Viaje a Santiago — visita Cervecería Nacional')\n\n5. ¿Cliente o proyecto?\n (escribe 'general' si no aplica)"
|
||
},
|
||
{
|
||
"name": "delay",
|
||
"value": "={{5000}}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.2,
|
||
"position": [
|
||
1088,
|
||
-144
|
||
],
|
||
"id": "09ce1f03-3dfb-4108-9d25-6c05ac622a6f",
|
||
"name": "Alerta no hay coordinador RRHH"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"employeeId": "={{ $json.empleado_id }}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.bambooHr",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
496,
|
||
624
|
||
],
|
||
"id": "9e00d1ce-5533-4357-977e-31a8da97f232",
|
||
"name": "Get an employee1",
|
||
"credentials": {
|
||
"bambooHrApi": {
|
||
"id": "VwYITXROyinOC4je",
|
||
"name": "Eidan - BambooHR account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"tableId": "inscritos_glmway",
|
||
"filters": {
|
||
"conditions": [
|
||
{
|
||
"keyName": "estado",
|
||
"keyValue": "inactivo"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
128,
|
||
512
|
||
],
|
||
"id": "93a65a61-59a9-4903-8a35-dbf66a0ef468",
|
||
"name": "Get a row",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"tableId": "inscritos_glmway",
|
||
"filters": {
|
||
"conditions": [
|
||
{
|
||
"keyName": "empleado_id",
|
||
"condition": "eq",
|
||
"keyValue": "={{ $('Get an employee1').item.json.id }}"
|
||
}
|
||
]
|
||
},
|
||
"fieldsUi": {
|
||
"fieldValues": [
|
||
{
|
||
"fieldId": "email",
|
||
"fieldValue": "={{ $('Get an employee1').item.json.workEmail }}"
|
||
},
|
||
{
|
||
"fieldId": "departamento",
|
||
"fieldValue": "={{ $('Get an employee1').item.json.department }}"
|
||
},
|
||
{
|
||
"fieldId": "supervisor_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado1').item.json.supervisorEId }}"
|
||
},
|
||
{
|
||
"fieldId": "estado",
|
||
"fieldValue": "activo"
|
||
},
|
||
{
|
||
"fieldId": "fecha_inscripcion",
|
||
"fieldValue": "={{ $json.date }}"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1200,
|
||
736
|
||
],
|
||
"id": "e67b21c3-ab44-4d27-ada0-719197b5c3df",
|
||
"name": "Update a row",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
672,
|
||
624
|
||
],
|
||
"id": "06c32cb0-a8ab-42c1-ae36-fe628b1b5e2b",
|
||
"name": "Informacion extra del empleado1",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.splitInBatches",
|
||
"typeVersion": 3,
|
||
"position": [
|
||
288,
|
||
512
|
||
],
|
||
"id": "36c1682f-35a1-4016-b2ac-77f7e20e3e59",
|
||
"name": "Loop Over Items"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ $json.isValid }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "boolean",
|
||
"operation": "true",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
848,
|
||
624
|
||
],
|
||
"id": "15a1892d-01e8-432c-91f1-db236317cbca",
|
||
"name": "Le falta info?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"sendTo": "eidan.then14@gmail.com",
|
||
"subject": "Entrenamiento #TheGLMWay",
|
||
"emailType": "text",
|
||
"message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}",
|
||
"options": {
|
||
"appendAttribution": false
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.gmail",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1488,
|
||
-224
|
||
],
|
||
"id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387",
|
||
"name": "Send a message espanol",
|
||
"webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"sendTo": "eidan.then14@gmail.com",
|
||
"subject": "#TheGLMWay Training",
|
||
"emailType": "text",
|
||
"message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.gmail",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1488,
|
||
-400
|
||
],
|
||
"id": "f173c8d1-9311-405c-a7ee-164726df32f1",
|
||
"name": "Send a message ingles",
|
||
"webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Recordatorio a nuevo ingreso 24 horas antes de la sesion\n",
|
||
"height": 544,
|
||
"width": 1392,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-384,
|
||
560
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "ba58d863-3211-4f53-b087-eb53ba839499",
|
||
"name": "Sticky Note2"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Recordatorio a coordinador RRHH 48 horas antes de la sesion\n",
|
||
"height": 544,
|
||
"width": 1392,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-512,
|
||
1328
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "e32bdd94-d61e-4b43-bf60-7acab8c0d3ae",
|
||
"name": "Sticky Note3"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Envio de formulario de evaluacion despues que la sesion finalize",
|
||
"height": 896,
|
||
"width": 1392,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-512,
|
||
1952
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "6d5c0fe5-5ab1-4cdc-bfd2-197dc2144274",
|
||
"name": "Sticky Note4"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado",
|
||
"height": 608,
|
||
"width": 2016,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-384,
|
||
-480
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "cd2fe5c5-9963-410b-a61a-edc36b5aaed1",
|
||
"name": "Sticky Note5"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"eventId": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z",
|
||
"updateFields": {
|
||
"attendeesUi": {
|
||
"values": {
|
||
"attendees": [
|
||
""
|
||
]
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
976,
|
||
-672
|
||
],
|
||
"id": "711b3353-6f75-4c6d-bef7-e704290787e8",
|
||
"name": "Entrenamiento ingles2",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 4 }) }}",
|
||
"options": {
|
||
"query": "#TheGLMWay Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1216,
|
||
-656
|
||
],
|
||
"id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601",
|
||
"name": "Entrenamiento ingles3",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"connections": {
|
||
"Webhook": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get an employee",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"When clicking ‘Execute workflow’": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Valores",
|
||
"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 JavaScript2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get a workflow2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Code in JavaScript4",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Valores": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Obtener archivo",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Actualizar archivo",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript4": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Subir archivo",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get an employee": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Informacion extra del empleado",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Pais?": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Entrenamiento ingles",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Entrenamiento español",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Cambiar formato de fecha": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get row(s) in sheet1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion del supervisor": {
|
||
"main": [
|
||
[]
|
||
]
|
||
},
|
||
"Informacion extra del empleado": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Calcular fecha hireDate",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get row(s) in sheet": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Hay coordinador?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Fecha hoy": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Update a row",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Entra hoy?": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Insertar a inscritos (activo)",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Insertar a inscritos (inactivo)",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Calcular fecha hireDate": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Entra hoy?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Insertar a inscritos (activo)": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get row(s) in sheet",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Hay coordinador?": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Pais?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Alerta no hay coordinador RRHH",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Schedule Trigger1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get a row",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get a row": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Loop Over Items",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get an employee1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Informacion extra del empleado1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion extra del empleado1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Le falta info?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Loop Over Items": {
|
||
"main": [
|
||
[],
|
||
[
|
||
{
|
||
"node": "Get an employee1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Le falta info?": {
|
||
"main": [
|
||
[],
|
||
[
|
||
{
|
||
"node": "Fecha hoy",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Entrenamiento ingles": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Send a message ingles",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Entrenamiento español": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Send a message espanol",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"settings": {
|
||
"executionOrder": "v1",
|
||
"binaryMode": "separate"
|
||
},
|
||
"staticData": {
|
||
"node:Gmail Trigger": {
|
||
"Gmail Trigger": {
|
||
"lastTimeChecked": 1781290702
|
||
}
|
||
},
|
||
"node:Schedule Trigger": {
|
||
"recurrenceRules": []
|
||
},
|
||
"node:Schedule Trigger1": {
|
||
"recurrenceRules": []
|
||
}
|
||
},
|
||
"meta": {
|
||
"templateCredsSetupCompleted": true
|
||
},
|
||
"pinData": {
|
||
"Get row(s) in sheet2": [
|
||
{
|
||
"json": {
|
||
"row_number": 108,
|
||
"col_1": "2 July",
|
||
"Espanol": "Poul",
|
||
"English": ""
|
||
},
|
||
"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-6a2ffcd80000000090a90716fcdbe92f-592b1070e73c2740-01",
|
||
"tracestate": "dd=t.dm:-0",
|
||
"x-bamboohr-signature": "645a789d249d80ff1a2bdc52bf6c5097ecb9fb18af22f8f218e2a29f676dfed9",
|
||
"x-bamboohr-timestamp": "1781529816",
|
||
"x-datadog-parent-id": "6425247370476005184",
|
||
"x-datadog-sampling-priority": "1",
|
||
"x-datadog-tags": "_dd.p.tid=6a2ffcd800000000,_dd.p.dm=-0",
|
||
"x-datadog-trace-id": "10423870607838669103",
|
||
"x-forwarded-for": "3.148.192.37",
|
||
"x-forwarded-host": "agenteit.digitalcompass.agency",
|
||
"x-forwarded-port": "443",
|
||
"x-forwarded-proto": "https",
|
||
"x-forwarded-server": "07b4f09d2c65",
|
||
"x-real-ip": "3.148.192.37",
|
||
"accept-encoding": "gzip"
|
||
},
|
||
"params": {},
|
||
"query": {},
|
||
"body": {
|
||
"employees": [
|
||
{
|
||
"changedFields": [],
|
||
"fields": {},
|
||
"id": "50751",
|
||
"action": "Created",
|
||
"timestamp": "2026-06-15T07:23:32-06:00"
|
||
}
|
||
]
|
||
},
|
||
"webhookUrl": "https://agenteit.digitalcompass.agency/webhook/glmway",
|
||
"executionMode": "production"
|
||
},
|
||
"pairedItem": {
|
||
"item": 0
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"versionId": "7aa58b19-1772-4fe3-910e-4623639b8741",
|
||
"activeVersionId": "7aa58b19-1772-4fe3-910e-4623639b8741",
|
||
"versionCounter": 781,
|
||
"triggerCount": 3,
|
||
"shared": [
|
||
{
|
||
"updatedAt": "2026-06-08T13:50:12.177Z",
|
||
"createdAt": "2026-06-08T13:50:12.177Z",
|
||
"role": "workflow:owner",
|
||
"workflowId": "F1iPg8hktNAebZua",
|
||
"projectId": "0bH6HfYEL8n6SDmr",
|
||
"project": {
|
||
"updatedAt": "2026-04-22T14:25:04.701Z",
|
||
"createdAt": "2026-04-22T14:22:54.790Z",
|
||
"id": "0bH6HfYEL8n6SDmr",
|
||
"name": "Eidan Then <ethen@gomezleemarketing.com>",
|
||
"type": "personal",
|
||
"icon": null,
|
||
"description": null,
|
||
"creatorId": "de14e7e5-491b-4983-abb2-f88af42e92fd"
|
||
}
|
||
}
|
||
],
|
||
"tags": [],
|
||
"activeVersion": {
|
||
"updatedAt": "2026-06-15T19:08:50.000Z",
|
||
"createdAt": "2026-06-15T19:08:47.536Z",
|
||
"versionId": "7aa58b19-1772-4fe3-910e-4623639b8741",
|
||
"workflowId": "F1iPg8hktNAebZua",
|
||
"nodes": [
|
||
{
|
||
"parameters": {
|
||
"httpMethod": "POST",
|
||
"path": "glmway",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.webhook",
|
||
"typeVersion": 2.1,
|
||
"position": [
|
||
-352,
|
||
-144
|
||
],
|
||
"id": "4cff954f-86fd-4835-8463-b083e3a66f35",
|
||
"name": "Webhook",
|
||
"webhookId": "2dea176c-88de-41b6-851d-c9f6a703ab69"
|
||
},
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1296,
|
||
1024
|
||
],
|
||
"id": "a2082638-94e3-4a91-aeac-f7849833a6a1",
|
||
"name": "When clicking ‘Execute workflow’"
|
||
},
|
||
{
|
||
"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": [
|
||
2256,
|
||
1136
|
||
],
|
||
"id": "e428eaaf-f678-45ac-bbcc-926f8bd574b7",
|
||
"name": "Subir archivo",
|
||
"retryOnFail": false,
|
||
"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": [
|
||
1648,
|
||
1024
|
||
],
|
||
"id": "58d2c064-8982-42b0-8f1a-a10d018dff94",
|
||
"name": "Obtener archivo",
|
||
"credentials": {
|
||
"httpHeaderAuth": {
|
||
"id": "R4tnNpYoEjhBYeUT",
|
||
"name": "Eidan - gitea"
|
||
}
|
||
},
|
||
"onError": "continueErrorOutput"
|
||
},
|
||
{
|
||
"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": [
|
||
2256,
|
||
928
|
||
],
|
||
"id": "f804d797-946f-4673-8291-308d47ede436",
|
||
"name": "Actualizar archivo",
|
||
"credentials": {
|
||
"httpHeaderAuth": {
|
||
"id": "R4tnNpYoEjhBYeUT",
|
||
"name": "Eidan - gitea"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"workflowId": {
|
||
"__rl": true,
|
||
"value": "F1iPg8hktNAebZua",
|
||
"mode": "list",
|
||
"cachedResultName": "GLMWay (#F1iPg8hktNAebZua)"
|
||
},
|
||
"requestOptions": {}
|
||
},
|
||
"type": "n8n-nodes-base.n8n",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1904,
|
||
928
|
||
],
|
||
"id": "a6420476-f217-4079-b7a0-194969a2dac2",
|
||
"name": "Get a workflow1",
|
||
"credentials": {
|
||
"n8nApi": {
|
||
"id": "73Ydc9X8h5HXvFrt",
|
||
"name": "Eidan - n8n account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"workflowId": {
|
||
"__rl": true,
|
||
"value": "F1iPg8hktNAebZua",
|
||
"mode": "list",
|
||
"cachedResultName": "GLMWay (#F1iPg8hktNAebZua)"
|
||
},
|
||
"requestOptions": {}
|
||
},
|
||
"type": "n8n-nodes-base.n8n",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1904,
|
||
1136
|
||
],
|
||
"id": "f96e2477-f9db-4d36-a162-836d05dcd8ab",
|
||
"name": "Get a workflow2",
|
||
"credentials": {
|
||
"n8nApi": {
|
||
"id": "73Ydc9X8h5HXvFrt",
|
||
"name": "Eidan - n8n account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"assignments": {
|
||
"assignments": [
|
||
{
|
||
"id": "31558805-f167-47c4-b0b4-46b8a80ca282",
|
||
"name": "user",
|
||
"value": "mgomez",
|
||
"type": "string"
|
||
},
|
||
{
|
||
"id": "3519ad4c-6d66-4963-ab76-ee5517d88d67",
|
||
"name": "repo_name",
|
||
"value": "calendario-glm-way",
|
||
"type": "string"
|
||
},
|
||
{
|
||
"id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6",
|
||
"name": "file_name",
|
||
"value": "glmway-workflow",
|
||
"type": "string"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.set",
|
||
"typeVersion": 3.4,
|
||
"position": [
|
||
1472,
|
||
1024
|
||
],
|
||
"id": "fa4f3a95-6fe7-41c4-9a90-f4a3f58e06a8",
|
||
"name": "Valores"
|
||
},
|
||
{
|
||
"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": [
|
||
2080,
|
||
928
|
||
],
|
||
"id": "5d50d650-f0b6-4046-b9c1-974664b655f6",
|
||
"name": "Code in JavaScript2"
|
||
},
|
||
{
|
||
"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": [
|
||
2080,
|
||
1136
|
||
],
|
||
"id": "30ffb25f-3ad7-465d-9630-887828df95f6",
|
||
"name": "Code in JavaScript4"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.supervisorEId }}?fields=displayName,workEmail,status,supervisorEmail,location,jobTitle,department,",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
1904,
|
||
-160
|
||
],
|
||
"id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be",
|
||
"name": "Informacion del supervisor",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"documentId": {
|
||
"__rl": true,
|
||
"value": "1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4",
|
||
"mode": "list",
|
||
"cachedResultName": "Empleados GLM Prueba",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit?usp=drivesdk"
|
||
},
|
||
"sheetName": {
|
||
"__rl": true,
|
||
"value": "gid=0",
|
||
"mode": "list",
|
||
"cachedResultName": "Hoja 1",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0"
|
||
},
|
||
"filtersUI": {
|
||
"values": [
|
||
{
|
||
"lookupColumn": "cargo",
|
||
"lookupValue": "Coordinador RRHH"
|
||
},
|
||
{
|
||
"lookupColumn": "country",
|
||
"lookupValue": "={{ $('Get an employee').item.json.location }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
688,
|
||
-240
|
||
],
|
||
"id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7",
|
||
"name": "Get row(s) in sheet",
|
||
"alwaysOutputData": true,
|
||
"credentials": {
|
||
"googleSheetsOAuth2Api": {
|
||
"id": "8Pp0ek3NPsEkyXfY",
|
||
"name": "Eidan - Google Sheets account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"documentId": {
|
||
"__rl": true,
|
||
"value": "1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI",
|
||
"mode": "list",
|
||
"cachedResultName": "GLM_GLMWay_Calendario de Entrenamientos",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI/edit?usp=drivesdk"
|
||
},
|
||
"sheetName": {
|
||
"__rl": true,
|
||
"value": "gid=0",
|
||
"mode": "list",
|
||
"cachedResultName": "Hoja 1",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0"
|
||
},
|
||
"filtersUI": {
|
||
"values": [
|
||
{
|
||
"lookupColumn": "col_1",
|
||
"lookupValue": "={{ $json.fecha_transformada }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
1696,
|
||
736
|
||
],
|
||
"id": "b7a1afb4-5e9c-4fc0-8a64-99b2b71c918e",
|
||
"name": "Get row(s) in sheet1",
|
||
"credentials": {
|
||
"googleSheetsOAuth2Api": {
|
||
"id": "8Pp0ek3NPsEkyXfY",
|
||
"name": "Eidan - Google Sheets account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "=https://api.bamboohr.com/api/gateway.php/glm/v1/reports/custom",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"sendBody": true,
|
||
"specifyBody": "json",
|
||
"jsonBody": "{\n \"title\": \"Employees\",\n \"fields\": [\n \"id\",\n \"firstName\",\n \"lastName\",\n \"hireDate\",\n \"department\",\n \"jobTitle\"\n ]\n}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
1280,
|
||
-1248
|
||
],
|
||
"id": "a52ef26c-a5d6-4bb5-9a99-61fa25206105",
|
||
"name": "Informacion del supervisor1",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/50743?fields=displayName,mobilePhone,workPhone,workEmail,status,employeeNumber,supervisor,supervisorEmail,location,jobTitle,department,hireDate,supervisorEId",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
1632,
|
||
-1184
|
||
],
|
||
"id": "0088cd80-6150-4577-89a9-b28b06fea6b4",
|
||
"name": "Informacion del empleado1",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"employeeId": "={{ $json.body.employees[0].id }}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.bambooHr",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-176,
|
||
-144
|
||
],
|
||
"id": "5b4b3106-f932-4430-a11e-ebcc1740f884",
|
||
"name": "Get an employee",
|
||
"credentials": {
|
||
"bambooHrApi": {
|
||
"id": "VwYITXROyinOC4je",
|
||
"name": "Eidan - BambooHR account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 3 }) }}",
|
||
"options": {
|
||
"query": "Entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1920,
|
||
192
|
||
],
|
||
"id": "901ca3ad-1e76-41fe-a1ff-a55b0f5c1ea2",
|
||
"name": "Get many events1",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 2
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "9674fd7e-dd62-42d4-8931-6c67e59e3dd7",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Jamaica",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "32931394-f4ea-4055-b866-906a81988173",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Trinidad and Tobago",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "ea2a8466-96c6-460f-b08f-d23c06b2d18c",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Barbados",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "28e49217-0c1a-4462-9642-676e54926d3e",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Saint Thomas",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "634f5b1c-fd01-4d42-9a63-4351852f5210",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Trinidad & Tobago",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "c6a6aea5-48f4-44dc-92ca-a9f9de9cacf9",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "St. Croix",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "e6f52339-ea7c-462f-bdc2-8b7353160e4c",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Tobago",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "b308c2b6-53b4-4d49-b540-cdc03e36528b",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Guyana",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEquals"
|
||
}
|
||
},
|
||
{
|
||
"id": "35a50a33-a2b5-4116-9336-11300357569e",
|
||
"leftValue": "={{ $('Get an employee').item.json.location }}",
|
||
"rightValue": "Aruba",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "equals",
|
||
"name": "filter.operator.equals"
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1088,
|
||
-320
|
||
],
|
||
"id": "b7950711-8695-4232-88ab-6b013a0c29d1",
|
||
"name": "Pais?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 2 }) }}",
|
||
"options": {
|
||
"query": "Entrenamiento #TheGLMWay"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1296,
|
||
-224
|
||
],
|
||
"id": "2cd687f2-a8b5-4c46-854a-4f60b4d7107f",
|
||
"name": "Entrenamiento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 2 }) }}",
|
||
"options": {
|
||
"query": "#TheGLMWay Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1296,
|
||
-400
|
||
],
|
||
"id": "01099730-b224-4b81-98cc-b924e2b02367",
|
||
"name": "Entrenamiento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": [
|
||
{}
|
||
]
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventStarted",
|
||
"options": {
|
||
"matchTerm": "training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
-384
|
||
],
|
||
"id": "92aaf072-5cf8-4ffd-b641-20fa5fb88103",
|
||
"name": "Comenzo evento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": []
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventStarted",
|
||
"options": {
|
||
"matchTerm": "entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
-208
|
||
],
|
||
"id": "34eb762f-b9c7-4a72-94ce-3ce246c7c790",
|
||
"name": "Comenzo evento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": [
|
||
{
|
||
"mode": "everyMinute"
|
||
}
|
||
]
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventEnded",
|
||
"options": {
|
||
"matchTerm": "entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
160
|
||
],
|
||
"id": "e0c4da60-bbbe-4cc1-b340-1749e204b6b2",
|
||
"name": "Termino evento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": []
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"triggerOn": "eventEnded",
|
||
"options": {
|
||
"matchTerm": "training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-704,
|
||
-16
|
||
],
|
||
"id": "cd1a89d4-21e5-475e-93ed-4f00bbfd0190",
|
||
"name": "Termino evento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "for (const item of $input.all()) {\n // 1. Cambia 'fecha_original' por el nombre real de tu campo\n const fechaStr = item.json.hireDate; \n\n if (fechaStr) {\n // 2. Forzamos UTC para evitar problemas de zona horaria\n const fecha = new Date(fechaStr + 'T00:00:00Z');\n \n // 3. Extraemos el día número\n const dia = fecha.getUTCDate();\n \n // 4. Extraemos el nombre del mes en inglés\n const mes = fecha.toLocaleDateString('en-US', { month: 'long', timeZone: 'UTC' });\n \n // 5. Los unimos en el orden exacto que necesitas: \"15 June\"\n item.json.fecha_transformada = `${dia} ${mes}`;\n } else {\n item.json.fecha_transformada = null;\n }\n}\n\nreturn $input.all();"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
1488,
|
||
736
|
||
],
|
||
"id": "a088f9b0-7ec6-40d0-9a90-fa2047ab0461",
|
||
"name": "Cambiar formato de fecha"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"documentId": {
|
||
"__rl": true,
|
||
"value": "1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI",
|
||
"mode": "list",
|
||
"cachedResultName": "GLM_GLMWay_Calendario de Entrenamientos",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1zQabzR4ZpQVqYvJ0Cv5QTQ2TZRl9TahBJGfyZB4CRmI/edit?usp=drivesdk"
|
||
},
|
||
"sheetName": {
|
||
"__rl": true,
|
||
"value": "gid=0",
|
||
"mode": "list",
|
||
"cachedResultName": "Hoja 1",
|
||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1DzUjeikfp8eSdFqEW0LEZZBkn13jI8Uhy15DjGZ2tK4/edit#gid=0"
|
||
},
|
||
"filtersUI": {
|
||
"values": [
|
||
{
|
||
"lookupColumn": "col_1",
|
||
"lookupValue": "2 July"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
1776,
|
||
-528
|
||
],
|
||
"id": "ed7dc4ef-e1fe-4305-ba7e-a98b617ee095",
|
||
"name": "Get row(s) in sheet2",
|
||
"credentials": {
|
||
"googleSheetsOAuth2Api": {
|
||
"id": "8Pp0ek3NPsEkyXfY",
|
||
"name": "Eidan - Google Sheets account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"rule": {
|
||
"interval": [
|
||
{
|
||
"field": "weeks",
|
||
"triggerAtDay": [
|
||
1,
|
||
4
|
||
]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.scheduleTrigger",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
-352,
|
||
176
|
||
],
|
||
"id": "7f7d71b2-6c53-49a2-92d8-e66b2d0bff54",
|
||
"name": "Schedule Trigger"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 4 }) }}",
|
||
"options": {
|
||
"fields": "",
|
||
"query": "Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1728,
|
||
32
|
||
],
|
||
"id": "77e81486-bffe-457d-8bc0-442c25ff4512",
|
||
"name": "Entrenamiento ingles1",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
0,
|
||
-144
|
||
],
|
||
"id": "ae2aff4d-5874-4181-9801-cf51d5cc4ff3",
|
||
"name": "Informacion extra del empleado",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ Object.keys($json).length }}",
|
||
"rightValue": 0,
|
||
"operator": {
|
||
"type": "number",
|
||
"operation": "gt"
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
848,
|
||
-240
|
||
],
|
||
"id": "8a2be7cc-85ad-4e44-92a7-fe3f94df703f",
|
||
"name": "Hay coordinador?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ $('Get an employee').item.json.workEmail }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "string",
|
||
"operation": "notEmpty",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
1712,
|
||
-688
|
||
],
|
||
"id": "deb40073-dc0e-41e4-ad7c-6df18de25b4f",
|
||
"name": "Empleado le falta info?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "const today = new Date();\n\n// Formato YYYY-MM-DD\nconst formattedDate = today.toISOString().split('T')[0];\n\nreturn [\n {\n json: {\n date: formattedDate\n }\n }\n];"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
1040,
|
||
736
|
||
],
|
||
"id": "0db9e6a4-2e5e-4513-97fd-71d22aa90822",
|
||
"name": "Fecha hoy"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Formato fecha\nyyyy-mm-dd\n",
|
||
"height": 192,
|
||
"width": 192
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
128,
|
||
-224
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "8de8b400-70cb-4367-bddc-d42876f18d52",
|
||
"name": "Sticky Note"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ $json.isValid }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "boolean",
|
||
"operation": "true",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
336,
|
||
-144
|
||
],
|
||
"id": "cb43a2bb-7743-4994-a7b2-209cd0934cd7",
|
||
"name": "Entra hoy?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"rule": {
|
||
"interval": [
|
||
{
|
||
"triggerAtHour": 1
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.scheduleTrigger",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
-48,
|
||
512
|
||
],
|
||
"id": "20e1c800-bf0b-4484-b836-14bc7154e4e7",
|
||
"name": "Schedule Trigger1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"tableId": "inscritos_glmway",
|
||
"fieldsUi": {
|
||
"fieldValues": [
|
||
{
|
||
"fieldId": "empleado_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.id }}"
|
||
},
|
||
{
|
||
"fieldId": "nombre",
|
||
"fieldValue": "={{ $('Get an employee').item.json.displayName }}"
|
||
},
|
||
{
|
||
"fieldId": "email",
|
||
"fieldValue": "={{ $('Get an employee').item.json.workEmail }}"
|
||
},
|
||
{
|
||
"fieldId": "departamento",
|
||
"fieldValue": "={{ $('Get an employee').item.json.department }}"
|
||
},
|
||
{
|
||
"fieldId": "supervisor_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.supervisorEId }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_ingreso",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.hireDate }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_inscripcion",
|
||
"fieldValue": "={{ $json.today }}"
|
||
},
|
||
{
|
||
"fieldId": "estado",
|
||
"fieldValue": "activo"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
528,
|
||
-240
|
||
],
|
||
"id": "dcdef9fc-9c61-45dd-9604-56037eac4c31",
|
||
"name": "Insertar a inscritos (activo)",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"tableId": "inscritos_glmway",
|
||
"fieldsUi": {
|
||
"fieldValues": [
|
||
{
|
||
"fieldId": "empleado_id",
|
||
"fieldValue": "={{ $('Get an employee').item.json.id }}"
|
||
},
|
||
{
|
||
"fieldId": "nombre",
|
||
"fieldValue": "={{ $('Get an employee').item.json.displayName }}"
|
||
},
|
||
{
|
||
"fieldId": "email",
|
||
"fieldValue": "={{ $('Get an employee').item.json.workEmail }}"
|
||
},
|
||
{
|
||
"fieldId": "departamento",
|
||
"fieldValue": "={{ $('Get an employee').item.json.department }}"
|
||
},
|
||
{
|
||
"fieldId": "supervisor_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.supervisorEId }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_ingreso",
|
||
"fieldValue": "={{ $('Informacion extra del empleado').item.json.hireDate }}"
|
||
},
|
||
{
|
||
"fieldId": "fecha_inscripcion",
|
||
"fieldValue": "={{ null }}"
|
||
},
|
||
{
|
||
"fieldId": "estado",
|
||
"fieldValue": "inactivo"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
528,
|
||
-48
|
||
],
|
||
"id": "0a800bb8-d5f1-443e-b3b1-3ca9546eb28f",
|
||
"name": "Insertar a inscritos (inactivo)",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"jsCode": "const hireDate = $json.hireDate; // Ej: \"2026-06-01\"\n\n// Fecha de hoy en formato YYYY-MM-DD\nconst today = new Date().toISOString().split('T')[0];\n\n// True si hireDate es hoy o anterior\nconst isValid = hireDate <= today;\n\nreturn [\n {\n json: {\n hireDate,\n today,\n isValid\n }\n }\n];"
|
||
},
|
||
"type": "n8n-nodes-base.code",
|
||
"typeVersion": 2,
|
||
"position": [
|
||
176,
|
||
-144
|
||
],
|
||
"id": "241cf92b-09b1-4555-af46-7b9ff49c5e37",
|
||
"name": "Calcular fecha hireDate"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Numero wsp Matos\n\n18494105855@s.whatsapp.net",
|
||
"height": 192,
|
||
"width": 192
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
1216,
|
||
16
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "719365c8-8099-4108-a910-83b651d81181",
|
||
"name": "Sticky Note1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "={{'https://wsp.gomezleemarketing.com'}}/message/sendText/{{'botsoporte'}}",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "apikey",
|
||
"value": "={{'C267126ABB45-4C12-B626-6BAB1833F5D7'}}"
|
||
}
|
||
]
|
||
},
|
||
"sendBody": true,
|
||
"bodyParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "number",
|
||
"value": "={{ \"18097159076@s.whatsapp.net\" }}"
|
||
},
|
||
{
|
||
"name": "mediatype",
|
||
"value": "=image"
|
||
},
|
||
{
|
||
"name": "text",
|
||
"value": "=Manda un texto o un audio contestando estas preguntas:\n\n1. ¿Cuál fue tu ruta?\n (ej: 'Santo Domingo → Santiago → Santo Domingo')\n\n2. ¿Cuánto recibiste de anticipo?\n\n3. Fecha de periodo de inicio y finalización.\n\n4. ¿Cuál es el motivo o destino del viaje?\n (ej. 'Viaje a Santiago — visita Cervecería Nacional')\n\n5. ¿Cliente o proyecto?\n (escribe 'general' si no aplica)"
|
||
},
|
||
{
|
||
"name": "delay",
|
||
"value": "={{5000}}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.2,
|
||
"position": [
|
||
1088,
|
||
-144
|
||
],
|
||
"id": "09ce1f03-3dfb-4108-9d25-6c05ac622a6f",
|
||
"name": "Alerta no hay coordinador RRHH"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"employeeId": "={{ $json.empleado_id }}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.bambooHr",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
496,
|
||
624
|
||
],
|
||
"id": "9e00d1ce-5533-4357-977e-31a8da97f232",
|
||
"name": "Get an employee1",
|
||
"credentials": {
|
||
"bambooHrApi": {
|
||
"id": "VwYITXROyinOC4je",
|
||
"name": "Eidan - BambooHR account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "get",
|
||
"tableId": "inscritos_glmway",
|
||
"filters": {
|
||
"conditions": [
|
||
{
|
||
"keyName": "estado",
|
||
"keyValue": "inactivo"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
128,
|
||
512
|
||
],
|
||
"id": "93a65a61-59a9-4903-8a35-dbf66a0ef468",
|
||
"name": "Get a row",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"tableId": "inscritos_glmway",
|
||
"filters": {
|
||
"conditions": [
|
||
{
|
||
"keyName": "empleado_id",
|
||
"condition": "eq",
|
||
"keyValue": "={{ $('Get an employee1').item.json.id }}"
|
||
}
|
||
]
|
||
},
|
||
"fieldsUi": {
|
||
"fieldValues": [
|
||
{
|
||
"fieldId": "email",
|
||
"fieldValue": "={{ $('Get an employee1').item.json.workEmail }}"
|
||
},
|
||
{
|
||
"fieldId": "departamento",
|
||
"fieldValue": "={{ $('Get an employee1').item.json.department }}"
|
||
},
|
||
{
|
||
"fieldId": "supervisor_id",
|
||
"fieldValue": "={{ $('Informacion extra del empleado1').item.json.supervisorEId }}"
|
||
},
|
||
{
|
||
"fieldId": "estado",
|
||
"fieldValue": "activo"
|
||
},
|
||
{
|
||
"fieldId": "fecha_inscripcion",
|
||
"fieldValue": "={{ $json.date }}"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1200,
|
||
736
|
||
],
|
||
"id": "e67b21c3-ab44-4d27-ada0-719197b5c3df",
|
||
"name": "Update a row",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,hireDate,supervisorEId,jobTitle",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "httpBasicAuth",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "accept",
|
||
"value": "application/json"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.4,
|
||
"position": [
|
||
672,
|
||
624
|
||
],
|
||
"id": "06c32cb0-a8ab-42c1-ae36-fe628b1b5e2b",
|
||
"name": "Informacion extra del empleado1",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.splitInBatches",
|
||
"typeVersion": 3,
|
||
"position": [
|
||
288,
|
||
512
|
||
],
|
||
"id": "36c1682f-35a1-4016-b2ac-77f7e20e3e59",
|
||
"name": "Loop Over Items"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"conditions": {
|
||
"options": {
|
||
"caseSensitive": true,
|
||
"leftValue": "",
|
||
"typeValidation": "strict",
|
||
"version": 3
|
||
},
|
||
"conditions": [
|
||
{
|
||
"id": "d7d68505-8c34-44cd-b771-56bef28ada41",
|
||
"leftValue": "={{ $json.isValid }}",
|
||
"rightValue": "",
|
||
"operator": {
|
||
"type": "boolean",
|
||
"operation": "true",
|
||
"singleValue": true
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.3,
|
||
"position": [
|
||
848,
|
||
624
|
||
],
|
||
"id": "15a1892d-01e8-432c-91f1-db236317cbca",
|
||
"name": "Le falta info?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"sendTo": "eidan.then14@gmail.com",
|
||
"subject": "Entrenamiento #TheGLMWay",
|
||
"emailType": "text",
|
||
"message": "=Hola, GLMer!\n\nEn este entrenamiento queremos transmitirte nuestra cultura, nuestro ADN y por qué somos diferentes al resto.\n\nTe esperamos puntual y con todas las ganas de aprender.\n\nNos vemos en el enlace!\n\n{{ $json.conferenceData.entryPoints[0].uri }}",
|
||
"options": {
|
||
"appendAttribution": false
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.gmail",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1488,
|
||
-224
|
||
],
|
||
"id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387",
|
||
"name": "Send a message espanol",
|
||
"webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"sendTo": "eidan.then14@gmail.com",
|
||
"subject": "#TheGLMWay Training",
|
||
"emailType": "text",
|
||
"message": "=Hello, GLMer!\n\nIn this training we want to share our culture, our DNA, and why we are different from the rest.\n\nWe look forward to seeing you on time and eager to learn.\n\nSee you at the link!\n\n{{ $json.conferenceData.entryPoints[0].uri }}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.gmail",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
1488,
|
||
-400
|
||
],
|
||
"id": "f173c8d1-9311-405c-a7ee-164726df32f1",
|
||
"name": "Send a message ingles",
|
||
"webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Recordatorio a nuevo ingreso 24 horas antes de la sesion\n",
|
||
"height": 544,
|
||
"width": 1392,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-384,
|
||
560
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "ba58d863-3211-4f53-b087-eb53ba839499",
|
||
"name": "Sticky Note2"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Recordatorio a coordinador RRHH 48 horas antes de la sesion\n",
|
||
"height": 544,
|
||
"width": 1392,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-512,
|
||
1328
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "e32bdd94-d61e-4b43-bf60-7acab8c0d3ae",
|
||
"name": "Sticky Note3"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Envio de formulario de evaluacion despues que la sesion finalize",
|
||
"height": 896,
|
||
"width": 1392,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-512,
|
||
1952
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "6d5c0fe5-5ab1-4cdc-bfd2-197dc2144274",
|
||
"name": "Sticky Note4"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Notificacion inicial\n\nEnvia notificacion de sesion en el primer dia de trabajo del empleado",
|
||
"height": 608,
|
||
"width": 2016,
|
||
"color": 6
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"position": [
|
||
-384,
|
||
-480
|
||
],
|
||
"typeVersion": 1,
|
||
"id": "cd2fe5c5-9963-410b-a61a-edc36b5aaed1",
|
||
"name": "Sticky Note5"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "update",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"eventId": "3ul4moq4isoavr9jhqpcbs7juu_20260617T230000Z",
|
||
"updateFields": {
|
||
"attendeesUi": {
|
||
"values": {
|
||
"attendees": [
|
||
""
|
||
]
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
976,
|
||
-672
|
||
],
|
||
"id": "711b3353-6f75-4c6d-bef7-e704290787e8",
|
||
"name": "Entrenamiento ingles2",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"returnAll": true,
|
||
"timeMax": "={{ $now.plus({ week: 4 }) }}",
|
||
"options": {
|
||
"query": "#TheGLMWay Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
1216,
|
||
-656
|
||
],
|
||
"id": "e0cc1e60-9379-45fb-b7f4-6def9c3e9601",
|
||
"name": "Entrenamiento ingles3",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"connections": {
|
||
"Webhook": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get an employee",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"When clicking ‘Execute workflow’": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Valores",
|
||
"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 JavaScript2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get a workflow2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Code in JavaScript4",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Valores": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Obtener archivo",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Actualizar archivo",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Code in JavaScript4": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Subir archivo",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get an employee": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Informacion extra del empleado",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Pais?": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Entrenamiento ingles",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Entrenamiento español",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Cambiar formato de fecha": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get row(s) in sheet1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion del supervisor": {
|
||
"main": [
|
||
[]
|
||
]
|
||
},
|
||
"Informacion extra del empleado": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Calcular fecha hireDate",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get row(s) in sheet": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Hay coordinador?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Fecha hoy": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Update a row",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Entra hoy?": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Insertar a inscritos (activo)",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Insertar a inscritos (inactivo)",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Calcular fecha hireDate": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Entra hoy?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Insertar a inscritos (activo)": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get row(s) in sheet",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Hay coordinador?": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Pais?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
],
|
||
[
|
||
{
|
||
"node": "Alerta no hay coordinador RRHH",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Schedule Trigger1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Get a row",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get a row": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Loop Over Items",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Get an employee1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Informacion extra del empleado1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion extra del empleado1": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Le falta info?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Loop Over Items": {
|
||
"main": [
|
||
[],
|
||
[
|
||
{
|
||
"node": "Get an employee1",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Le falta info?": {
|
||
"main": [
|
||
[],
|
||
[
|
||
{
|
||
"node": "Fecha hoy",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Entrenamiento ingles": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Send a message ingles",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Entrenamiento español": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Send a message espanol",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"authors": "Eidan Then",
|
||
"name": "Version 7aa58b19",
|
||
"description": "",
|
||
"autosaved": true,
|
||
"workflowPublishHistory": [
|
||
{
|
||
"createdAt": "2026-06-15T19:08:50.871Z",
|
||
"id": 1411,
|
||
"workflowId": "F1iPg8hktNAebZua",
|
||
"versionId": "7aa58b19-1772-4fe3-910e-4623639b8741",
|
||
"event": "activated",
|
||
"userId": "de14e7e5-491b-4983-abb2-f88af42e92fd"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
} |