{
  "name": "AI Email Triage & Auto-Draft Responder \u2014 by Operstead",
  "tags": [],
  "nodes": [
    {
      "id": "d35ebd82-1e0d-477e-b3ed-bdd7d38f9b8e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c3bead6f-78ef-4390-a953-577cac462e5b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6d10a0d3-2fe9-4061-8818-f3336bb37bb2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        176
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cf38efd9-5349-455c-ab9c-e33b66676469",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0e5c23ea-3a77-4ebf-adc7-07fa1672a3e7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1824,
        112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b8ba9507-f706-4596-a537-9509e23ba180",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1824,
        448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "node-schedule",
      "name": "When Every 15 Minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        240,
        340
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "node-gmail-get",
      "name": "Fetch Unread Gmail Emails",
      "type": "n8n-nodes-base.gmail",
      "position": [
        460,
        340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "node-gmail-read",
      "name": "Mark Emails as Read in Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        680,
        340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "node-extract",
      "name": "Prepare Email Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        928,
        336
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "node-classify",
      "name": "AI Email Classifier",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1152,
        336
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "node-merge-class",
      "name": "Build AI Classification Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1376,
        336
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "node-route",
      "name": "Route by Email Category",
      "type": "n8n-nodes-base.switch",
      "position": [
        1600,
        336
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "node-spam-log",
      "name": "Append SPAM Log to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1872,
        624
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "node-draft-ai",
      "name": "AI Draft Email Responder",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1872,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "node-gmail-draft",
      "name": "Store Reply in Gmail Drafts",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2080,
        240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "node-slack",
      "name": "Post Draft Alert on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        2304,
        240
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "updatedAt": "2026-07-20T09:00:00.000Z",
  "versionId": "1",
  "staticData": null,
  "connections": {
    "AI Email Classifier": {
      "main": [
        [
          {
            "node": "Build AI Classification Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Email Fields": {
      "main": [
        [
          {
            "node": "AI Email Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Every 15 Minutes": {
      "main": [
        [
          {
            "node": "Fetch Unread Gmail Emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Email Category": {
      "main": [
        [
          {
            "node": "AI Draft Email Responder",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Draft Email Responder",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Append SPAM Log to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Draft Email Responder": {
      "main": [
        [
          {
            "node": "Store Reply in Gmail Drafts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Unread Gmail Emails": {
      "main": [
        [
          {
            "node": "Mark Emails as Read in Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Reply in Gmail Drafts": {
      "main": [
        [
          {
            "node": "Post Draft Alert on Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build AI Classification Data": {
      "main": [
        [
          {
            "node": "Route by Email Category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark Emails as Read in Gmail": {
      "main": [
        [
          {
            "node": "Prepare Email Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 0
}