Update backup: Tablero CDC - Sync Proyecto a Banco Fulgencio
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"updatedAt": "2026-06-16T13:12:18.167Z",
|
"updatedAt": "2026-07-16T16:20:23.940Z",
|
||||||
"createdAt": "2026-06-16T12:18:54.043Z",
|
"createdAt": "2026-06-16T12:18:54.043Z",
|
||||||
"id": "k2NNakqj2TaP0HKy",
|
"id": "k2NNakqj2TaP0HKy",
|
||||||
"name": "Tablero CDC - Sync Proyecto a Banco Fulgencio",
|
"name": "Tablero CDC - Sync Proyecto a Banco Fulgencio",
|
||||||
"description": null,
|
"description": "Recibe actualizaciones de proyectos mediante webhook y sincroniza la información entre el Tablero CDC, Supabase, Google Sheets y el Banco de Fulgencio.",
|
||||||
"active": true,
|
"active": true,
|
||||||
"isArchived": false,
|
"isArchived": false,
|
||||||
"nodes": [
|
"nodes": [
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"type": "n8n-nodes-base.webhook",
|
"type": "n8n-nodes-base.webhook",
|
||||||
"typeVersion": 2.1,
|
"typeVersion": 2.1,
|
||||||
"position": [
|
"position": [
|
||||||
0,
|
-272,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "5fbd25cf-6c2d-4364-a10e-91954b61256f",
|
"id": "5fbd25cf-6c2d-4364-a10e-91954b61256f",
|
||||||
"name": "Webhook",
|
"name": "Webhook",
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
"type": "n8n-nodes-base.code",
|
"type": "n8n-nodes-base.code",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
"position": [
|
"position": [
|
||||||
208,
|
-64,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "61c5d83f-33d1-45d8-bb6a-4f657461f3c1",
|
"id": "61c5d83f-33d1-45d8-bb6a-4f657461f3c1",
|
||||||
"name": "Code - Preparar project_id"
|
"name": "Code - Preparar project_id"
|
||||||
@@ -66,8 +66,8 @@
|
|||||||
"type": "n8n-nodes-base.httpRequest",
|
"type": "n8n-nodes-base.httpRequest",
|
||||||
"typeVersion": 4.4,
|
"typeVersion": 4.4,
|
||||||
"position": [
|
"position": [
|
||||||
416,
|
144,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "007cdb0b-ab8e-4558-8ce0-b4cf238b2ef9",
|
"id": "007cdb0b-ab8e-4558-8ce0-b4cf238b2ef9",
|
||||||
"name": "Supabase - Leer proyecto"
|
"name": "Supabase - Leer proyecto"
|
||||||
@@ -101,8 +101,8 @@
|
|||||||
"type": "n8n-nodes-base.httpRequest",
|
"type": "n8n-nodes-base.httpRequest",
|
||||||
"typeVersion": 4.4,
|
"typeVersion": 4.4,
|
||||||
"position": [
|
"position": [
|
||||||
592,
|
320,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "ab47b077-7d17-4145-9a19-c0b9134a7931",
|
"id": "ab47b077-7d17-4145-9a19-c0b9134a7931",
|
||||||
"name": "Supabase - Leer links del proyecto",
|
"name": "Supabase - Leer links del proyecto",
|
||||||
@@ -115,8 +115,8 @@
|
|||||||
"type": "n8n-nodes-base.code",
|
"type": "n8n-nodes-base.code",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
"position": [
|
"position": [
|
||||||
800,
|
528,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "4a37a2a6-3138-455b-8806-288d852873a6",
|
"id": "4a37a2a6-3138-455b-8806-288d852873a6",
|
||||||
"name": "Code - Preparar filas Fulgencio"
|
"name": "Code - Preparar filas Fulgencio"
|
||||||
@@ -149,8 +149,8 @@
|
|||||||
"type": "n8n-nodes-base.if",
|
"type": "n8n-nodes-base.if",
|
||||||
"typeVersion": 2.3,
|
"typeVersion": 2.3,
|
||||||
"position": [
|
"position": [
|
||||||
1008,
|
736,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "5b14f1ea-8203-4daf-8f14-b39da2a7dc97",
|
"id": "5b14f1ea-8203-4daf-8f14-b39da2a7dc97",
|
||||||
"name": "IF - Tiene filas para escribir?"
|
"name": "IF - Tiene filas para escribir?"
|
||||||
@@ -164,8 +164,8 @@
|
|||||||
"type": "n8n-nodes-base.respondToWebhook",
|
"type": "n8n-nodes-base.respondToWebhook",
|
||||||
"typeVersion": 1.5,
|
"typeVersion": 1.5,
|
||||||
"position": [
|
"position": [
|
||||||
1520,
|
1248,
|
||||||
-96
|
0
|
||||||
],
|
],
|
||||||
"id": "c221409e-9777-4453-afa1-ad8bc7107910",
|
"id": "c221409e-9777-4453-afa1-ad8bc7107910",
|
||||||
"name": "Respond to Webhook"
|
"name": "Respond to Webhook"
|
||||||
@@ -179,8 +179,8 @@
|
|||||||
"type": "n8n-nodes-base.respondToWebhook",
|
"type": "n8n-nodes-base.respondToWebhook",
|
||||||
"typeVersion": 1.5,
|
"typeVersion": 1.5,
|
||||||
"position": [
|
"position": [
|
||||||
1216,
|
944,
|
||||||
96
|
192
|
||||||
],
|
],
|
||||||
"id": "363e5ac4-43be-4a9e-afd0-923bec81a017",
|
"id": "363e5ac4-43be-4a9e-afd0-923bec81a017",
|
||||||
"name": "Respond to Webhook1"
|
"name": "Respond to Webhook1"
|
||||||
@@ -480,8 +480,8 @@
|
|||||||
"type": "n8n-nodes-base.googleSheets",
|
"type": "n8n-nodes-base.googleSheets",
|
||||||
"typeVersion": 4.7,
|
"typeVersion": 4.7,
|
||||||
"position": [
|
"position": [
|
||||||
1312,
|
1040,
|
||||||
-96
|
0
|
||||||
],
|
],
|
||||||
"id": "f3bee0f1-50da-4908-923f-51b17a2dbbdc",
|
"id": "f3bee0f1-50da-4908-923f-51b17a2dbbdc",
|
||||||
"name": "Google Sheets - Upsert Banco Fulgencio",
|
"name": "Google Sheets - Upsert Banco Fulgencio",
|
||||||
@@ -491,6 +491,22 @@
|
|||||||
"name": "Google Sheets account 2"
|
"name": "Google Sheets account 2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"content": "# 🔄 SYNC TABLERO CDC → BANCO FULGENCIO\n\nSincroniza automáticamente un proyecto del Tablero CDC con el Banco de Propuestas de Fulgencio.\n\nFuncionamiento:\n\n1. Recibe mediante Webhook el identificador del proyecto.\n2. Normaliza y valida el project_id recibido.\n3. Consulta en Supabase los datos principales del proyecto.\n4. Recupera los enlaces asociados, como propuestas, presentaciones y artes finales.\n5. Convierte la información al formato requerido por el Banco Fulgencio.\n6. Valida si existen filas aptas para escribir.\n7. Inserta o actualiza el proyecto en Google Sheets.\n8. Devuelve al sistema solicitante el resultado de la sincronización.\n\nDatos procesados:\n\n- Identificador del proyecto.\n- Nombre o descripción de la propuesta.\n- Cliente y marca.\n- País o unidad de negocio.\n- Responsable del proyecto.\n- Estado y fechas disponibles.\n- Enlaces relacionados con la propuesta.\n- Información necesaria para las consultas de Fulgencio.\n\nReglas:\n\n- Supabase es la fuente oficial de los datos del proyecto.\n- Los enlaces se consultan por separado y se relacionan mediante el project_id.\n- El Upsert actualiza una fila existente o crea una nueva, evitando duplicados.\n- Solo se escribe cuando existe información válida para el Banco Fulgencio.\n- Si no hay filas procesables, el flujo termina correctamente sin modificar el Sheet.\n- Ambas ramas responden al Webhook para evitar solicitudes abiertas o tiempos de espera.",
|
||||||
|
"height": 960,
|
||||||
|
"width": 1792,
|
||||||
|
"color": "#24555C"
|
||||||
|
},
|
||||||
|
"type": "n8n-nodes-base.stickyNote",
|
||||||
|
"typeVersion": 1,
|
||||||
|
"position": [
|
||||||
|
-336,
|
||||||
|
-624
|
||||||
|
],
|
||||||
|
"id": "f561433a-a85c-497c-b3ef-fd36eef3b0b6",
|
||||||
|
"name": "Sticky Note"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"connections": {
|
"connections": {
|
||||||
@@ -581,15 +597,16 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"executionOrder": "v1",
|
"executionOrder": "v1",
|
||||||
"binaryMode": "separate"
|
"binaryMode": "separate",
|
||||||
|
"availableInMCP": true
|
||||||
},
|
},
|
||||||
"staticData": null,
|
"staticData": null,
|
||||||
"meta": {
|
"meta": {
|
||||||
"templateCredsSetupCompleted": true
|
"templateCredsSetupCompleted": true
|
||||||
},
|
},
|
||||||
"versionId": "5d61630a-1078-4e90-b0d0-2586454f1878",
|
"versionId": "5b0c04ba-7275-4352-b6af-323cd6ead268",
|
||||||
"activeVersionId": "5d61630a-1078-4e90-b0d0-2586454f1878",
|
"activeVersionId": "5b0c04ba-7275-4352-b6af-323cd6ead268",
|
||||||
"versionCounter": 94,
|
"versionCounter": 112,
|
||||||
"triggerCount": 1,
|
"triggerCount": 1,
|
||||||
"shared": [
|
"shared": [
|
||||||
{
|
{
|
||||||
@@ -612,9 +629,9 @@
|
|||||||
],
|
],
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"activeVersion": {
|
"activeVersion": {
|
||||||
"updatedAt": "2026-06-16T13:12:19.000Z",
|
"updatedAt": "2026-07-13T16:06:34.000Z",
|
||||||
"createdAt": "2026-06-16T12:37:18.224Z",
|
"createdAt": "2026-07-13T16:06:32.588Z",
|
||||||
"versionId": "5d61630a-1078-4e90-b0d0-2586454f1878",
|
"versionId": "5b0c04ba-7275-4352-b6af-323cd6ead268",
|
||||||
"workflowId": "k2NNakqj2TaP0HKy",
|
"workflowId": "k2NNakqj2TaP0HKy",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
@@ -627,8 +644,8 @@
|
|||||||
"type": "n8n-nodes-base.webhook",
|
"type": "n8n-nodes-base.webhook",
|
||||||
"typeVersion": 2.1,
|
"typeVersion": 2.1,
|
||||||
"position": [
|
"position": [
|
||||||
0,
|
-272,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "5fbd25cf-6c2d-4364-a10e-91954b61256f",
|
"id": "5fbd25cf-6c2d-4364-a10e-91954b61256f",
|
||||||
"name": "Webhook",
|
"name": "Webhook",
|
||||||
@@ -641,8 +658,8 @@
|
|||||||
"type": "n8n-nodes-base.code",
|
"type": "n8n-nodes-base.code",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
"position": [
|
"position": [
|
||||||
208,
|
-64,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "61c5d83f-33d1-45d8-bb6a-4f657461f3c1",
|
"id": "61c5d83f-33d1-45d8-bb6a-4f657461f3c1",
|
||||||
"name": "Code - Preparar project_id"
|
"name": "Code - Preparar project_id"
|
||||||
@@ -676,8 +693,8 @@
|
|||||||
"type": "n8n-nodes-base.httpRequest",
|
"type": "n8n-nodes-base.httpRequest",
|
||||||
"typeVersion": 4.4,
|
"typeVersion": 4.4,
|
||||||
"position": [
|
"position": [
|
||||||
416,
|
144,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "007cdb0b-ab8e-4558-8ce0-b4cf238b2ef9",
|
"id": "007cdb0b-ab8e-4558-8ce0-b4cf238b2ef9",
|
||||||
"name": "Supabase - Leer proyecto"
|
"name": "Supabase - Leer proyecto"
|
||||||
@@ -711,8 +728,8 @@
|
|||||||
"type": "n8n-nodes-base.httpRequest",
|
"type": "n8n-nodes-base.httpRequest",
|
||||||
"typeVersion": 4.4,
|
"typeVersion": 4.4,
|
||||||
"position": [
|
"position": [
|
||||||
592,
|
320,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "ab47b077-7d17-4145-9a19-c0b9134a7931",
|
"id": "ab47b077-7d17-4145-9a19-c0b9134a7931",
|
||||||
"name": "Supabase - Leer links del proyecto",
|
"name": "Supabase - Leer links del proyecto",
|
||||||
@@ -725,8 +742,8 @@
|
|||||||
"type": "n8n-nodes-base.code",
|
"type": "n8n-nodes-base.code",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
"position": [
|
"position": [
|
||||||
800,
|
528,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "4a37a2a6-3138-455b-8806-288d852873a6",
|
"id": "4a37a2a6-3138-455b-8806-288d852873a6",
|
||||||
"name": "Code - Preparar filas Fulgencio"
|
"name": "Code - Preparar filas Fulgencio"
|
||||||
@@ -759,8 +776,8 @@
|
|||||||
"type": "n8n-nodes-base.if",
|
"type": "n8n-nodes-base.if",
|
||||||
"typeVersion": 2.3,
|
"typeVersion": 2.3,
|
||||||
"position": [
|
"position": [
|
||||||
1008,
|
736,
|
||||||
0
|
96
|
||||||
],
|
],
|
||||||
"id": "5b14f1ea-8203-4daf-8f14-b39da2a7dc97",
|
"id": "5b14f1ea-8203-4daf-8f14-b39da2a7dc97",
|
||||||
"name": "IF - Tiene filas para escribir?"
|
"name": "IF - Tiene filas para escribir?"
|
||||||
@@ -774,8 +791,8 @@
|
|||||||
"type": "n8n-nodes-base.respondToWebhook",
|
"type": "n8n-nodes-base.respondToWebhook",
|
||||||
"typeVersion": 1.5,
|
"typeVersion": 1.5,
|
||||||
"position": [
|
"position": [
|
||||||
1520,
|
1248,
|
||||||
-96
|
0
|
||||||
],
|
],
|
||||||
"id": "c221409e-9777-4453-afa1-ad8bc7107910",
|
"id": "c221409e-9777-4453-afa1-ad8bc7107910",
|
||||||
"name": "Respond to Webhook"
|
"name": "Respond to Webhook"
|
||||||
@@ -789,8 +806,8 @@
|
|||||||
"type": "n8n-nodes-base.respondToWebhook",
|
"type": "n8n-nodes-base.respondToWebhook",
|
||||||
"typeVersion": 1.5,
|
"typeVersion": 1.5,
|
||||||
"position": [
|
"position": [
|
||||||
1216,
|
944,
|
||||||
96
|
192
|
||||||
],
|
],
|
||||||
"id": "363e5ac4-43be-4a9e-afd0-923bec81a017",
|
"id": "363e5ac4-43be-4a9e-afd0-923bec81a017",
|
||||||
"name": "Respond to Webhook1"
|
"name": "Respond to Webhook1"
|
||||||
@@ -1090,8 +1107,8 @@
|
|||||||
"type": "n8n-nodes-base.googleSheets",
|
"type": "n8n-nodes-base.googleSheets",
|
||||||
"typeVersion": 4.7,
|
"typeVersion": 4.7,
|
||||||
"position": [
|
"position": [
|
||||||
1312,
|
1040,
|
||||||
-96
|
0
|
||||||
],
|
],
|
||||||
"id": "f3bee0f1-50da-4908-923f-51b17a2dbbdc",
|
"id": "f3bee0f1-50da-4908-923f-51b17a2dbbdc",
|
||||||
"name": "Google Sheets - Upsert Banco Fulgencio",
|
"name": "Google Sheets - Upsert Banco Fulgencio",
|
||||||
@@ -1101,6 +1118,22 @@
|
|||||||
"name": "Google Sheets account 2"
|
"name": "Google Sheets account 2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parameters": {
|
||||||
|
"content": "# 🔄 SYNC TABLERO CDC → BANCO FULGENCIO\n\nSincroniza automáticamente un proyecto del Tablero CDC con el Banco de Propuestas de Fulgencio.\n\nFuncionamiento:\n\n1. Recibe mediante Webhook el identificador del proyecto.\n2. Normaliza y valida el project_id recibido.\n3. Consulta en Supabase los datos principales del proyecto.\n4. Recupera los enlaces asociados, como propuestas, presentaciones y artes finales.\n5. Convierte la información al formato requerido por el Banco Fulgencio.\n6. Valida si existen filas aptas para escribir.\n7. Inserta o actualiza el proyecto en Google Sheets.\n8. Devuelve al sistema solicitante el resultado de la sincronización.\n\nDatos procesados:\n\n- Identificador del proyecto.\n- Nombre o descripción de la propuesta.\n- Cliente y marca.\n- País o unidad de negocio.\n- Responsable del proyecto.\n- Estado y fechas disponibles.\n- Enlaces relacionados con la propuesta.\n- Información necesaria para las consultas de Fulgencio.\n\nReglas:\n\n- Supabase es la fuente oficial de los datos del proyecto.\n- Los enlaces se consultan por separado y se relacionan mediante el project_id.\n- El Upsert actualiza una fila existente o crea una nueva, evitando duplicados.\n- Solo se escribe cuando existe información válida para el Banco Fulgencio.\n- Si no hay filas procesables, el flujo termina correctamente sin modificar el Sheet.\n- Ambas ramas responden al Webhook para evitar solicitudes abiertas o tiempos de espera.",
|
||||||
|
"height": 960,
|
||||||
|
"width": 1792,
|
||||||
|
"color": "#24555C"
|
||||||
|
},
|
||||||
|
"type": "n8n-nodes-base.stickyNote",
|
||||||
|
"typeVersion": 1,
|
||||||
|
"position": [
|
||||||
|
-336,
|
||||||
|
-624
|
||||||
|
],
|
||||||
|
"id": "f561433a-a85c-497c-b3ef-fd36eef3b0b6",
|
||||||
|
"name": "Sticky Note"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"connections": {
|
"connections": {
|
||||||
@@ -1190,15 +1223,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authors": "Isaac Aracena",
|
"authors": "Isaac Aracena",
|
||||||
"name": "Version 5d61630a",
|
"name": "Version 5b0c04ba",
|
||||||
"description": "",
|
"description": "",
|
||||||
"autosaved": true,
|
"autosaved": true,
|
||||||
"workflowPublishHistory": [
|
"workflowPublishHistory": [
|
||||||
{
|
{
|
||||||
"createdAt": "2026-06-16T13:12:19.591Z",
|
"createdAt": "2026-07-13T16:06:34.406Z",
|
||||||
"id": 1416,
|
"id": 2847,
|
||||||
"workflowId": "k2NNakqj2TaP0HKy",
|
"workflowId": "k2NNakqj2TaP0HKy",
|
||||||
"versionId": "5d61630a-1078-4e90-b0d0-2586454f1878",
|
"versionId": "5b0c04ba-7275-4352-b6af-323cd6ead268",
|
||||||
"event": "activated",
|
"event": "activated",
|
||||||
"userId": "0a88c0b1-928e-4412-896e-c5d1c99b2029"
|
"userId": "0a88c0b1-928e-4412-896e-c5d1c99b2029"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user