8
n8n 한국어amn8n.com

자동 스팸 및 마케팅 이메일 정리기

중급

이것은Other, Support, AI분야의자동화 워크플로우로, 6개의 노드를 포함합니다.주로 If, Gmail, GmailTrigger, Agent, LmChatOpenAi 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. GPT-4 및 Gmail을 사용한 스팸 메일 필터링 자동화

사전 요구사항
  • Google 계정 및 Gmail API 인증 정보
  • OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "3QJW0AkGeIq3ofcC",
  "meta": {
    "instanceId": "740c1df6d3b1b6ea8a9d2223701f6904173f9e3cf7381cd181644b043420ba09",
    "templateCredsSetupCompleted": true
  },
  "name": "Auto Spam & Marketing Email Killer",
  "tags": [],
  "nodes": [
    {
      "id": "83cad1fb-1c94-4fa6-abc6-fc9084e84b8a",
      "name": "Gmail 트리거",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -80,
        60
      ],
      "parameters": {
        "filters": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyHour"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "ECavbdGSgi3lNgZG",
          "name": "Gmail account 2"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "38c3a768-5152-4377-9fa7-065e58233ef2",
      "name": "OpenAI 채팅 모델",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        160,
        280
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-nano",
          "cachedResultName": "gpt-4.1-nano"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "69YTGxdIPy79gAdh",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4acc776b-0554-4a74-b10a-5307ee14fee2",
      "name": "조건문",
      "type": "n8n-nodes-base.if",
      "position": [
        520,
        60
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "3fa478cd-9476-4a10-b039-1e537b838b31",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.output }}",
              "rightValue": "SPAM"
            },
            {
              "id": "82bafdff-daed-4791-8dd0-dae981c0ee43",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.output }}",
              "rightValue": "OFERTA"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "a2440f83-73b8-4757-90cf-c0f4d269eb9b",
      "name": "이메일 검증기",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        60
      ],
      "parameters": {
        "text": "=Your email too check:\n {{ $json.snippet }}",
        "options": {
          "systemMessage": "=You are an intelligent assistant for analyzing and classifying email messages or contact forms.\n\nYour task is to carefully evaluate whether the message contains valuable information, or whether it is a standard marketing message with no real value to the recipient.\n\nWe distinguish three classes:\n\nSPAM – bulk messages, low-quality content, random text, scams, phishing, etc.\n\nOFFER – commercial or marketing messages that promote something but do not contain important information for the user, e.g.:\n\nDiscount coupons\n\nPromotion or sale notifications\n\nAbandoned cart reminders\n\nEncouragement to sign up, download, or buy\n\nCold emails and collaboration offers\n\nIMPORTANT – messages containing valuable or relevant information for the recipient, even if commercial in nature, e.g.:\n\nOrder or payment confirmation\n\nShipping or delivery status updates\n\nMessage from a specific person with a question or request\n\nPersonal matters, invitations, inquiries\n\nRules:\n\nIf you're unsure, better to classify as IMPORTANT.\n\nFocus on the message content, do not judge by the email address or headers.\n\nRespond with only one word: SPAM, OFFER, or IMPORTANT.\n\nExamples:\n\nMessage:\n“Your order #14235 has been shipped. Estimated delivery: Thursday.”\nAnswer: IMPORTANT\n📌 This is relevant information for the user – do not remove.\n\nMessage:\n“You left something in your cart! Only today –15% off your purchase!”\nAnswer: OFFER\n📌 Typical marketing reminder, no actual value.\n\nMessage:\n“Hi, we noticed you didn’t download our free e-book. Download now to discover 10 ways to boost sales.”\nAnswer: OFFER\n📌 Marketing prompt, lacks valuable content.\n\nMessage:\n“Attached is the invoice for the service completed last month. Please contact me with any questions.”\nAnswer: IMPORTANT\n📌 Invoice = important message.\n\nMessage:\n“Today only! Free shipping and discounts up to 30% in our store!”\nAnswer: OFFER\n📌 Promotion, typical sales message.\n\nMessage:\n“Hi, I saw your listing online and I’m interested in working with you. Can we talk by phone?”\nAnswer: IMPORTANT\n📌 Message from a real person = potential lead.\n\nMessage:\n“Win a new iPhone! Click here to claim your prize!”\nAnswer: SPAM\n📌 No need to explain – scam/spam.\n\nMessage:\n“I’d like to ask if you offer individual training sessions?”\nAnswer: IMPORTANT\n📌 A real inquiry from a potential customer.\n\nMessage:\n“Register now for free 7-day access to XYZ tool.”\nAnswer: OFFER\n📌 Advertising offer, not inherently important."
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "77b25fbd-4093-48d1-9230-6a765d60b928",
      "name": "이메일 삭제",
      "type": "n8n-nodes-base.gmail",
      "position": [
        760,
        60
      ],
      "webhookId": "8c6da755-63e5-43e6-a22b-c189a72e7e7b",
      "parameters": {
        "messageId": "={{ $('Gmail Trigger').item.json.id }}",
        "operation": "delete"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "ECavbdGSgi3lNgZG",
          "name": "Gmail account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "a994bc19-d3fd-43b0-8612-bb9dfdceff08",
      "name": "스티커 메모",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        40
      ],
      "parameters": {
        "width": 560,
        "height": 660,
        "content": "## 🧹 Auto Spam & Marketing Email Killer\n\nTired of promotional clutter in your inbox?  \nThis AI-powered n8n workflow automatically scans your Gmail inbox every hour, analyzes incoming messages using GPT-4, and deletes unwanted emails labeled as **SPAM** or **OFERR**.\n\n### 🔍 What it does\n- Triggers on new Gmail messages\n- Uses OpenAI to classify the message as: `IMPORTANT`, `OFFER`, or `SPAM`\n- Deletes emails marked as `SPAM` or `OFFER`\n- Keeps important messages like order confirmations, invoices, and personal inquiries\n\n### 🤖 Built-in Intelligence\nThe AI agent is trained with 9 real examples to ensure precise classification of marketing emails, phishing, cold outreach, and more.\n\n### 📦 Ideal for:\n- Solopreneurs\n- Business inboxes\n- Clean-inbox enthusiasts\n\nSet it once, and enjoy a distraction-free email experience.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0bbcd957-fdb2-4d3d-ac6b-f25903bbe301",
  "connections": {
    "4acc776b-0554-4a74-b10a-5307ee14fee2": {
      "main": [
        [
          {
            "node": "77b25fbd-4093-48d1-9230-6a765d60b928",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "83cad1fb-1c94-4fa6-abc6-fc9084e84b8a": {
      "main": [
        [
          {
            "node": "a2440f83-73b8-4757-90cf-c0f4d269eb9b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "38c3a768-5152-4377-9fa7-065e58233ef2": {
      "ai_languageModel": [
        [
          {
            "node": "a2440f83-73b8-4757-90cf-c0f4d269eb9b",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "a2440f83-73b8-4757-90cf-c0f4d269eb9b": {
      "main": [
        [
          {
            "node": "4acc776b-0554-4a74-b10a-5307ee14fee2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 기타, 지원, 인공지능

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수6
카테고리3
노드 유형6
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

저자
LukaszB

LukaszB

@lukaszb

AI Automation Expert | Web & Mobile App Integrator With 2+ years of experience, I build smart automations, web & mobile app workflows, and scalable platforms using tools like n8n, Make, and more. I help businesses reduce operational costs, save time, and scale faster with AI-powered solutions. For business enquiries, send me an email at kontakt@lumizone.pl

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34