{
  "name": "Automate email categorization & response generation with Gmail & GPT-4",
  "nodes": [
    {
      "id": "759d4f88-c6de-4cee-af9a-628102d93200",
      "name": "📧 Gmail Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -800,
        464
      ]
    },
    {
      "id": "000229fb-153f-4db4-ad19-cda7b78f3b57",
      "name": "📩 Get Email Details",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -576,
        464
      ]
    },
    {
      "id": "daf62cc0-3dc9-4b67-801b-3c48eeb3d4df",
      "name": "🤖 AI Email Analyzer",
      "type": "n8n-nodes-base.openAi",
      "position": [
        -368,
        464
      ]
    },
    {
      "id": "cf1eba5b-6645-4b21-b5bb-d8cb4ae5015e",
      "name": "🚦 Priority Router",
      "type": "n8n-nodes-base.if",
      "position": [
        -144,
        464
      ]
    },
    {
      "id": "cbb52bdb-1065-4d4f-b09f-08e9367940f4",
      "name": "🚨 High Priority Alert",
      "type": "n8n-nodes-base.gmail",
      "position": [
        80,
        352
      ]
    },
    {
      "id": "b77a498a-001c-4029-a60a-1307dafa27fc",
      "name": "🛡️ Spam Detector",
      "type": "n8n-nodes-base.if",
      "position": [
        80,
        560
      ]
    },
    {
      "id": "1b7b3f23-01cb-42c0-8985-79696d0a38b2",
      "name": "🗑️ Move to Spam",
      "type": "n8n-nodes-base.gmail",
      "position": [
        304,
        656
      ]
    },
    {
      "id": "63ae92b9-71c5-41e9-82f7-606985a1e4f3",
      "name": "💬 Auto-Reply Detector",
      "type": "n8n-nodes-base.if",
      "position": [
        304,
        480
      ]
    },
    {
      "id": "778961c6-43d4-4624-abdb-3d6bebcf6249",
      "name": "📝 Create Reply Draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        528,
        352
      ]
    },
    {
      "id": "4a6f205f-80e6-42fc-be48-a672b76163ee",
      "name": "🏷️ Categorize Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        528,
        560
      ]
    },
    {
      "id": "9be9a801-9b54-45f2-a820-4a35dc7915bb",
      "name": "📊 Log to Spreadsheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        752,
        464
      ]
    },
    {
      "id": "0f78144e-bb3a-4065-b15e-3294750b13b7",
      "name": "✅ Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        960,
        464
      ]
    },
    {
      "id": "fe23603a-8174-48ee-8ebf-3cabf507ecd7",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -768,
        -320
      ],
      "parameters": {
        "width": 576,
        "height": 560,
        "content": "## Need a tailor-made workflow? Tell me about your business and get a free proposal:\n\n**[Start here → Custom Automation Form](https://taskmorphr.com/contact)**\n\n---\n## 📈 Cost-Savings Snapshot  \nCuriou"
      }
    },
    {
      "id": "4ca8fea5-6f43-41f9-9e68-e2dca7f73d8e",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        64
      ],
      "parameters": {
        "width": 224,
        "height": 128,
        "content": "### 🛠️ Build it yourself  \nBrowse every ready-made workflow:  \n[Full Template Pack — coming soon](https://n8n.io/creators/diagopl/)\n"
      }
    },
    {
      "id": "f2cbe293-04fa-48c4-8849-4637063becf3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        -304
      ],
      "parameters": {
        "width": 848,
        "height": 2272,
        "content": "# Gmail AI Email Manager - Setup Guide\n\n## 🎯 Workflow Overview\n\nThis workflow will create an intelligent Gmail email manager that can:\n- Monitor incoming emails via webhook\n- Analyze email content usi"
      }
    }
  ],
  "connections": {
    "🗑️ Move to Spam": {
      "main": [
        [
          {
            "node": "📊 Log to Spreadsheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🚦 Priority Router": {
      "main": [
        [
          {
            "node": "🚨 High Priority Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🛡️ Spam Detector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🛡️ Spam Detector": {
      "main": [
        [
          {
            "node": "🗑️ Move to Spam",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "💬 Auto-Reply Detector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📩 Get Email Details": {
      "main": [
        [
          {
            "node": "🤖 AI Email Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Email Analyzer": {
      "main": [
        [
          {
            "node": "🚦 Priority Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Log to Spreadsheet": {
      "main": [
        [
          {
            "node": "✅ Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Create Reply Draft": {
      "main": [
        [
          {
            "node": "🏷️ Categorize Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🏷️ Categorize Email": {
      "main": [
        [
          {
            "node": "📊 Log to Spreadsheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💬 Auto-Reply Detector": {
      "main": [
        [
          {
            "node": "📝 Create Reply Draft",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🏷️ Categorize Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🚨 High Priority Alert": {
      "main": [
        [
          {
            "node": "🏷️ Categorize Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📧 Gmail Webhook Trigger": {
      "main": [
        [
          {
            "node": "📩 Get Email Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}