{
  "name": "Flexible currency rate uploads for SAP B1 with AI validation & multiple sources",
  "nodes": [
    {
      "id": "3995b39d-8f9e-4ed8-9919-cfb8b7df4555",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -400,
        200
      ]
    },
    {
      "id": "c0fca1fe-e89f-448f-914a-986609e349ab",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        120,
        160
      ]
    },
    {
      "id": "f47c38b0-67fa-4f0d-98c6-b088253fe06f",
      "name": "Enviar SAP (JSON)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1140,
        -180
      ]
    },
    {
      "id": "51aa4842-0177-40d4-9931-cdf90b09f9d8",
      "name": "Conectar SAP",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -160,
        200
      ]
    },
    {
      "id": "b5fb4c29-f1ca-4dca-b830-975ed1a5d76e",
      "name": "Microsoft SQL",
      "type": "n8n-nodes-base.microsoftSql",
      "position": [
        660,
        40
      ]
    },
    {
      "id": "591a6fab-dfc2-4c23-889a-dc82701cbe8b",
      "name": "Extraer Query",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        40
      ]
    },
    {
      "id": "293eaf33-7cb3-4b0e-a37e-513607fdca83",
      "name": "Enviar SAP (SQL)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        40
      ]
    },
    {
      "id": "99a4e171-2b5a-447c-bbf6-a6d29c82084c",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        880,
        40
      ]
    },
    {
      "id": "08588a10-01f2-4e3d-86f6-ee7a4393d986",
      "name": "Enviar SAP (MANUAL)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        440,
        700
      ]
    },
    {
      "id": "15295241-b9d4-4019-a24d-f902e789a49e",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        420,
        -180
      ]
    },
    {
      "id": "86f8976a-1715-4192-9228-14ae2a451631",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        880,
        -180
      ]
    },
    {
      "id": "77b9008d-ff45-4ce9-866d-178fa4d0f2c4",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        420,
        340
      ]
    },
    {
      "id": "cd66ebf5-9266-47dd-9e46-012a64f06fdb",
      "name": "Enviar SAP (SHEET)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        340
      ]
    },
    {
      "id": "fe249d41-6cf2-4bee-bc02-16abb9c58339",
      "name": "Success",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1420,
        -380
      ]
    },
    {
      "id": "54807d8b-df01-4932-8f65-750853fe828c",
      "name": "Fallo",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1420,
        -200
      ]
    },
    {
      "id": "b32f9a30-3ba4-4b45-9bb5-edd3feca7277",
      "name": "Success1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1860,
        -100
      ]
    },
    {
      "id": "f41ae072-181a-4480-bb4a-759418409e6f",
      "name": "Comprobar Fecha",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1120,
        40
      ]
    },
    {
      "id": "88eed1d3-bf5e-4338-b829-a7031134bcba",
      "name": "Fallo1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1860,
        120
      ]
    },
    {
      "id": "6def1d6b-c496-4cb4-91e3-683fe346ffcf",
      "name": "Success2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        900,
        220
      ]
    },
    {
      "id": "68da45f2-3480-4133-b71c-a2116eff7e25",
      "name": "Fallo2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        900,
        440
      ]
    },
    {
      "id": "d4bcbae9-d8b8-4e0d-aabb-290adb3a3a84",
      "name": "Success3",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        660,
        580
      ]
    },
    {
      "id": "029f31d2-3c97-4a66-83f9-e2405053d32c",
      "name": "Fallo3",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        660,
        780
      ]
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Comprobar Fecha",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extraer Query",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Enviar SAP (MANUAL)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Conectar SAP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Enviar SAP (JSON)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conectar SAP": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extraer Query": {
      "main": [
        [
          {
            "node": "Microsoft SQL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Enviar SAP (SHEET)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Microsoft SQL": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Comprobar Fecha": {
      "main": [
        [
          {
            "node": "Enviar SAP (SQL)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enviar SAP (SQL)": {
      "main": [
        [
          {
            "node": "Success1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallo1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enviar SAP (JSON)": {
      "main": [
        [
          {
            "node": "Success",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enviar SAP (SHEET)": {
      "main": [
        [
          {
            "node": "Success2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallo2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enviar SAP (MANUAL)": {
      "main": [
        [
          {
            "node": "Success3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallo3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}