Gmail 인공지능 자동 답변 및 분류 시스템
고급
이것은Ticket Management, AI Summarization분야의자동화 워크플로우로, 18개의 노드를 포함합니다.주로 Gmail, GmailTrigger, GoogleSheets, OpenAi, LmChatOpenAi 등의 노드를 사용하며. Gmail 메일 분류 및 자동 답변, GPT-4o와 Google Sheets 사용
사전 요구사항
- •Google 계정 및 Gmail API 인증 정보
- •Google Sheets API 인증 정보
- •OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "6MZqIrk7nB6lc4vB",
"meta": {
"instanceId": "15d6057a37b8367f33882dd60593ee5f6cc0c59310ff1dc66b626d726083b48d",
"templateCredsSetupCompleted": true
},
"name": "Gmail Auto Reply & Categorization with AI",
"tags": [],
"nodes": [
{
"id": "9f88a550-a517-4362-a71f-b7997b9c75fa",
"name": "Gmail 트리거",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
-272,
0
],
"parameters": {
"simple": false,
"filters": {},
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 1.2
},
{
"id": "faf382e9-f898-447f-b5a1-d7a8c28d2309",
"name": "텍스트 분류기",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-96,
-32
],
"parameters": {
"options": {},
"inputText": "={{ $json.text }}",
"categories": {
"categories": [
{
"category": "High Priority",
"description": "Description: Emails that require immediate attention and could have a serious impact if delayed. Typical examples include: system outages, security alerts, critical legal notices, or urgent requests from executives or key clients. Examples: '[URGENT] Service outage notice', '[IMPORTANT] Contract renewal deadline'"
},
{
"category": "Advertisement",
"description": "Description: Marketing or promotional emails that do not require an immediate response. Typical examples include: sales announcements, product launches, newsletters, and event invitations. Examples: '[LIMITED OFFER] 50% off campaign', 'New service release announcement'"
},
{
"category": "Inquiry",
"description": "Description: Customer or partner inquiries that require a reply or follow-up. Typical examples include: product or service questions, quote requests, reservations, troubleshooting, repair or refund requests. Examples: 'Inquiry about studio reservation', 'Request for quotation'"
},
{
"category": "Finance/Billing",
"description": "Description: Emails related to payments, invoices, or financial transactions. Typical examples include: invoices, receipts, payment confirmations, bank or accounting notifications, and tax-related documents. Examples: 'Invoice submission notice', '[Payment confirmed] Thank you for your payment'"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "aaddb0e0-fd5f-49ab-8887-f3ecc5bd9d89",
"name": "OpenAI 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-96,
208
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {
"maxRetries": 1
}
},
"credentials": {
"openAiApi": {
"id": "WBKhlscRuBMQi56k",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "52265538-92f0-45b9-a7e8-78ba934620cf",
"name": "중요 메일 저장",
"type": "n8n-nodes-base.gmail",
"position": [
432,
-240
],
"webhookId": "18f19ef8-a4ec-4b1f-b3c6-4a9e7165eaff",
"parameters": {
"labelIds": [
"Label_6395372519299544115"
],
"messageId": "={{ $json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "a3ac1d27-05ca-4832-bee9-176899915b27",
"name": "광고 메일 저장",
"type": "n8n-nodes-base.gmail",
"position": [
432,
-48
],
"webhookId": "18f19ef8-a4ec-4b1f-b3c6-4a9e7165eaff",
"parameters": {
"labelIds": [
"Label_2877175876700118240"
],
"messageId": "={{ $json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "696b4433-3093-436c-b98d-2f910858823e",
"name": "문의 메일 저장",
"type": "n8n-nodes-base.gmail",
"position": [
432,
144
],
"webhookId": "18f19ef8-a4ec-4b1f-b3c6-4a9e7165eaff",
"parameters": {
"labelIds": [
"Label_8971387974199578288"
],
"messageId": "={{ $json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "68f89db1-59b8-4b15-8ac6-52354a28093a",
"name": "금융 메일 저장",
"type": "n8n-nodes-base.gmail",
"position": [
432,
336
],
"webhookId": "18f19ef8-a4ec-4b1f-b3c6-4a9e7165eaff",
"parameters": {
"labelIds": [
"Label_7818902445747119871"
],
"messageId": "={{ $json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "cdb0c68f-e041-47ef-b65e-14e2c476a760",
"name": "중요 메일 초안 생성",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
-240
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are an executive assistant. \nYour task is to reply accurately to high-priority incoming emails. \nHere is the email you need to respond to: {{ $('Gmail Trigger').item.json.text }} \n\nPlease output the following parameters:\n- Subject \n- Message\n"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "lHkSeZk3nuftEHri",
"name": "デモ"
}
},
"executeOnce": false,
"typeVersion": 1.8,
"alwaysOutputData": false
},
{
"id": "a59b0fc2-b11e-4e9c-a5c6-b5aa33f85bac",
"name": "광고 요약 생성",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
-48
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are a marketing specialist. \nYour task is to summarize incoming promotional or marketing emails concisely in 1–2 lines for spreadsheet logging. \n\nHere is the received email: {{ $('Gmail Trigger').item.json.text }}\n\nPlease extract and summarize the following fields:\n- Sender \n- Subject \n- Summary \n- Recommendation\n"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "WBKhlscRuBMQi56k",
"name": "OpenAi account 4"
}
},
"executeOnce": false,
"typeVersion": 1.8,
"alwaysOutputData": false
},
{
"id": "64f4df61-ee88-4ea0-857f-7d738c2f3c21",
"name": "금융 요약 생성",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
144
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are a customer service representative. \nYour task is to reply accurately to customer inquiries. \nIf the question cannot be answered, instruct the sender to contact the following number: 000-0000-000. \n\nHere is the email you need to respond to: {{ $('Gmail Trigger').item.json.text }}\n\nPlease output the following parameters:\n- Subject \n- Message\n"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "WBKhlscRuBMQi56k",
"name": "OpenAi account 4"
}
},
"executeOnce": false,
"typeVersion": 1.8,
"alwaysOutputData": false
},
{
"id": "a8df46ff-73f7-4129-94cb-0f452b328716",
"name": "문의 응답 생성",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
336
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are a finance and billing assistant. \nYour task is to summarize emails related to invoices, payments, and financial notifications in a concise manner. \n\nHere is the received email: {{ $('Gmail Trigger').item.json.text }}\n\nPlease output the following parameters:\n- Subject \n- Message\n"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "WBKhlscRuBMQi56k",
"name": "OpenAi account 4"
}
},
"executeOnce": false,
"typeVersion": 1.8,
"alwaysOutputData": false
},
{
"id": "ef15e762-463f-4acd-9c38-cb84735c9feb",
"name": "초안 작성",
"type": "n8n-nodes-base.gmail",
"position": [
992,
-240
],
"webhookId": "e203a0df-3a0f-48fc-9581-684beb49c073",
"parameters": {
"message": "={{ $json.message.content['message'] }}",
"options": {},
"subject": "={{ $json.message.content['send'] }}",
"resource": "draft"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "45aa5109-f0c2-43e7-a91a-db0fcc109cc7",
"name": "시트에 행 추가",
"type": "n8n-nodes-base.googleSheets",
"position": [
992,
-48
],
"parameters": {
"columns": {
"value": {
"Sender": "={{ $json.message.content['Sender'] }}",
"Subject": "={{ $json.message.content['Subject'] }}",
"Summary": "={{ $json.message.content['Summary'] }}",
"Recommendation": "={{ $json.message.content['Recommendation'] }}"
},
"schema": [
{
"id": "Sender",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Sender",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Subject",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Subject",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Summary",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Summary",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Recommendation",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Recommendation",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/13AmknC94wJ5n1FDl7E1yUFsCNYVDJklzPpTZmFQrMb4/edit#gid=0",
"cachedResultName": "01_Advertisement Mail Summary"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "13AmknC94wJ5n1FDl7E1yUFsCNYVDJklzPpTZmFQrMb4",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/13AmknC94wJ5n1FDl7E1yUFsCNYVDJklzPpTZmFQrMb4/edit?usp=drivesdk",
"cachedResultName": "[n8n] Advertisement Mail Summary"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "Ja0tGvoFNudNwqMM",
"name": "md83 H2"
}
},
"typeVersion": 4.6
},
{
"id": "6701a84f-2e2a-42f2-9c98-fb7ee3f394f1",
"name": "금융 메일 전송",
"type": "n8n-nodes-base.gmail",
"position": [
992,
144
],
"webhookId": "0256a9d5-e87f-499e-98c4-ced9e9b6f204",
"parameters": {
"message": "={{ $json.message.content['message'] }}",
"options": {},
"resource": "thread",
"threadId": "={{ $('Save Inquiry Mail').item.json.threadId }}",
"messageId": "={{ $('Save Inquiry Mail').item.json.id }}",
"operation": "reply"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "89129a16-1f1a-48e4-82f1-0593c142909b",
"name": "문의에 답장",
"type": "n8n-nodes-base.gmail",
"position": [
992,
336
],
"webhookId": "01d72fbe-d12c-4992-9977-7aa4316e0af0",
"parameters": {
"sendTo": "{{YOUR_EMAIL_ADDRESS}}",
"message": "={{ $json.message.content['message'] }}",
"options": {},
"subject": "={{ $json.message.content['send'] }}"
},
"credentials": {
"gmailOAuth2": {
"id": "NdoEDipkhQPaRDuy",
"name": "Gmail account 6"
}
},
"typeVersion": 2.1
},
{
"id": "6f1a41f5-ad3e-4b4b-906d-44a20bbe0623",
"name": "스티커 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
1264,
-304
],
"parameters": {
"width": 416,
"height": 880,
"content": "## 📩Gmail Auto Reply & Categorization with AI (LangChain + OpenAI + Google Sheets)\n\n**Description:**\nThis workflow automatically categorizes incoming Gmail messages into four types — High Priority, Advertisement, Inquiry, and Finance/Billing — using the LangChain Text Classifier.\nEach category triggers a specific automated action powered by OpenAI GPT models:\n\n🟥 High Priority: Generates an AI-written draft reply in Gmail.\n\n🟨 Advertisement: Summarizes the content and logs it to Google Sheets.\n\n🟩 Inquiry: Creates an auto-reply email with fallback instructions.\n\n🟦 Finance/Billing: Generates a brief summary and forwards it to a designated address.\n\nThis setup combines Gmail + LangChain + OpenAI + Google Sheets for a complete AI-driven email management system that reduces manual sorting and response time.\n\n**Setup Instructions:**\n\nConnect your credentials for Gmail, Google Sheets, and OpenAI.\n\nReplace all placeholders such as {{YOUR_EMAIL_ADDRESS}}, {{YOUR_SPREADSHEET_ID}}, and label names with your actual values.\n\nMake sure you have Gmail labels created for “Advertisement,” “Inquiry,” etc.\n\n(Optional) Translate prompts back to your language if needed.\n"
},
"typeVersion": 1
},
{
"id": "49d044e4-0a1c-4fff-b205-77d43db01251",
"name": "스티커 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-336,
-176
],
"parameters": {
"color": 2,
"width": 512,
"height": 496,
"content": "## ①Receive Gmail → AI understands the email content\nIncoming emails are analyzed by AI and automatically categorized into four sections: High Priority, Advertisement, Inquiry, and Finance/Billing."
},
"typeVersion": 1
},
{
"id": "904ff69b-74bc-4c26-aa3d-5af797548e7e",
"name": "스티커 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
272,
-624
],
"parameters": {
"width": 960,
"height": 1200,
"content": "## ②Email Processing Section\n**Flow Overview:**\nThis workflow automatically classifies all incoming Gmail messages into four categories using the LangChain Text Classifier and performs specific actions for each:\n\n🟥 High Priority: Gmail adds a “High Priority” label → OpenAI generates a reply draft → saved as a Gmail draft.\n\n🟨 Advertisement: AI summarizes the email → summary is recorded into a Google Sheet for later review.\n\n🟩 Inquiry: AI generates an automatic customer reply → sends a polite response or fallback message.\n\n🟦 Finance/Billing: AI creates a short summary of financial or billing-related content → forwards it to a designated email address.\n\n**Purpose:**\nThe system ensures that each type of incoming email is handled automatically and intelligently: urgent messages are drafted quickly, promotional content is logged, customer inquiries are answered promptly, and financial communications are safely redirected — all through a single AI-powered workflow."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "fa5d38ad-f0cb-4b9a-962d-295da7453ed7",
"connections": {
"9f88a550-a517-4362-a71f-b7997b9c75fa": {
"main": [
[
{
"node": "faf382e9-f898-447f-b5a1-d7a8c28d2309",
"type": "main",
"index": 0
}
]
]
},
"faf382e9-f898-447f-b5a1-d7a8c28d2309": {
"main": [
[
{
"node": "52265538-92f0-45b9-a7e8-78ba934620cf",
"type": "main",
"index": 0
}
],
[
{
"node": "a3ac1d27-05ca-4832-bee9-176899915b27",
"type": "main",
"index": 0
}
],
[
{
"node": "696b4433-3093-436c-b98d-2f910858823e",
"type": "main",
"index": 0
}
],
[
{
"node": "68f89db1-59b8-4b15-8ac6-52354a28093a",
"type": "main",
"index": 0
}
]
]
},
"aaddb0e0-fd5f-49ab-8887-f3ecc5bd9d89": {
"ai_languageModel": [
[
{
"node": "faf382e9-f898-447f-b5a1-d7a8c28d2309",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"68f89db1-59b8-4b15-8ac6-52354a28093a": {
"main": [
[
{
"node": "a8df46ff-73f7-4129-94cb-0f452b328716",
"type": "main",
"index": 0
}
]
]
},
"696b4433-3093-436c-b98d-2f910858823e": {
"main": [
[
{
"node": "64f4df61-ee88-4ea0-857f-7d738c2f3c21",
"type": "main",
"index": 0
}
]
]
},
"52265538-92f0-45b9-a7e8-78ba934620cf": {
"main": [
[
{
"node": "cdb0c68f-e041-47ef-b65e-14e2c476a760",
"type": "main",
"index": 0
}
]
]
},
"a59b0fc2-b11e-4e9c-a5c6-b5aa33f85bac": {
"main": [
[
{
"node": "45aa5109-f0c2-43e7-a91a-db0fcc109cc7",
"type": "main",
"index": 0
}
]
]
},
"a8df46ff-73f7-4129-94cb-0f452b328716": {
"main": [
[
{
"node": "89129a16-1f1a-48e4-82f1-0593c142909b",
"type": "main",
"index": 0
}
]
]
},
"cdb0c68f-e041-47ef-b65e-14e2c476a760": {
"main": [
[
{
"node": "ef15e762-463f-4acd-9c38-cb84735c9feb",
"type": "main",
"index": 0
}
]
]
},
"a3ac1d27-05ca-4832-bee9-176899915b27": {
"main": [
[
{
"node": "a59b0fc2-b11e-4e9c-a5c6-b5aa33f85bac",
"type": "main",
"index": 0
}
]
]
},
"64f4df61-ee88-4ea0-857f-7d738c2f3c21": {
"main": [
[
{
"node": "6701a84f-2e2a-42f2-9c98-fb7ee3f394f1",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 티켓 관리, AI 요약
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
AI 기반 이메일 수신함 관리자, GPT-4, Gmail 및 Slack 통합
AI 기반 이메일 수신함 관리자, GPT-4, Gmail 및 Slack 통합
If
Gmail
Slack
+
If
Gmail
Slack
22 노드Muhammad Bello
티켓 관리
Gmail과 GPT 기반 AI 기반 이메일 분류 및 자동 응답 시스템
GPT-4.1-mini 분류와 Gmail 자동 회신을 사용한 이메일 분류 자동화
If
Set
Gmail
+
If
Set
Gmail
24 노드Giovanni Beggiato
티켓 관리
Gmail, GPT 및 스프레드시트를 사용한 자동화된 이메일 분류 및 응답 시스템
Gmail, GPT 및 Sheets를 사용한 자동화된 이메일 분류 및 응답 시스템
Set
Gmail
Error Trigger
+
Set
Gmail
Error Trigger
35 노드Sergio Afonso
AI 요약
능동형 스마트 고객 지원 센터
GPT-4, Gmail, Trello를 사용한 자동 이메일 지원 트라이아지
If
Code
Gmail
+
If
Code
Gmail
14 노드Marth
티켓 관리
AI 기반 고객 지원: 이메일, 지식 베이스 및 인간 에스컬레이션 자동화
AI이메일支持系统:통합Gmail、Gemini、GPT-4、Slack및Google Sheets의워크플로우程
Set
Gmail
Slack
+
Set
Gmail
Slack
26 노드David Olusola
티켓 관리
스마트 이메일 분류
GPT와 WhatsApp 알림 기반 Gmail 자동 분류 및 응답 시스템
Gmail
Whats App
Gmail Trigger
+
Gmail
Whats App
Gmail Trigger
26 노드Nabin Bhandari
티켓 관리