두 번째 Gmail 초안 작성 및 발송
고급
이것은Ticket Management, Multimodal AI분야의자동화 워크플로우로, 18개의 노드를 포함합니다.주로 Gmail, Switch, GmailTrigger, Agent, LmChatGoogleGemini 등의 노드를 사용하며. Gemini AI 및 Gmail을 사용한 스마트 이메일 응답 자동 관리
사전 요구사항
- •Google 계정 및 Gmail API 인증 정보
- •Google Gemini API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "yAmWWzUXTwmC6hPO",
"meta": {
"instanceId": "679a5e6996c7b87733ea9da67669642511fe2f1215d268a884919abfbd13ffdb",
"templateCredsSetupCompleted": true
},
"name": "2nd gmail draft and send",
"tags": [],
"nodes": [
{
"id": "04005997-5f22-40f8-b1c5-8791b106d277",
"name": "인간 검토 플래그",
"type": "n8n-nodes-base.gmail",
"position": [
-48,
480
],
"webhookId": "f391c634-6d29-44eb-b122-e40c93df2cd0",
"parameters": {
"message": "={{ $json.output }}",
"options": {
"sendTo": "={{ $('Get a message').item.json.from.value[0].address }}",
"threadId": "={{ $('Get a message').item.json.threadId }}"
},
"subject": "={{ $('Get a message').item.json.subject }}",
"resource": "draft"
},
"credentials": {
"gmailOAuth2": {
"id": "PuAE61pOClI4CRxE",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "57d5d8fd-3391-4af0-9305-2249d4885f5f",
"name": "Gmail 트리거",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
-1648,
240
],
"parameters": {
"simple": false,
"filters": {},
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"credentials": {
"gmailOAuth2": {
"id": "PuAE61pOClI4CRxE",
"name": "Gmail account"
}
},
"typeVersion": 1.2
},
{
"id": "55ee3c91-fa91-44eb-ad28-87c2a614f2a1",
"name": "Google Gemini 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-1168,
416
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-flash-preview-05-20"
},
"credentials": {
"googlePalmApi": {
"id": "7X1ZyvDFg4ocTHrj",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "af2b05c9-5229-4027-a514-0d210ea26fe7",
"name": "AI 분류기",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1168,
240
],
"parameters": {
"text": "=You are an AI assistant that drafts helpful email replies. For each incoming email, you will draft a reply and classify whether the email is 'simple' (can be auto-replied) or 'complex' (requires human review) or needs nothing to do.\n\nRules for classification:\n\n\nIf the email contains any sensitive topic (e.g: personal data such as biometric data, health records, racial or ethnic origin, religious or philosophical beliefs, political opinions, and sexual orientation, financial data (account numbers, credit card information), government identifiers (Social Security Numbers), and company-specific data such as trade secrets and strategic plans, etc.). classify it as \"draft\".\n\nAnd if the email does not contain any of the sensitive information and is a normal email and needs a reply, classify it as \"Reply\".\n\nAnd if an email does not contain any of the topic or information that does need reply (e.g, marketing or spam, automated notifications like \"do not reply\" emails or pickup alerts, transactional messages such as purchase receipts or account verification, and emails with no clear call to action that could bury important messages for recipients. In general, if a message is purely informational, doesn't ask for action, or is from an unknown source.) Classify it as \"Nothing\".\n\nProvide the Category Only: Respond with the category name and nothing else. Do not add any extra text, explanations, or commentary. Your response should be a single word. and you have 3 categories: \n\n1. Draft\n2. Reply\n3. Nothing\n\nHere is the Email:\n\n{{ $json.text }}",
"options": {
"batching": {
"batchSize": 1,
"delayBetweenBatches": 0
},
"passthroughBinaryImages": true,
"returnIntermediateSteps": false
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "9a53a9bf-9665-4f5c-a0b9-74f5421509f5",
"name": "Gemini 채팅 초안",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-384,
640
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-flash-preview-05-20"
},
"credentials": {
"googlePalmApi": {
"id": "7X1ZyvDFg4ocTHrj",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "75bda556-8de8-462d-8ca6-a3fc30ca3436",
"name": "Gemini 채팅 회신",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-384,
192
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-flash-preview-05-20"
},
"credentials": {
"googlePalmApi": {
"id": "7X1ZyvDFg4ocTHrj",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "5396f107-619c-426d-b759-ebece261871f",
"name": "작업 없음, 아무것도 하지 않음",
"type": "n8n-nodes-base.noOp",
"position": [
-688,
560
],
"parameters": {},
"typeVersion": 1
},
{
"id": "dd50a20e-869e-4e9e-9c07-820be5fa9f95",
"name": "스티커 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1712,
48
],
"parameters": {
"width": 448,
"height": 400,
"content": "## Gmail Trigger + Get a message\n\nPurpose: Watches Gmail for new incoming messages, then fetches the full details (ID, subject, text, threadId, sender).\n\nThis provides the input data that downstream AI nodes will analyze and act on."
},
"typeVersion": 1
},
{
"id": "1c0fdd25-c89d-4ee8-a83e-7f0b455921e8",
"name": "메시지 가져오기",
"type": "n8n-nodes-base.gmail",
"position": [
-1424,
240
],
"webhookId": "b6b6ae33-af63-423a-b24d-70f9c8ccb73c",
"parameters": {
"simple": false,
"options": {},
"messageId": "={{ $json.id }}",
"operation": "get"
},
"credentials": {
"gmailOAuth2": {
"id": "PuAE61pOClI4CRxE",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "09f432ed-6285-4147-92d5-2b645912098d",
"name": "스티커 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1232,
-112
],
"parameters": {
"width": 400,
"height": 704,
"content": "## Google Gemini Chat Model + AI Categorizer\n\nPurpose: Uses Gemini to classify each email into one of three categories:\n\n⦿ Reply: normal emails needing an auto-response\n\n⦿ Draft: sensitive or complex emails that need human review\n\n⦿ Nothing: spam, automated notices, or irrelevant messages\nOnly the single word category is returned."
},
"typeVersion": 1
},
{
"id": "53e0e46b-f29f-45d0-a417-df2fdf1f56bb",
"name": "스티커 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-144
],
"parameters": {
"width": 320,
"height": 608,
"content": "## Reply, Draft, or Nothing (Switch)\n\nPurpose: Routes emails based on AI categorization:\n\n⦿ Reply → Generate Reply Email → Reply (auto-response sent immediately)\n\n⦿ Draft → Generate Draft Email → Flag for Human Review (reply is drafted but stored for human validation before sending)\n\n⦿ Nothing → No Operation (message ignored, nothing happens)"
},
"typeVersion": 1
},
{
"id": "c4d14987-f859-4983-9adc-7e326554262c",
"name": "스티커 노트3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
-240
],
"parameters": {
"width": 672,
"height": 576,
"content": "## Generate Email Reply + Gemini Chat Reply + Reply\n\nPurpose:\n\n⦿ Gemini writes a warm, professional final reply using the subject + body of the incoming message.\n\n⦿ Reply node sends this AI-written response directly back to the sender, keeping the thread intact."
},
"typeVersion": 1
},
{
"id": "2664562a-abe4-4857-ab53-82b8726a57ce",
"name": "스티커 노트4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
496
],
"parameters": {
"width": 320,
"height": 400,
"content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## No Operation, do nothing\n\nPurpose: Handles the “Nothing” category gracefully. The workflow ends here without any email action."
},
"typeVersion": 1
},
{
"id": "447df387-dbca-40eb-990e-2d22906a0447",
"name": "스티커 노트5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
432
],
"parameters": {
"width": 672,
"height": 592,
"content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Generate Draft Email + Gemini Chat Draft + Flag for Human Review\n\nPurpose:\n\n⦿ Gemini drafts a professional reply in the same style, but does not send it.\n\n⦿ Draft is created in Gmail (with the sender and subject filled in).\n\n⦿ A human can then review/edit before sending. "
},
"typeVersion": 1
},
{
"id": "6ec6fb16-1f87-408d-8bd2-9211384cea2b",
"name": "회신, 초안 작성 또는 아무것도 안 함",
"type": "n8n-nodes-base.switch",
"position": [
-736,
224
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "68b68c40-f028-4431-9940-66543b04578a",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "Reply"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "7df0c8a2-3616-4e84-9af3-14a2e637cb7c",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "Draft"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "799f30a4-15c6-45cb-8617-d9e2fe148536",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "Nothing"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "a4e6e81d-de73-4562-b37e-dfab96ba5fc4",
"name": "초안 이메일 생성",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-384,
480
],
"parameters": {
"text": "=Reply to the email I give you in a warm, polite, and professional tone. Write like a thoughtful human—use natural phrasing, gentle transitions, and avoid robotic or overly formal wording. Address all points clearly, keep it concise, and maintain a friendly, respectful feel. Reply must be easy to read. and don't output subject line, only output the reply. My name is hashir. must keep an eye on one thing, don't add in the reply anything like this \"[Your Company Name]\" etc. its a final reply so don't add anything that that needs any manual addition or editing. Output the final reply.\n\nHere is the Subject line: {{ $('Get a message').item.json.headers.subject }}\n\nHere is the Email:\n\n{{ $('Get a message').item.json.text }}",
"options": {
"batching": {
"batchSize": 1,
"delayBetweenBatches": 0
},
"passthroughBinaryImages": true,
"returnIntermediateSteps": false
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "65df0884-ef4d-483b-a8d4-a9ba0e252f94",
"name": "이메일 회신 생성",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-384,
32
],
"parameters": {
"text": "=Reply to the email I give you in a warm, polite, and professional tone. Write like a thoughtful human—use natural phrasing, gentle transitions, and avoid robotic or overly formal wording. Address all points clearly, keep it concise, and maintain a friendly, respectful feel. Reply must be easy to read. and don't output subject line, only output the reply. My name is hashir. must keep an eye on one thing, don't add in the reply anything like this \"[Your Company Name]\" etc. its a final reply so don't add anything that needs any manual addition or editing. Output the final reply.\n\nHere is the Subject line: {{ $('Get a message').item.json.headers.subject }}\n\nHere is the Email:\n\n{{ $('Get a message').item.json.text }}",
"options": {
"passthroughBinaryImages": true,
"returnIntermediateSteps": false
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "f45ae81c-8201-46cd-ba7f-955b69070108",
"name": "이메일 회신",
"type": "n8n-nodes-base.gmail",
"position": [
-96,
32
],
"webhookId": "4729862b-1009-44e9-a631-9b6651d34d0f",
"parameters": {
"message": "={{ $json.output }}",
"options": {
"appendAttribution": true,
"replyToSenderOnly": false
},
"emailType": "text",
"messageId": "={{ $('Get a message').item.json.id }}",
"operation": "reply"
},
"credentials": {
"gmailOAuth2": {
"id": "PuAE61pOClI4CRxE",
"name": "Gmail account"
}
},
"typeVersion": 2.1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "82f0e737-89c4-45cd-b18c-2d01f85218da",
"connections": {
"1c0fdd25-c89d-4ee8-a83e-7f0b455921e8": {
"main": [
[
{
"node": "af2b05c9-5229-4027-a514-0d210ea26fe7",
"type": "main",
"index": 0
}
]
]
},
"57d5d8fd-3391-4af0-9305-2249d4885f5f": {
"main": [
[
{
"node": "1c0fdd25-c89d-4ee8-a83e-7f0b455921e8",
"type": "main",
"index": 0
}
]
]
},
"af2b05c9-5229-4027-a514-0d210ea26fe7": {
"main": [
[
{
"node": "6ec6fb16-1f87-408d-8bd2-9211384cea2b",
"type": "main",
"index": 0
}
]
]
},
"9a53a9bf-9665-4f5c-a0b9-74f5421509f5": {
"ai_languageModel": [
[
{
"node": "a4e6e81d-de73-4562-b37e-dfab96ba5fc4",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"75bda556-8de8-462d-8ca6-a3fc30ca3436": {
"ai_languageModel": [
[
{
"node": "65df0884-ef4d-483b-a8d4-a9ba0e252f94",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"a4e6e81d-de73-4562-b37e-dfab96ba5fc4": {
"main": [
[
{
"node": "04005997-5f22-40f8-b1c5-8791b106d277",
"type": "main",
"index": 0
}
]
]
},
"65df0884-ef4d-483b-a8d4-a9ba0e252f94": {
"main": [
[
{
"node": "f45ae81c-8201-46cd-ba7f-955b69070108",
"type": "main",
"index": 0
}
]
]
},
"55ee3c91-fa91-44eb-ad28-87c2a614f2a1": {
"ai_languageModel": [
[
{
"node": "af2b05c9-5229-4027-a514-0d210ea26fe7",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"6ec6fb16-1f87-408d-8bd2-9211384cea2b": {
"main": [
[
{
"node": "65df0884-ef4d-483b-a8d4-a9ba0e252f94",
"type": "main",
"index": 0
}
],
[
{
"node": "a4e6e81d-de73-4562-b37e-dfab96ba5fc4",
"type": "main",
"index": 0
}
],
[
{
"node": "5396f107-619c-426d-b759-ebece261871f",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 티켓 관리, 멀티모달 AI
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
GPT-4o와 gotoHuman을 사용하여 이메일을 감독 분류하고 답변을 보내기
GPT-4o와 gotoHuman을 사용하여 이메일을 감독 분류하고 답변을 보내
Set
Gmail
Switch
+
Set
Gmail
Switch
24 노드gotoHuman
티켓 관리
Gmail 도구, Google Gemini 분류와 Telegram 알림 포함
Gmail 도우미, Google Gemini 분류 및 Telegram 알림 포함
If
Gmail
Switch
+
If
Gmail
Switch
25 노드Roshan Ramani
AI 챗봇
GPT-5, gotoHuman 및 수동 검토를 사용하여 Gmail 자동 응답 및 Linear 티켓 생성
GPT-5, gotoHuman 및 인간 검토를 사용하여 Gmail에서 자동 응답 및 Linear 티켓 생성
Set
Code
Gmail
+
Set
Code
Gmail
37 노드gotoHuman
티켓 관리
🛃 수신함 관리자
GPT-5, 다중 에이전트 AI 및 Pinecone 데이터베이스를 사용한 자동화된 이메일 관리 시스템
If
Gmail
Switch
+
If
Gmail
Switch
41 노드Zawanah
티켓 관리
완전한 B2B 판매 프로세스: Apollo 잠재 고객 생성, Mailgun 프로모션 및 AI 응답 관리
완전한 B2B 판매 프로세스: Apollo 잠재 고객 생성, Mailgun 확장 및 AI 응답 관리
If
Set
Code
+
If
Set
Code
116 노드Paul
콘텐츠 제작
AI 대리자와 Gemini Chat API를 사용하여 LinkedIn 콘텐츠 생성 및 게시
LinkedIn 콘텐츠 마신: Gemini AI로 이메일 승인 게시물 생성
Set
Code
Gmail
+
Set
Code
Gmail
43 노드Parag Javale
멀티모달 AI