{
  "name": "✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o",
  "nodes": [
    {
      "id": "16cb6418-383a-409e-ac18-8ba78aba031b",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -320,
        415
      ]
    },
    {
      "id": "5c7c052e-9a71-4867-9d05-492dac9a8b7c",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        140,
        600
      ]
    },
    {
      "id": "c0eeae42-d3dd-400e-8d19-1068f4ab999d",
      "name": "AI Agent Parser",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -100,
        415
      ]
    },
    {
      "id": "2a30a34e-76d2-4d89-a5f9-cf48f97f490e",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -100,
        620
      ]
    },
    {
      "id": "f0eb3490-4f5f-42ca-83fa-0a562a08d630",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        320,
        420
      ]
    },
    {
      "id": "c7bb9d8b-a972-4d53-8217-8e77c29dda81",
      "name": "Record Flights Information",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        840,
        360
      ]
    },
    {
      "id": "9a3da134-6af3-4130-9420-7efbd4d47d17",
      "name": "Loop Over Flights",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        540,
        420
      ]
    },
    {
      "id": "8fa6af96-da24-449f-ab07-7c26eebf82e1",
      "name": "Collect CO2 Emissions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        360
      ]
    },
    {
      "id": "0a297fa4-3ea0-485d-901e-48f8e3d32840",
      "name": "Load Results",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1300,
        420
      ]
    },
    {
      "id": "943097a7-84b2-4be1-a65a-711a8350daad",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -60
      ],
      "parameters": {
        "width": 180,
        "height": 820,
        "content": "### 1. Workflow Trigger with Gmail Trigger\nThe workflow is triggered by a new email received in your Gmail mailbox dedicated to process **flight schedules**.\n\n#### How to setup?\n- **Gmail Trigger Node"
      }
    },
    {
      "id": "38d4649e-87c0-4bd6-b822-b88ff68309cc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -60
      ],
      "parameters": {
        "width": 440,
        "height": 820,
        "content": "### 2. AI Agent to trip schedule report\nThis node will analyze the content of the email to extract information about the trip including **departure** and **return** trips with **airport codes** and bo"
      }
    },
    {
      "id": "01acc971-5482-4e00-846b-584660ec30ab",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -60
      ],
      "parameters": {
        "width": 1180,
        "height": 820,
        "content": "### 3. Record Shipment Request Information and fetch distance and driving time using Open Route API\nThis starts by recording all the information parsed by the AI node. Then, we use the **Open Route AP"
      }
    }
  ],
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Flights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Results": {
      "main": [
        [
          {
            "node": "Loop Over Flights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "AI Agent Parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Parser": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Flights": {
      "main": [
        [],
        [
          {
            "node": "Record Flights Information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Collect CO2 Emissions": {
      "main": [
        [
          {
            "node": "Load Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Record Flights Information": {
      "main": [
        [
          {
            "node": "Collect CO2 Emissions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}