AI 기반 Gmail 이메일 자동 정리 및 우선순위 라벨링
고급
이것은Other, AI분야의자동화 워크플로우로, 17개의 노드를 포함합니다.주로 Gmail, Filter, Telegram, Aggregate, GmailTool 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. AI를 활용한 Gmail 이메일 자동 정리 기능으로, 자동 아카이빙과 우선순위 라벨링을 지원합니다
사전 요구사항
- •Google 계정 및 Gmail API 인증 정보
- •Telegram Bot Token
사용된 노드 (17)
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "6af2f94153ea0551e6264b16187490bd4c4739c7f5f3d7adab90c5cf186e22a1",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "43e68fe1-7f48-4bc9-b19a-66d39bee5bbd",
"name": "워크플로우 테스트 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-520,
20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "32aa401a-60c3-4436-94d5-5ba09d3be6ae",
"name": "OpenRouter 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
80,
0
],
"parameters": {
"model": "openai/gpt-4.1-nano",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "eQmkAlMDYm8oEtBL",
"name": "OpenRouter account"
}
},
"typeVersion": 1
},
{
"id": "f6d325b4-ff87-4bba-9f27-b68590c8a533",
"name": "Telegram 트리거",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-520,
-220
],
"webhookId": "e61d3286-920e-406c-b787-d330cf897ef4",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "ZOl2ZojetuN1uFiX",
"name": "My Mail Agent Bot via Telegram"
}
},
"typeVersion": 1.1
},
{
"id": "8e10c622-9bf8-414b-8364-185c5c4808a0",
"name": "스티커 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
-600,
-480
],
"parameters": {
"width": 1660,
"height": 680,
"content": "## Mail Agent\nFor emails in the inbox, archive those that are completely unnecessary, and label the rest based on their relevance.\n\n"
},
"typeVersion": 1
},
{
"id": "2e664cd4-37af-4b8f-84a5-ff07911b8aaa",
"name": "스티커 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-560,
-380
],
"parameters": {
"color": 5,
"width": 180,
"height": 360,
"content": "### Trigger\nRun by communicating with Telegram"
},
"typeVersion": 1
},
{
"id": "966af8d0-bfca-40fa-b97c-ec1bb7de82d2",
"name": "스티커 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
-380
],
"parameters": {
"color": 4,
"width": 180,
"height": 360,
"content": "### Get Mail via Gmail\nRetrieve all emails in the Gmail inbox.\n(Inbox = Label: INBOX)"
},
"typeVersion": 1
},
{
"id": "07dabeda-a075-4e45-9ecf-9a0e6d0df0b2",
"name": "스티커 노트3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
-380
],
"parameters": {
"color": 4,
"width": 180,
"height": 360,
"content": "### Filter\nFilter out emails that have already been processed to avoid unnecessary work for the AI.\n\n"
},
"typeVersion": 1
},
{
"id": "b9a96646-283e-4328-8c79-57befa97bb69",
"name": "스티커 노트4",
"type": "n8n-nodes-base.stickyNote",
"position": [
40,
-380
],
"parameters": {
"color": 3,
"width": 980,
"height": 540,
"content": "### AI Agent\nCheck each email one by one, categorize them as necessary or unnecessary according to the provided prompt, and instruct Gmail to apply the appropriate labels."
},
"typeVersion": 1
},
{
"id": "32c73c57-61b5-430b-a011-f0b44fa2b226",
"name": "mail_label_setter",
"type": "n8n-nodes-base.gmailTool",
"position": [
360,
0
],
"webhookId": "37bb94d2-6aeb-4038-afc7-e25a330e7860",
"parameters": {
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "5GhcPqZ48DrfujWd",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "7cf38850-939c-4c8e-af62-1f730d5b7e34",
"name": "mail_archiver",
"type": "n8n-nodes-base.gmailTool",
"position": [
220,
0
],
"webhookId": "81956225-38dd-4acf-b97a-8e68f332f56a",
"parameters": {
"labelIds": [
"INBOX"
],
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
"operation": "removeLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "5GhcPqZ48DrfujWd",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "5fab497e-a632-4565-8048-7ae9b209728d",
"name": "Aggregate",
"type": "n8n-nodes-base.aggregate",
"position": [
380,
-220
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"typeVersion": 1
},
{
"id": "f7144884-6ba6-4e97-be35-f5f8b27d56ad",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
820,
-220
],
"webhookId": "6324ebbf-b2c3-42c3-b4ee-849184380b4f",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "ZOl2ZojetuN1uFiX",
"name": "My Mail Agent Bot via Telegram"
}
},
"typeVersion": 1.2
},
{
"id": "9236fbc1-ffad-4bf0-b3a1-5d389e5b422c",
"name": "OpenRouter 채팅 모델1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
520,
0
],
"parameters": {
"model": "openai/gpt-4.1-nano",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "eQmkAlMDYm8oEtBL",
"name": "OpenRouter account"
}
},
"typeVersion": 1
},
{
"id": "e0ec10ca-ad72-4784-891e-5bd5bcff7082",
"name": "Reporter",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
520,
-220
],
"parameters": {
"text": "=Summarize data\n```\n{{ $json.data.map(item => item.output + '\\n\\n') }}\n```\n",
"options": {
"systemMessage": "=# persona\n* You are a helpful assistant.\n"
},
"promptType": "define"
},
"typeVersion": 1.8
},
{
"id": "9b4f8e14-7b9c-45b3-97cb-32f2fe756440",
"name": "INBOX 내 메일 가져오기",
"type": "n8n-nodes-base.gmail",
"position": [
-320,
-220
],
"webhookId": "f4c95906-916d-4c94-8e35-cb37c9472043",
"parameters": {
"filters": {
"labelIds": [
"INBOX"
]
},
"operation": "getAll",
"returnAll": true
},
"credentials": {
"gmailOAuth2": {
"id": "5GhcPqZ48DrfujWd",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "13088de9-6f96-463e-bcb6-92f97d7144d9",
"name": "처리된 항목 필터링",
"type": "n8n-nodes-base.filter",
"position": [
-120,
-220
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "1091eba0-3d75-47b6-92c5-404f93e263ae",
"operator": {
"type": "array",
"operation": "notContains",
"rightType": "any"
},
"leftValue": "={{ $json.labels.map(item => item.name)}}",
"rightValue": "NotNeed"
},
{
"id": "31160689-98ce-43ac-8c7b-116cd7da5ebc",
"operator": {
"type": "array",
"operation": "notContains",
"rightType": "any"
},
"leftValue": "={{ $json.labels.map(item => item.name)}}",
"rightValue": "MustRead"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "317ea413-e8fd-4148-8115-8b4d2b9a7fe4",
"name": "Categoriser",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
80,
-220
],
"parameters": {
"text": "=<task>\nProcess mail\n</task>\n<mail>\n<id>{{ $json.id }}</id>\n<from>{{ $json.From }}</from>\n<subject>{{ $json.Subject }}</subject>\n<body>{{ $json.snippet }}</body>\n</mail>",
"options": {
"systemMessage": "=<persona>\nYou are an email processing assistant.\n</persona>\n<task>\nLook at the content of the email and decide whether to apply a label or archive it, processing it only once. First, archive those that are absolutely unnecessary using the mail_archiver tool. This judgment is the top priority. After that, if it does not fall into that category, determine whether it should be read based on the following criteria and use the mail_label_setter tool to apply the label.\n<case>Absolutely unnecessary: Archive using the mail_archiver tool</case>\n<case>Needs to be read: Apply \"Label_[label_id]\" using the mail_label_setter tool</case>\n<case>Other: Apply \"Label_[label_id]\" using the mail_label_setter tool</case>\nReport the processing results carefully.\n</task>\n<rules>\n<Archive>\nEmails that are absolutely unnecessary and will be archived\n<item>[list up your rule1]</item>\n<item>[list up your rule2]</item>\n</Archive><MustRead>\nEmails that need to be read\n<item>[list up your rule1]</item>\n<item>[list up your rule2]</item>\n</MustRead>\n<Other>\nEmails that are not necessary to read but will not be archived\n<item>[list up your rule1]</item>\n<item>[list up your rule2]</item>\n</Other>\n</rules>"
},
"promptType": "define"
},
"typeVersion": 1.7
}
],
"pinData": {},
"connections": {
"e0ec10ca-ad72-4784-891e-5bd5bcff7082": {
"main": [
[
{
"node": "f7144884-6ba6-4e97-be35-f5f8b27d56ad",
"type": "main",
"index": 0
}
]
]
},
"5fab497e-a632-4565-8048-7ae9b209728d": {
"main": [
[
{
"node": "e0ec10ca-ad72-4784-891e-5bd5bcff7082",
"type": "main",
"index": 0
}
]
]
},
"317ea413-e8fd-4148-8115-8b4d2b9a7fe4": {
"main": [
[
{
"node": "5fab497e-a632-4565-8048-7ae9b209728d",
"type": "main",
"index": 0
}
]
]
},
"7cf38850-939c-4c8e-af62-1f730d5b7e34": {
"ai_tool": [
[
{
"node": "317ea413-e8fd-4148-8115-8b4d2b9a7fe4",
"type": "ai_tool",
"index": 0
}
]
]
},
"13088de9-6f96-463e-bcb6-92f97d7144d9": {
"main": [
[
{
"node": "317ea413-e8fd-4148-8115-8b4d2b9a7fe4",
"type": "main",
"index": 0
}
]
]
},
"f6d325b4-ff87-4bba-9f27-b68590c8a533": {
"main": [
[
{
"node": "9b4f8e14-7b9c-45b3-97cb-32f2fe756440",
"type": "main",
"index": 0
}
]
]
},
"32c73c57-61b5-430b-a011-f0b44fa2b226": {
"ai_tool": [
[
{
"node": "317ea413-e8fd-4148-8115-8b4d2b9a7fe4",
"type": "ai_tool",
"index": 0
}
]
]
},
"9b4f8e14-7b9c-45b3-97cb-32f2fe756440": {
"main": [
[
{
"node": "13088de9-6f96-463e-bcb6-92f97d7144d9",
"type": "main",
"index": 0
}
]
]
},
"32aa401a-60c3-4436-94d5-5ba09d3be6ae": {
"ai_languageModel": [
[
{
"node": "317ea413-e8fd-4148-8115-8b4d2b9a7fe4",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"9236fbc1-ffad-4bf0-b3a1-5d389e5b422c": {
"ai_languageModel": [
[
{
"node": "e0ec10ca-ad72-4784-891e-5bd5bcff7082",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"43e68fe1-7f48-4bc9-b19a-66d39bee5bbd": {
"main": [
[
{
"node": "9b4f8e14-7b9c-45b3-97cb-32f2fe756440",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 기타, 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
귀하의 이메일에 시각화 요약 및 지식 그래프 통찰력 생성
이메일에 시각화 요약과 지식 그래프 통찰력 생성
If
Set
Code
+
If
Set
Code
38 노드InfraNodus
기타
AI이메일分诊与GPT-4警报系统及Telegram알림
AI이메일分诊与GPT-4警报系统及Telegram알림
If
Set
Gmail
+
If
Set
Gmail
104 노드Peter Joslyn
지원
시각화 참조 라이브러리에서 n8n 노드를 탐색
可视化 참조 라이브러리에서 n8n 노드를 탐색
If
Ftp
Set
+
If
Ftp
Set
113 노드I versus AI
기타
📊 WhatsApp와 Telegram의 AI 토큰 추적기 - AI 사용 현황을 Google 스프레드시트에 저장
📊 WhatsApp과 Telegram의 AI 토큰 추적기 - AI 사용 상황을 Google 스프레드시트에 저장
If
Set
Code
+
If
Set
Code
37 노드Amanda Benks
금융
AI 자동화 및 에이전트 구축 및 판매
构建与판매AI자동화与스마트体
If
Set
Wait
+
If
Set
Wait
74 노드NICKYAI
기타
LinkedIn 및 X 바이럴 콘텐츠 자동 엔진
사용AI생성및게시자동생성LinkedIn및X의病毒콘텐츠
If
Set
Wait
+
If
Set
Wait
156 노드Diptamoy Barman
콘텐츠 제작