{
  "name": "Create Bosta shipping orders from Odoo invoices using OpenAI GPT models",
  "nodes": [
    {
      "id": "e92ff16e-a1cf-4024-9ff3-6be05dae939f",
      "name": "Main Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9328,
        -960
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "52ebea09-73ea-4f21-ba2d-44677b3ad439",
      "name": "Section 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9840,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7ea97468-33aa-4ae5-bbf6-28d3d2719d1b",
      "name": "Section 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10832,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d9aa8441-b616-4646-8f8d-13862a108940",
      "name": "Section 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11424,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "141a4472-63e4-442b-92ae-c88cd2567a46",
      "name": "Section 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11888,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bb11ddc0-1275-40c3-b362-57cd8dd04aff",
      "name": "Section 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        12640,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "945befbd-272f-4a99-a390-c2adb0be4534",
      "name": "Receive Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        9888,
        -704
      ]
    },
    {
      "id": "66ac60ee-0a61-452c-a776-346a0047fc3b",
      "name": "Get Invoice",
      "type": "n8n-nodes-base.odoo",
      "position": [
        10304,
        -704
      ]
    },
    {
      "id": "76fc6ace-556e-4d43-9113-331699335132",
      "name": "Get Customer",
      "type": "n8n-nodes-base.odoo",
      "position": [
        10096,
        -704
      ]
    },
    {
      "id": "335e5233-6167-4d9c-b01a-4d45f255c469",
      "name": "Get Line Items",
      "type": "n8n-nodes-base.odoo",
      "position": [
        10656,
        -704
      ]
    },
    {
      "id": "3332e590-8450-4d8f-9aa7-87c0489e6319",
      "name": "Split Lines",
      "type": "n8n-nodes-base.code",
      "position": [
        10480,
        -704
      ]
    },
    {
      "id": "db9f477c-a891-4f92-8b4f-748ac07131b2",
      "name": "Create Bosta Order",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        12368,
        -688
      ]
    },
    {
      "id": "a6acc428-7ee9-47f5-a47a-6aa58967d591",
      "name": "Map Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        11904,
        -688
      ]
    },
    {
      "id": "cadf84ea-6ca3-4324-8f95-0e3530e1b103",
      "name": "Fetch Zones",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        11088,
        -704
      ]
    },
    {
      "id": "403632d7-fb3c-4c49-9365-560516c6c740",
      "name": "Prep AI Context",
      "type": "n8n-nodes-base.code",
      "position": [
        11280,
        -704
      ]
    },
    {
      "id": "61b037d3-ea79-445c-af0a-73bb24f7d91e",
      "name": "GPT Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        11456,
        -400
      ]
    },
    {
      "id": "57f5cff3-57d1-4333-900f-889bfa372fad",
      "name": "Classify Address",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        11520,
        -688
      ]
    },
    {
      "id": "59147f01-f061-48bb-9255-7ca2f0762e5b",
      "name": "GPT Model 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        11616,
        -432
      ]
    },
    {
      "id": "e021c388-5618-4f23-8489-816dd2193026",
      "name": "Round COD",
      "type": "n8n-nodes-base.code",
      "position": [
        12112,
        -688
      ]
    },
    {
      "id": "be768155-cdcd-4f64-9cf0-f18bf7885f60",
      "name": "Summarize Items",
      "type": "n8n-nodes-base.code",
      "position": [
        10880,
        -704
      ]
    },
    {
      "id": "9c4d9ab8-bdb5-46b7-b1be-1539f731fcd5",
      "name": "Alert Failure",
      "type": "n8n-nodes-base.telegram",
      "position": [
        12736,
        -672
      ]
    }
  ],
  "connections": {
    "GPT Model": {
      "ai_languageModel": [
        [
          {
            "node": "Classify Address",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Round COD": {
      "main": [
        [
          {
            "node": "Create Bosta Order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map Fields": {
      "main": [
        [
          {
            "node": "Round COD",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Zones": {
      "main": [
        [
          {
            "node": "Prep AI Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Model 2": {
      "ai_languageModel": [
        [
          {
            "node": "Classify Address",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Get Invoice": {
      "main": [
        [
          {
            "node": "Split Lines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Lines": {
      "main": [
        [
          {
            "node": "Get Line Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Customer": {
      "main": [
        [
          {
            "node": "Get Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Line Items": {
      "main": [
        [
          {
            "node": "Summarize Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prep AI Context": {
      "main": [
        [
          {
            "node": "Classify Address",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Trigger": {
      "main": [
        [
          {
            "node": "Get Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Items": {
      "main": [
        [
          {
            "node": "Fetch Zones",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Address": {
      "main": [
        [
          {
            "node": "Map Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Bosta Order": {
      "main": [
        [],
        [
          {
            "node": "Alert Failure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}