{
  "name": "Auto-categorize Gmail emails with AI and send prioritized Slack alerts",
  "nodes": [
    {
      "id": "cfcf1f18-7faa-408d-9cb6-a7eb7fab5886",
      "name": "Trigger on Unread Email",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -368,
        224
      ]
    },
    {
      "id": "96e9c067-b27e-437c-9ea7-16e46cf1f09d",
      "name": "Get Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -144,
        224
      ]
    },
    {
      "id": "d7d471c3-65e2-43d6-8472-31d278171fd9",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        80,
        224
      ]
    },
    {
      "id": "c906a662-dfe5-4bb7-ad61-5b472d4027bc",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        88,
        448
      ]
    },
    {
      "id": "ce9714c6-1d15-470b-a805-1041a7a63571",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        216,
        448
      ]
    },
    {
      "id": "360cf165-a32a-4aa8-8770-af244fe67995",
      "name": "Routing Map",
      "type": "n8n-nodes-base.set",
      "position": [
        432,
        224
      ]
    },
    {
      "id": "39e36a35-33f9-4f1b-a38d-cfffd4ba8127",
      "name": "Send Notification to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        224
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Routing Map",
            "type": "main",
            "index": 0
          }
        ]
      ],
      "ai_outputParser": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ],
      "ai_languageModel": [
        [
          {
            "node": "OpenAI Chat Model",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Email": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Routing Map": {
      "main": [
        [
          {
            "node": "Send Notification to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger on Unread Email": {
      "main": [
        [
          {
            "node": "Get Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}