{
  "name": "Automated email triage with Gmail, GPT-4o, and Slack urgency notifications",
  "nodes": [
    {
      "id": "19658d53-51a2-4566-a57e-da51db7b68d1",
      "name": "Schedule Trigger1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -800,
        1344
      ]
    },
    {
      "id": "5379bec6-cb2c-4974-ae39-f35871d797ab",
      "name": "Get many messages",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -400,
        1344
      ]
    },
    {
      "id": "f25dadff-b33b-4be1-aac3-1c695b39ef93",
      "name": "Get many labels",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -608,
        1344
      ]
    },
    {
      "id": "8508ce2a-7394-4ed4-88a1-31f1e21963dd",
      "name": "Message a model1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -208,
        1344
      ]
    },
    {
      "id": "e24a7261-6f06-4c2e-949b-37f3b4b78347",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        416,
        1344
      ]
    },
    {
      "id": "892e956a-c199-42fa-a20c-d7302f0e515b",
      "name": "Send a message2",
      "type": "n8n-nodes-base.slack",
      "position": [
        624,
        1248
      ]
    },
    {
      "id": "bd4eb9b3-93a1-4a89-8926-892b75cda489",
      "name": "Add label to message2",
      "type": "n8n-nodes-base.gmail",
      "position": [
        624,
        1424
      ]
    },
    {
      "id": "aeb25e82-853f-4138-a587-354e6153bb07",
      "name": "Add label to message3",
      "type": "n8n-nodes-base.gmail",
      "position": [
        880,
        1248
      ]
    },
    {
      "id": "601a7bea-42cb-44c2-9196-8304ef472f28",
      "name": "Send a message3",
      "type": "n8n-nodes-base.slack",
      "position": [
        464,
        1680
      ]
    },
    {
      "id": "cd80d190-f7de-4931-8b06-62cbe4957a47",
      "name": "Calculate Intent",
      "type": "n8n-nodes-base.code",
      "position": [
        176,
        1344
      ]
    },
    {
      "id": "a3acbae8-087a-47c5-9eb6-90a69ccedf8e",
      "name": "Append row in sheet1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1152,
        1248
      ]
    },
    {
      "id": "ab2a0b67-a248-42ea-b18c-81b658aaf9fa",
      "name": "Append row in sheet2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        896,
        1424
      ]
    },
    {
      "id": "c361b887-c8e0-4644-96df-ce6cf8b35ef2",
      "name": "Get row(s) from sheet2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -320,
        1680
      ]
    },
    {
      "id": "a534c64b-b747-44b5-8f03-483c6408dd02",
      "name": "Filter timestamp",
      "type": "n8n-nodes-base.code",
      "position": [
        -48,
        1680
      ]
    },
    {
      "id": "4d788dea-84fc-41e4-a7a7-880a58b68bbf",
      "name": "Daily Digest Preparation",
      "type": "n8n-nodes-base.code",
      "position": [
        240,
        1680
      ]
    },
    {
      "id": "6dddd9fa-fd59-4df0-9741-fea2382bb982",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -560,
        1680
      ]
    },
    {
      "id": "7e0d1871-1844-4d85-b512-6cb3fec2a5c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        1200
      ],
      "parameters": {
        "width": 640,
        "height": 736,
        "content": "✅ Steps to Use\n\nConnect Your Accounts: Add your Gmail, Slack, Google Sheets, and OpenAI credentials inside n8n.\n\nCreate Gmail Labels (Required): Go to your Gmail settings and create labels matching th"
      }
    }
  ],
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Send a message2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add label to message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Get row(s) from sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many labels": {
      "main": [
        [
          {
            "node": "Get many messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message2": {
      "main": [
        [
          {
            "node": "Add label to message3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Intent": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter timestamp": {
      "main": [
        [
          {
            "node": "Daily Digest Preparation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model1": {
      "main": [
        [
          {
            "node": "Calculate Intent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages": {
      "main": [
        [
          {
            "node": "Message a model1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Get many labels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet2": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add label to message2": {
      "main": [
        [
          {
            "node": "Append row in sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add label to message3": {
      "main": [
        [
          {
            "node": "Append row in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) from sheet2": {
      "main": [
        [
          {
            "node": "Filter timestamp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Digest Preparation": {
      "main": [
        [
          {
            "node": "Send a message3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}