{
  "name": "AI email classifier & auto-delete for Gmail (SPAM/OFFER cleaner)",
  "nodes": [
    {
      "id": "d3c54552-91c2-4b7f-b9ce-f6cf2a28d615",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -80,
        60
      ]
    },
    {
      "id": "322d373c-84c9-4b2a-a68a-fc977788f973",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        140,
        260
      ]
    },
    {
      "id": "39ace162-640d-4350-9d43-142d335752be",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        520,
        60
      ]
    },
    {
      "id": "89d0576e-1523-4684-9c7c-8af12464a648",
      "name": "Validator of Email",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        60
      ]
    },
    {
      "id": "30698570-1181-4164-8d19-3e944fcae486",
      "name": "Delate Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        780,
        60
      ]
    },
    {
      "id": "c1476511-b49b-410e-9665-47d04f26c92a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -260
      ],
      "parameters": {
        "width": 660,
        "height": 1060,
        "content": "### 📌 Workflow: Auto Spam/Marketing Offer Killer Copy\n\n**Description**  \nThis workflow automatically monitors your Gmail inbox and **classifies incoming emails** into one of three categories:\n\n- `SPAM"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Delate Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Validator of Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Validator of Email",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Validator of Email": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}