Factoris Logo

¿Qué proceso de tu empresa te gustaría automatizar con IA?

IA para Pymes: de la teoría a la práctica

Recursos, herramientas y materiales del taller para que puedas aplicar Inteligencia Artificial en tu empresa desde hoy.

Recursos y Toolbox

Herramientas de IA que una Pyme puede usar hoy

No hace falta ser una empresa tecnológica para empezar a usar Inteligencia Artificial. Estas herramientas permiten automatizar tareas, mejorar la toma de decisiones y ahorrar tiempo en procesos repetitivos.

Automatización con N8N

Clasificá documentos automáticamente con IA

Este workflow de N8N usa Google Gemini para clasificar automáticamente tus documentos (facturas, recibos de sueldo, contratos) y organizarlos en carpetas de Google Drive.

¿Qué hace este workflow?

Detecta nuevos archivos en una carpeta de Google Drive, los analiza con IA, los clasifica automáticamente y los mueve a la carpeta correspondiente. Todo sin intervención manual.

Pasos para implementarlo

01

Crear cuenta en N8N

Registrate en N8N para comenzar a automatizar tus procesos.

Ir a N8N
02

Obtener API Key de Google Gemini

Necesitás una API Key de Google Gemini para que la IA pueda clasificar tus documentos.

Obtener API Key
03

Copiar el workflow

Copiá el código JSON del workflow que te proporcionamos abajo.

04

Importar en N8N

En N8N, andá a "Workflows" → "Import from File" o "Import from URL" y pegá el código copiado.

05

Configurar credenciales

Conectá tu cuenta de Google Drive y agregá tu API Key de Gemini en las credenciales del workflow.

Código del Workflow

{
  "nodes": [
    {
      "parameters": {
        "resource": "document",
        "modelId": {
          "__rl": true,
          "value": "models/gemini-2.5-flash",
          "mode": "list"
        },
        "text": "Analizá el documento y clasificalo como UNA sola categoría entre: FACTURA, RECIBO_SUELDO o CONTRATO. Respondé únicamente en JSON válido con este formato exacto: { \"categoria\": \"FACTURA\" }",
        "inputType": "binary",
        "options": {}
      },
      "id": "43a2cba7-bb15-48d3-9418-6ef2964bd457",
      "name": "Clasificar Documento",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1,
      "position": [
        -1520,
        864
      ],
      "credentials": {
        "googlePalmApi": {
          "id": "qIki2KEhtQnl4oYO",
          "name": "Google Gemini(PaLM) Api account"
        }
      }
    },
    {
      "parameters": {
        "resource": "fileFolder",
        "queryString": "={{ $json.categoria }}",
        "filter": {
          "folderId": {
            "__rl": true,
            "value": "1TNfQHnp5JawoqbnfOM9j9ULDc8TkwiTq",
            "mode": "list",
            "cachedResultName": "N8N",
            "cachedResultUrl": "https://drive.google.com/drive/folders/1TNfQHnp5JawoqbnfOM9j9ULDc8TkwiTq"
          },
          "whatToSearch": "folders"
        },
        "options": {}
      },
      "id": "b8727fe0-ad40-4a66-bb47-dff9cee9b6af",
      "name": "Buscar Carpeta",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        -1120,
        768
      ],
      "alwaysOutputData": true,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "BJipIIAkXfhU8Vgb",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{ $json.id }}",
              "operation": "isNotEmpty"
            }
          ]
        }
      },
      "id": "493acddf-5a20-4773-a454-33beffd1b6f8",
      "name": "¿Carpeta Existe?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        -928,
        768
      ]
    },
    {
      "parameters": {
        "resource": "folder",
        "name": "={{ $('Code in JavaScript').item.json.categoria }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "1TNfQHnp5JawoqbnfOM9j9ULDc8TkwiTq",
          "mode": "list",
          "cachedResultName": "N8N",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1TNfQHnp5JawoqbnfOM9j9ULDc8TkwiTq"
        },
        "options": {}
      },
      "id": "c7cff480-8e6b-43c7-835c-ca3459361cc0",
      "name": "Crear Carpeta",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        -672,
        896
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "BJipIIAkXfhU8Vgb",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "operation": "move",
        "fileId": {
          "__rl": true,
          "value": "={{ $node[\"Drive Trigger1\"].json[\"id\"] }}",
          "mode": "id"
        },
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $json.id }}",
          "mode": "id"
        }
      },
      "id": "e280c408-d17b-45c2-8010-46314c3abce1",
      "name": "Mover a Carpeta Existente",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        -672,
        704
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "BJipIIAkXfhU8Vgb",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "operation": "move",
        "fileId": "={{ $node[\"Drive Trigger1\"].json[\"id\"] }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": "={{ $json.id }}"
      },
      "id": "794a649a-b880-477b-9498-4fa50863af0a",
      "name": "Mover a Carpeta Nueva",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        -480,
        896
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "BJipIIAkXfhU8Vgb",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "value": "1TNfQHnp5JawoqbnfOM9j9ULDc8TkwiTq",
          "mode": "list",
          "cachedResultName": "N8N",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1TNfQHnp5JawoqbnfOM9j9ULDc8TkwiTq"
        },
        "event": "fileUpdated",
        "options": {}
      },
      "id": "328fb27e-5ee8-47cd-b13f-e23aac383636",
      "name": "Drive Trigger1",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "typeVersion": 1,
      "position": [
        -1968,
        864
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "BJipIIAkXfhU8Vgb",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": "={{ $json[\"id\"] }}",
        "options": {}
      },
      "id": "0289861a-99ba-4f7d-9a4e-7feb00cfdd56",
      "name": "Descargar Archivo1",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        -1776,
        864
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "BJipIIAkXfhU8Vgb",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "let raw = $json.content?.parts?.[0]?.text;\n\nif (!raw) {\n  return [{ json: { categoria: \"ERROR_NO_RESPONSE\" } }];\n}\n\nraw = raw.replace(/```json/g, '').replace(/```/g, '').trim();\n\nlet categoria = \"ERROR_PARSE\";\n\ntry {\n  const parsed = JSON.parse(raw);\n  categoria = parsed.categoria || \"ERROR_SIN_CATEGORIA\";\n} catch (e) {\n  categoria = \"ERROR_JSON_INVALIDO\";\n}\n\nreturn [{ json: { categoria } }];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -1312,
        864
      ],
      "id": "ccfc5b96-ccf3-4cc9-9bb0-14c6a1b5f04d",
      "name": "Code in JavaScript"
    }
  ],
  "connections": {
    "Clasificar Documento": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Buscar Carpeta": {
      "main": [
        [
          {
            "node": "¿Carpeta Existe?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "¿Carpeta Existe?": {
      "main": [
        [
          {
            "node": "Mover a Carpeta Existente",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Crear Carpeta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crear Carpeta": {
      "main": [
        [
          {
            "node": "Mover a Carpeta Nueva",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Drive Trigger1": {
      "main": [
        [
          {
            "node": "Descargar Archivo1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Descargar Archivo1": {
      "main": [
        [
          {
            "node": "Clasificar Documento",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Buscar Carpeta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "5dd53ee3aa51d4b048fa5346baf7f4ebffcfed065e0677c394fe81cf376a2014"
  }
}
Siguiente Paso

Llevemos esto a tu empresa

Cada empresa tiene definido sus proceso de manera diferentes. Podemos analizar en conjunto casos concretos y ver qué oportunidades de mejora existen.

  • Revisamos hasta tres (3) procesos puntales de tu empresa
  • Evaluamos automatizaciones posibles con IA
  • Armamos una propuesta a medida
Agendar una reunión