2069 lines
61 KiB
JSON
2069 lines
61 KiB
JSON
{
|
||
"$json": {
|
||
"updatedAt": "2026-06-12T19:05:06.733Z",
|
||
"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": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.body.employees[0].id }}?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": [
|
||
608,
|
||
-448
|
||
],
|
||
"id": "89b4b09b-b56a-4b21-beab-f1eace2ebd7d",
|
||
"name": "Informacion del empleado",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-656,
|
||
928
|
||
],
|
||
"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": [
|
||
304,
|
||
1040
|
||
],
|
||
"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": [
|
||
-304,
|
||
928
|
||
],
|
||
"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": [
|
||
304,
|
||
832
|
||
],
|
||
"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": [
|
||
-48,
|
||
832
|
||
],
|
||
"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": [
|
||
-48,
|
||
1040
|
||
],
|
||
"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": [
|
||
-480,
|
||
928
|
||
],
|
||
"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": [
|
||
128,
|
||
832
|
||
],
|
||
"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": [
|
||
128,
|
||
1040
|
||
],
|
||
"id": "30ffb25f-3ad7-465d-9630-887828df95f6",
|
||
"name": "Code in JavaScript4"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.supervisorEId }}?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": [
|
||
-416,
|
||
128
|
||
],
|
||
"id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be",
|
||
"name": "Informacion del supervisor",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"returnAll": true
|
||
},
|
||
"type": "n8n-nodes-base.bambooHr",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
880,
|
||
480
|
||
],
|
||
"id": "bb1e4101-a118-4423-a863-dc0ac1cdc372",
|
||
"name": "Get many employees",
|
||
"credentials": {
|
||
"bambooHrApi": {
|
||
"id": "VwYITXROyinOC4je",
|
||
"name": "Eidan - BambooHR account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"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": "={{ $json.location }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
928,
|
||
-224
|
||
],
|
||
"id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7",
|
||
"name": "Get row(s) in sheet",
|
||
"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": [
|
||
{
|
||
"lookupValue": "Coordinador RRHH"
|
||
},
|
||
{
|
||
"lookupValue": "={{ $json.location }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
544,
|
||
224
|
||
],
|
||
"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": [
|
||
-480,
|
||
304
|
||
],
|
||
"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": [
|
||
-144,
|
||
224
|
||
],
|
||
"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": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,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": [
|
||
0,
|
||
-144
|
||
],
|
||
"id": "ae2aff4d-5874-4181-9801-cf51d5cc4ff3",
|
||
"name": "Informacion del empleado2",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"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": [
|
||
848,
|
||
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"
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
176,
|
||
-144
|
||
],
|
||
"id": "b7950711-8695-4232-88ab-6b013a0c29d1",
|
||
"name": "Pais?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resource": "calendar",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
400,
|
||
-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: 4 }) }}",
|
||
"options": {
|
||
"query": "Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
400,
|
||
-48
|
||
],
|
||
"id": "01099730-b224-4b81-98cc-b924e2b02367",
|
||
"name": "Entrenamiento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"sendTo": "eidan.then14@gmail.com",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.gmail",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
640,
|
||
-224
|
||
],
|
||
"id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387",
|
||
"name": "Send a message",
|
||
"webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"fieldsUi": {
|
||
"fieldValues": []
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1088,
|
||
-432
|
||
],
|
||
"id": "dcdef9fc-9c61-45dd-9604-56037eac4c31",
|
||
"name": "Create a row",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"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": [
|
||
-352,
|
||
-896
|
||
],
|
||
"id": "92aaf072-5cf8-4ffd-b641-20fa5fb88103",
|
||
"name": "Comenzo evento 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": "entrenamiento"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-352,
|
||
-720
|
||
],
|
||
"id": "34eb762f-b9c7-4a72-94ce-3ce246c7c790",
|
||
"name": "Comenzo evento español",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"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": [
|
||
-352,
|
||
-352
|
||
],
|
||
"id": "e0c4da60-bbbe-4cc1-b340-1749e204b6b2",
|
||
"name": "Termino evento español",
|
||
"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": "eventEnded",
|
||
"options": {
|
||
"matchTerm": "training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-352,
|
||
-528
|
||
],
|
||
"id": "cd1a89d4-21e5-475e-93ed-4f00bbfd0190",
|
||
"name": "Termino evento ingles",
|
||
"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
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion del empleado": {
|
||
"main": [
|
||
[]
|
||
]
|
||
},
|
||
"Get an employee": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Informacion del empleado2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion del empleado2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Pais?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Pais?": {
|
||
"main": [
|
||
[],
|
||
[]
|
||
]
|
||
}
|
||
},
|
||
"settings": {
|
||
"executionOrder": "v1",
|
||
"binaryMode": "separate"
|
||
},
|
||
"staticData": {
|
||
"node:Gmail Trigger": {
|
||
"Gmail Trigger": {
|
||
"lastTimeChecked": 1781290702
|
||
}
|
||
}
|
||
},
|
||
"meta": {
|
||
"templateCredsSetupCompleted": true
|
||
},
|
||
"pinData": {
|
||
"Informacion del empleado": [
|
||
{
|
||
"json": {
|
||
"id": "50748",
|
||
"displayName": "Sara Gabriela Gil Cifuentes",
|
||
"mobilePhone": null,
|
||
"workPhone": null,
|
||
"workEmail": null,
|
||
"status": "Active",
|
||
"employeeNumber": "1072642085",
|
||
"supervisor": "Salamanca Cruz, Carlos",
|
||
"supervisorEmail": "csalamanca@gomezleemarketing.com",
|
||
"location": "Colombia",
|
||
"jobTitle": "Gestor de Experiencia",
|
||
"department": "Field Force",
|
||
"hireDate": "2026-06-12",
|
||
"supervisorEId": "48338"
|
||
},
|
||
"pairedItem": {
|
||
"item": 0
|
||
}
|
||
}
|
||
],
|
||
"Get row(s) in sheet": [
|
||
{
|
||
"json": {
|
||
"row_number": 724,
|
||
"id": 46822,
|
||
"name": "Liane Meliza Gomez Leon",
|
||
"workEmail": "rrhhcolombia@gomezleemarketing.com",
|
||
"mobilePhone": 3057218123,
|
||
"workPhone": "",
|
||
"status": "Active",
|
||
"cedula": 1015429431,
|
||
"supervisor": "Maximo Gomez Lee",
|
||
"supervisorEmail": "mgomez@gomezleemarketing.com",
|
||
"country": "Colombia",
|
||
"cargo": "Coordinador RRHH",
|
||
"departamento": "Recursos Humanos"
|
||
},
|
||
"pairedItem": {
|
||
"item": 0
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"versionId": "26926775-f93b-44a0-a18a-6a3baa1fe459",
|
||
"activeVersionId": "8c3bc7f9-7f34-4f8a-b222-b4a767b8c671",
|
||
"versionCounter": 274,
|
||
"triggerCount": 2,
|
||
"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-12T18:58:23.000Z",
|
||
"createdAt": "2026-06-12T18:58:20.642Z",
|
||
"versionId": "8c3bc7f9-7f34-4f8a-b222-b4a767b8c671",
|
||
"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": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.body.employees[0].id }}?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": [
|
||
400,
|
||
-432
|
||
],
|
||
"id": "89b4b09b-b56a-4b21-beab-f1eace2ebd7d",
|
||
"name": "Informacion del empleado",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-656,
|
||
928
|
||
],
|
||
"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": [
|
||
304,
|
||
1040
|
||
],
|
||
"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": [
|
||
-304,
|
||
928
|
||
],
|
||
"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": [
|
||
304,
|
||
832
|
||
],
|
||
"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": [
|
||
-48,
|
||
832
|
||
],
|
||
"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": [
|
||
-48,
|
||
1040
|
||
],
|
||
"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": [
|
||
-480,
|
||
928
|
||
],
|
||
"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": [
|
||
128,
|
||
832
|
||
],
|
||
"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": [
|
||
128,
|
||
1040
|
||
],
|
||
"id": "30ffb25f-3ad7-465d-9630-887828df95f6",
|
||
"name": "Code in JavaScript4"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.supervisorEId }}?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": [
|
||
-416,
|
||
128
|
||
],
|
||
"id": "a34b5746-bdbc-4016-bffc-f953b5c0e7be",
|
||
"name": "Informacion del supervisor",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"operation": "getAll",
|
||
"returnAll": true
|
||
},
|
||
"type": "n8n-nodes-base.bambooHr",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
880,
|
||
480
|
||
],
|
||
"id": "bb1e4101-a118-4423-a863-dc0ac1cdc372",
|
||
"name": "Get many employees",
|
||
"credentials": {
|
||
"bambooHrApi": {
|
||
"id": "VwYITXROyinOC4je",
|
||
"name": "Eidan - BambooHR account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"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": "={{ $json.location }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
928,
|
||
-224
|
||
],
|
||
"id": "d565bfde-93eb-4b39-afc8-4b294c7e9df7",
|
||
"name": "Get row(s) in sheet",
|
||
"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": [
|
||
{
|
||
"lookupValue": "Coordinador RRHH"
|
||
},
|
||
{
|
||
"lookupValue": "={{ $json.location }}"
|
||
}
|
||
]
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleSheets",
|
||
"typeVersion": 4.7,
|
||
"position": [
|
||
544,
|
||
224
|
||
],
|
||
"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": [
|
||
-480,
|
||
304
|
||
],
|
||
"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": [
|
||
-144,
|
||
224
|
||
],
|
||
"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": {
|
||
"url": "=https://glm.bamboohr.com/api/v1/employees/{{ $json.id }}?fields=supervisorEmail,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": [
|
||
0,
|
||
-144
|
||
],
|
||
"id": "ae2aff4d-5874-4181-9801-cf51d5cc4ff3",
|
||
"name": "Informacion del empleado2",
|
||
"retryOnFail": true,
|
||
"waitBetweenTries": 2000,
|
||
"credentials": {
|
||
"httpBasicAuth": {
|
||
"id": "vXrW3oJWVhNbzB07",
|
||
"name": "GLM Credential"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"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": [
|
||
848,
|
||
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"
|
||
}
|
||
}
|
||
],
|
||
"combinator": "and"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.if",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
176,
|
||
-144
|
||
],
|
||
"id": "b7950711-8695-4232-88ab-6b013a0c29d1",
|
||
"name": "Pais?"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resource": "calendar",
|
||
"calendar": {
|
||
"__rl": true,
|
||
"value": "ethen@gomezleemarketing.com",
|
||
"mode": "list",
|
||
"cachedResultName": "ethen@gomezleemarketing.com"
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
400,
|
||
-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: 4 }) }}",
|
||
"options": {
|
||
"query": "Training"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendar",
|
||
"typeVersion": 1.3,
|
||
"position": [
|
||
400,
|
||
-48
|
||
],
|
||
"id": "01099730-b224-4b81-98cc-b924e2b02367",
|
||
"name": "Entrenamiento ingles",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"sendTo": "eidan.then14@gmail.com",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.gmail",
|
||
"typeVersion": 2.2,
|
||
"position": [
|
||
640,
|
||
-224
|
||
],
|
||
"id": "e6c3acf5-d54b-4e00-b7a9-74038d27e387",
|
||
"name": "Send a message",
|
||
"webhookId": "a6043707-89d1-4c99-8de2-e60d9aaf7ed2",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": []
|
||
},
|
||
"maxResults": 1,
|
||
"filters": {
|
||
"sender": "notifications@app.bamboohr.com"
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.gmailTrigger",
|
||
"typeVersion": 1.4,
|
||
"position": [
|
||
272,
|
||
112
|
||
],
|
||
"id": "4f97bda3-cbd1-4fa7-8be7-83bcda000f74",
|
||
"name": "Gmail Trigger",
|
||
"credentials": {
|
||
"gmailOAuth2": {
|
||
"id": "QWNicjw1khRm5BVI",
|
||
"name": "Eidan - Gmail account"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"fieldsUi": {
|
||
"fieldValues": []
|
||
}
|
||
},
|
||
"type": "n8n-nodes-base.supabase",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
1088,
|
||
-432
|
||
],
|
||
"id": "dcdef9fc-9c61-45dd-9604-56037eac4c31",
|
||
"name": "Create a row",
|
||
"credentials": {
|
||
"supabaseApi": {
|
||
"id": "2PlsR6rpK7rQTIEn",
|
||
"name": "Sofia test - Supabase account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": [
|
||
{
|
||
"mode": "everyMinute"
|
||
}
|
||
]
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"mode": "list",
|
||
"value": ""
|
||
},
|
||
"triggerOn": "eventStarted",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-352,
|
||
-464
|
||
],
|
||
"id": "92aaf072-5cf8-4ffd-b641-20fa5fb88103",
|
||
"name": "Google Calendar Trigger",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
},
|
||
{
|
||
"parameters": {
|
||
"pollTimes": {
|
||
"item": [
|
||
{
|
||
"mode": "everyMinute"
|
||
}
|
||
]
|
||
},
|
||
"calendarId": {
|
||
"__rl": true,
|
||
"mode": "list",
|
||
"value": ""
|
||
},
|
||
"triggerOn": "eventEnded",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.googleCalendarTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-352,
|
||
-304
|
||
],
|
||
"id": "e0c4da60-bbbe-4cc1-b340-1749e204b6b2",
|
||
"name": "Google Calendar Trigger1",
|
||
"credentials": {
|
||
"googleCalendarOAuth2Api": {
|
||
"id": "yEmGG4av5RxOK7wu",
|
||
"name": "Eidan - Google Calendar account"
|
||
}
|
||
},
|
||
"disabled": true
|
||
}
|
||
],
|
||
"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
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion del empleado": {
|
||
"main": [
|
||
[]
|
||
]
|
||
},
|
||
"Get an employee": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Informacion del empleado2",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Informacion del empleado2": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Pais?",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Pais?": {
|
||
"main": [
|
||
[],
|
||
[]
|
||
]
|
||
}
|
||
},
|
||
"authors": "Eidan Then",
|
||
"name": "Version 8c3bc7f9",
|
||
"description": "",
|
||
"autosaved": true,
|
||
"workflowPublishHistory": [
|
||
{
|
||
"createdAt": "2026-06-12T18:58:23.143Z",
|
||
"id": 1363,
|
||
"workflowId": "F1iPg8hktNAebZua",
|
||
"versionId": "8c3bc7f9-7f34-4f8a-b222-b4a767b8c671",
|
||
"event": "activated",
|
||
"userId": "de14e7e5-491b-4983-abb2-f88af42e92fd"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
} |