{
  "name": "Export Dialogflow intents with priority levels to Google Sheets via Telegram",
  "nodes": [
    {
      "id": "2ee1d52e-e143-47e1-b3bc-22d0fd17528e",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        64,
        128
      ]
    },
    {
      "id": "4e8fe8a7-13e3-4cd9-9670-6e5a720da072",
      "name": "Añadir fila en la hoja",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1600,
        176
      ]
    },
    {
      "id": "63227264-c9f0-4c5a-aea1-a22e99ece365",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 896,
        "height": 480,
        "content": "## Se valida el usuario y comando enviado"
      }
    },
    {
      "id": "66dfded1-7af6-45f9-98ae-7fdedd75a644",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        80
      ],
      "parameters": {
        "width": 496,
        "height": 272,
        "content": "## Se obtiene la información de los intents y se procesa"
      }
    },
    {
      "id": "4ebfb516-ff02-4c53-9fee-82676ff3b3eb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        80
      ],
      "parameters": {
        "width": 576,
        "height": 272,
        "content": "## Registro en Sheets y confirmación por Telegram"
      }
    },
    {
      "id": "72b44433-2b77-4bc3-a31b-cbc04f3ecfd5",
      "name": "Validación de usuario por ID",
      "type": "n8n-nodes-base.if",
      "position": [
        288,
        128
      ]
    },
    {
      "id": "ca22c2d9-821a-4f15-8011-2e9f02361cc6",
      "name": "Validación del comando",
      "type": "n8n-nodes-base.if",
      "position": [
        480,
        32
      ]
    },
    {
      "id": "a383d91d-134c-43c1-b48b-e5d8024ff831",
      "name": "Mensaje de validación de comando",
      "type": "n8n-nodes-base.telegram",
      "position": [
        624,
        160
      ]
    },
    {
      "id": "778342fd-e973-4c30-b1d6-6fbd79187c5d",
      "name": "Obtiene datos de los intents",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        176
      ]
    },
    {
      "id": "730f58b8-bb78-471b-bde0-ba1a10ee8b24",
      "name": "Mensaje de confirmación",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1824,
        176
      ]
    },
    {
      "id": "7d18b6fa-39c1-46c4-8578-f90b357f3f36",
      "name": "Mensaje de usuario inválido",
      "type": "n8n-nodes-base.telegram",
      "position": [
        448,
        288
      ]
    },
    {
      "id": "d925126b-f8c9-4c68-836b-bfe769c70c57",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -272
      ],
      "parameters": {
        "width": 352,
        "height": 1008,
        "content": "## 🔄 Flujo explicado\n\n### 🎯 Trigger (Telegram)\n- **Se activa automáticamente** al recibir *cualquier mensaje* en el bot de Telegram.\n\n### 🛡️ Validación de Usuario y Comando\n- **Se valida el ID** del u"
      }
    },
    {
      "id": "ac3bf08d-e601-445d-9e48-13bb6a676f36",
      "name": "Mapear intents con su prioridad",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        176
      ]
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Validación de usuario por ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Añadir fila en la hoja": {
      "main": [
        [
          {
            "node": "Mensaje de confirmación",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validación del comando": {
      "main": [
        [
          {
            "node": "Obtiene datos de los intents",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mensaje de validación de comando",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Obtiene datos de los intents": {
      "main": [
        [
          {
            "node": "Mapear intents con su prioridad",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validación de usuario por ID": {
      "main": [
        [
          {
            "node": "Validación del comando",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mensaje de usuario inválido",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mapear intents con su prioridad": {
      "main": [
        [
          {
            "node": "Añadir fila en la hoja",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}