{
  "name": "Sort Gmail emails with GPT-4o into action required and no action labels",
  "nodes": [
    {
      "id": "bbccdd88-4e46-408a-b41f-38671ff56cea",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "1409b97b-fadd-43e7-a21a-20d1b3a26357",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        440,
        240
      ]
    },
    {
      "id": "f0398f84-c60b-4107-a9f6-20520abe65ab",
      "name": "Get Emails",
      "type": "n8n-nodes-base.gmail",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "112e2574-192f-4717-8a73-157d1e24d8c9",
      "name": "Add \"Action Required\" Label",
      "type": "n8n-nodes-base.gmail",
      "position": [
        900,
        -160
      ]
    },
    {
      "id": "bf8e00cf-b09e-4181-960b-b92a47b323aa",
      "name": "Email Classifier",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "8350d1b8-21f0-455e-9bfa-a4c7222f5242",
      "name": "Remove \"Inbox\" Label",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1140,
        -160
      ]
    },
    {
      "id": "704ed172-abf6-4203-b39e-d0f38ed4b41b",
      "name": "Add \"No Action\" Label",
      "type": "n8n-nodes-base.gmail",
      "position": [
        900,
        140
      ]
    },
    {
      "id": "d89eb342-9eae-4da9-a52a-211042fd59b0",
      "name": "Remove \"Inbox\"  Label",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1140,
        140
      ]
    },
    {
      "id": "0681e342-f582-4d3a-826f-42848432e1b7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -300
      ],
      "parameters": {
        "width": 460,
        "height": 400,
        "content": "🧱 NODE-BY-NODE BREAKDOWN\n⏰ 1. Schedule Trigger\n\nRuns the workflow on a set interval.\n📥 2. Get Emails\n\nFetches unread emails from your Gmail inbox.\n🧠 3. Email Classifier\n\nClassifies each email as Actio"
      }
    }
  ],
  "connections": {
    "Get Emails": {
      "main": [
        [
          {
            "node": "Email Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Classifier": {
      "main": [
        [
          {
            "node": "Add \"Action Required\" Label",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add \"No Action\" Label",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Email Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Add \"No Action\" Label": {
      "main": [
        [
          {
            "node": "Remove \"Inbox\"  Label",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add \"Action Required\" Label": {
      "main": [
        [
          {
            "node": "Remove \"Inbox\" Label",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}