8
n8n 한국어amn8n.com

Gmail API를 사용한 Gmail 스팸함 월별 자동 정리

중급

이것은Personal Productivity분야의자동화 워크플로우로, 8개의 노드를 포함합니다.주로 Wait, Gmail, ScheduleTrigger 등의 노드를 사용하며. Gmail API로 매월 Gmail 스팸 메일함 자동 정리

사전 요구사항
  • Google 계정 및 Gmail API 인증 정보

카테고리

워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "hdBpjh9528K5FyWV",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
    "templateCredsSetupCompleted": true
  },
  "name": "Auto-Clean Gmail Spam Folder Monthly with Gmail API",
  "tags": [],
  "nodes": [
    {
      "id": "e214c477-6d39-426f-8a34-cd38bb6f5ae2",
      "name": "월간 트리거 (매월 1일)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -380,
        120
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "months",
              "triggerAtHour": 6
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e8eb600c-9b45-44e2-8ee6-409c9b61b171",
      "name": "스팸 이메일 가져오기 (Gmail)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -160,
        120
      ],
      "webhookId": "c47419de-278c-40d1-a5da-c9414d3f89c6",
      "parameters": {
        "filters": {
          "labelIds": [
            "SPAM"
          ]
        },
        "operation": "getAll",
        "returnAll": true
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "PcTqvGU9uCunfltE",
          "name": "Gmail account - test"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "96a0fd3c-63bd-48f4-87d7-7eda528b50a3",
      "name": "삭제 전 일시 중지 (5초)",
      "type": "n8n-nodes-base.wait",
      "position": [
        60,
        120
      ],
      "webhookId": "0b2f9902-fd7b-4a98-87a3-f36c74b0af32",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e172bbb8-069c-4c68-b72f-cf2a7f304f0b",
      "name": "가져온 스팸 이메일 삭제",
      "type": "n8n-nodes-base.gmail",
      "position": [
        280,
        120
      ],
      "webhookId": "46b0fe0f-cc00-4994-8364-9048c888e9ef",
      "parameters": {
        "messageId": "={{ $json.id }}",
        "operation": "delete"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "PcTqvGU9uCunfltE",
          "name": "Gmail account - test"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "a07dd87f-1216-44de-91b8-a6d7d36877e8",
      "name": "스티키 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -415,
        -80
      ],
      "parameters": {
        "color": 3,
        "width": 170,
        "height": 360,
        "content": "Starts the workflow automatically on the 1st of every month to perform email cleanup."
      },
      "typeVersion": 1
    },
    {
      "id": "0de7be15-2ebe-4c28-ab52-59f35f6a3135",
      "name": "스티키 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -80
      ],
      "parameters": {
        "color": 5,
        "width": 170,
        "height": 360,
        "content": "Uses Gmail API to retrieve all emails in the SPAM folder for the authenticated Gmail account."
      },
      "typeVersion": 1
    },
    {
      "id": "11c0f2f1-1480-4512-ad4d-1d9544838e2c",
      "name": "스티키 노트2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -80
      ],
      "parameters": {
        "width": 170,
        "height": 360,
        "content": "Introduces a short delay to avoid hitting Gmail’s API rate limits or ensure all emails are fetched properly."
      },
      "typeVersion": 1
    },
    {
      "id": "0600f919-8315-431a-8420-9c0931b9c097",
      "name": "스티키 노트3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -80
      ],
      "parameters": {
        "color": 4,
        "width": 170,
        "height": 360,
        "content": "Permanently deletes all emails retrieved from the SPAM folder to free up Gmail space and improve email hygiene."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ad4a18bb-1aff-4520-9e68-4844bf365d8f",
  "connections": {
    "e8eb600c-9b45-44e2-8ee6-409c9b61b171": {
      "main": [
        [
          {
            "node": "96a0fd3c-63bd-48f4-87d7-7eda528b50a3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e214c477-6d39-426f-8a34-cd38bb6f5ae2": {
      "main": [
        [
          {
            "node": "e8eb600c-9b45-44e2-8ee6-409c9b61b171",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "96a0fd3c-63bd-48f4-87d7-7eda528b50a3": {
      "main": [
        [
          {
            "node": "e172bbb8-069c-4c68-b72f-cf2a7f304f0b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

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

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

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

중급 - 개인 생산성

유료인가요?

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

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

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

저자
Oneclick AI Squad

Oneclick AI Squad

@oneclick-ai

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34