{
  "name": "🚚 CO2 emissions of freight shipments with Carbon Interface API and GPT-4o",
  "nodes": [
    {
      "id": "dc20a34f-90ff-4f4e-a2f7-7b77abb92f4c",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -320,
        415
      ]
    },
    {
      "id": "984a0707-919c-4c67-b070-6b1caaea2946",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        140,
        600
      ]
    },
    {
      "id": "de58b711-25ef-42f7-a5ab-4bc1d20fd1fc",
      "name": "AI Agent Parser",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -100,
        415
      ]
    },
    {
      "id": "05ca643f-774c-40a5-843f-76790c42d433",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -100,
        620
      ]
    },
    {
      "id": "fb16f384-e73f-4c3f-be72-24fede7b2760",
      "name": "Collect CO2 Emissions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        420
      ]
    },
    {
      "id": "82c2db80-9a3a-421b-ad27-097a713fc3c2",
      "name": "Load Results",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        920,
        420
      ]
    },
    {
      "id": "94cd225d-1bc0-42b5-a466-7fad8b445e94",
      "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 **shipment records**.\n\n#### How to setup?\n- **Gmail Trigger Node"
      }
    },
    {
      "id": "3e4989f9-2ef4-4c60-98cc-d8b988162e54",
      "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 an email to extract structured information about a **shipment**, including **pickup/delivery times**, **addresses**, **car"
      }
    },
    {
      "id": "7dc4dab6-2536-4373-b058-7487fc968c33",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -60
      ],
      "parameters": {
        "width": 1180,
        "height": 820,
        "content": "### 3. Record Shipment Request Information and fetch emissions using the Carbon Interface API  \nThis starts by recording all the structured shipment information parsed by the AI Agent node. Then, we u"
      }
    },
    {
      "id": "a51645cd-d3fe-4c3f-a7af-9bdd31eb9242",
      "name": "Record Shipment Information",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        420,
        420
      ]
    }
  ],
  "connections": {
    "Load Results": {
      "main": [
        []
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "AI Agent Parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Parser": {
      "main": [
        [
          {
            "node": "Record Shipment 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 Shipment Information": {
      "main": [
        [
          {
            "node": "Collect CO2 Emissions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}