{
  "name": "Multi-account email classifier with AI, Gmail, Discord & Google Sheets",
  "nodes": [
    {
      "id": "7fe486a9-4155-46b0-919d-9415294d933b",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -220,
        1560
      ]
    },
    {
      "id": "2a7c6a45-1f8e-4e24-bc6d-46ae2f615157",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        1480
      ],
      "parameters": {
        "width": 460,
        "height": 280,
        "content": "## account1@gmail.com\n"
      }
    },
    {
      "id": "4029c86a-0a6e-4778-8f18-3938c01bbac3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        1780
      ],
      "parameters": {
        "width": 460,
        "height": 280,
        "content": "## account2@gmail.com\n\n"
      }
    },
    {
      "id": "44cab983-4b76-4d2b-85ba-7f2afd2b9751",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        2340
      ],
      "parameters": {
        "width": 460,
        "height": 240,
        "content": "## account4@gmail.com\n\n"
      }
    },
    {
      "id": "3f6baa23-ade2-47e3-98ab-84495358ffac",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        2080
      ],
      "parameters": {
        "width": 460,
        "height": 240,
        "content": "## account3@gmail.com\n\n"
      }
    },
    {
      "id": "58d2a3eb-cff8-49cb-9fa7-c8585007fe81",
      "name": "Gmail Trigger1",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -200,
        1860
      ]
    },
    {
      "id": "d04aabfe-27f2-43b7-8248-30c8792a1b9e",
      "name": "Gmail Trigger2",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -200,
        2400
      ]
    },
    {
      "id": "e712e083-bad9-43bc-ba5d-a8d4444eb840",
      "name": "Gmail Trigger3",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -200,
        2140
      ]
    },
    {
      "id": "26c242d1-6bdf-4f0b-9beb-96172766260c",
      "name": "Merge4",
      "type": "n8n-nodes-base.merge",
      "position": [
        380,
        1600
      ]
    },
    {
      "id": "a507c42c-48cf-4576-b1c9-0358e51ca7e0",
      "name": "medium4",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        2140
      ]
    },
    {
      "id": "ebf4ec42-b490-4fde-9905-b6020383f553",
      "name": "medium5",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        2400
      ]
    },
    {
      "id": "2ffcbca0-e8da-412a-bda8-c2f2fe203c6d",
      "name": "medium6",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        1860
      ]
    },
    {
      "id": "af0cf074-5659-4436-82b1-2feaf856b132",
      "name": "medium7",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        1560
      ]
    },
    {
      "id": "d0f33ea4-9c96-49b5-900e-d279ca19763a",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        360,
        2160
      ]
    },
    {
      "id": "06487c07-2f5f-47f4-80c2-4dcd3c6ae232",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        580,
        2160
      ]
    },
    {
      "id": "02168687-bbed-4b39-80de-423c2a2a77eb",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        540,
        2400
      ]
    },
    {
      "id": "2237dfc1-ac37-43c8-9e9b-ca5658695b2a",
      "name": "Get spam list",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        820,
        2400
      ]
    },
    {
      "id": "b5f66a06-791d-414b-b75e-97eb08bb1a41",
      "name": "Discord - reply1",
      "type": "n8n-nodes-base.discord",
      "position": [
        900,
        2160
      ]
    },
    {
      "id": "46628abc-5662-4ae5-b63a-115c36474722",
      "name": "Get a message in Discord",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        700,
        2400
      ]
    },
    {
      "id": "02cd39ce-397b-4793-a0f8-2987c19fbe3b",
      "name": "update spam list",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        960,
        2400
      ]
    },
    {
      "id": "0e411d2f-bf11-45cb-bc33-3710e60ce266",
      "name": "AI Agent2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        600,
        1600
      ]
    },
    {
      "id": "bbae2069-47d3-4f55-a114-a4a9207759ad",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        580,
        1800
      ]
    },
    {
      "id": "cbd46799-3228-4fb2-bdec-05419716c0c8",
      "name": "Get spam list1",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        700,
        1820
      ]
    },
    {
      "id": "e82f45cd-2c46-48c9-abfe-5c10910035ee",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        2080
      ],
      "parameters": {
        "width": 1060,
        "height": 500,
        "content": "## Update spam list"
      }
    },
    {
      "id": "ffe9fa99-a06a-4933-b05d-1fb3405c6966",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        1480
      ],
      "parameters": {
        "width": 1060,
        "height": 580,
        "content": "## Filter incoming message\n### Send important emails only"
      }
    },
    {
      "id": "88c45a39-408c-4afa-ac18-841139f12247",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        820,
        1820
      ]
    },
    {
      "id": "fd357e53-3a9e-4ade-8e5a-86f400f32e3a",
      "name": "Send a message",
      "type": "n8n-nodes-base.discord",
      "position": [
        1160,
        1580
      ]
    },
    {
      "id": "24d1119c-7982-4e88-a75a-f85b67ba0c6d",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        900,
        1600
      ]
    }
  ],
  "connections": {
    "If2": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge4": {
      "main": [
        [
          {
            "node": "AI Agent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "medium4": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "medium5": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "medium6": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "medium7": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Discord - reply1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent2": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get spam list": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "medium7",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get spam list1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger1": {
      "main": [
        [
          {
            "node": "medium6",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Gmail Trigger2": {
      "main": [
        [
          {
            "node": "medium5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Gmail Trigger3": {
      "main": [
        [
          {
            "node": "medium4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "update spam list": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get a message in Discord": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}