8
n8n 한국어amn8n.com

정식 Gmail 초안이 업데이트됨

고급

이것은Ticket Management, AI RAG분야의자동화 워크플로우로, 18개의 노드를 포함합니다.주로 If, Gmail, GmailTrigger, Agent, ChainLlm 등의 노드를 사용하며. GPT-4.1, Pinecone RAG 및 Gmail을 사용한 자동화된 제품 메일 지원

사전 요구사항
  • Google 계정 및 Gmail API 인증 정보
  • OpenAI API Key
  • Pinecone API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "qeDWlH9s79U0ePoL",
  "meta": {
    "instanceId": "5ca157bf036415a321c9d29eeb986017053989bb83b5b61701e90fe3987ac8b7",
    "templateCredsSetupCompleted": true
  },
  "name": "Formal Gmail Draft Updated",
  "tags": [],
  "nodes": [
    {
      "id": "5a2cd71e-c453-4d50-abd6-c548175665e0",
      "name": "벡터 저장소로 질문 답변",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        -688,
        1472
      ],
      "parameters": {
        "name": "safai_info",
        "description": "Use this tool to answer every questions by the user."
      },
      "typeVersion": 1
    },
    {
      "id": "6f04f96a-80af-4498-8fb6-9fbb0d9765fb",
      "name": "Pinecone 벡터 저장소1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -784,
        1600
      ],
      "parameters": {
        "options": {
          "pineconeNamespace": "mens-collection"
        },
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "mens-collection",
          "cachedResultName": "mens-collection"
        }
      },
      "credentials": {
        "pineconeApi": {
          "id": "nWCibAdZpkZoDctX",
          "name": "PineconeApi account Rashed's"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "156218ac-ac53-4709-a817-6ad0c3c0391b",
      "name": "OpenAI 임베딩",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -656,
        1744
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "G7yKHr9wDJKojrFb",
          "name": "OpenAi account nagorik"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "0081e565-c292-48a8-bc29-c6197e0b56de",
      "name": "OpenAI 채팅 모델2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -960,
        1472
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-nano",
          "cachedResultName": "gpt-4.1-nano"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "G7yKHr9wDJKojrFb",
          "name": "OpenAi account nagorik"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2a672d15-27ca-4891-898d-aee83839f994",
      "name": "OpenAI 채팅 모델3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -432,
        1600
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-nano",
          "cachedResultName": "gpt-4.1-nano"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "G7yKHr9wDJKojrFb",
          "name": "OpenAi account nagorik"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f190f735-3dd1-4680-83ab-1b853816e5f0",
      "name": "Gmail 트리거1",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -1760,
        1296
      ],
      "parameters": {
        "simple": false,
        "filters": {
          "q": "-from:me"
        },
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "cxgUDYN2OU5W186J",
          "name": "Nagorik Gmail Account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c7d38e8b-313e-4029-9162-a4a421efbdac",
      "name": "답변 필요 여부 확인1",
      "type": "n8n-nodes-base.if",
      "position": [
        -1184,
        1312
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "53849246-ad32-4845-9976-9f9688f5a6f2",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.needsReply }}",
              "rightValue": "true"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a396adb8-3aef-46f1-af0b-35b9bb0c55a7",
      "name": "JSON 파서1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1392,
        1488
      ],
      "parameters": {
        "jsonSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"needsReply\": {\n \"type\": \"boolean\"\n }\n },\n \"required\": [\"needsReply\"]\n}\n"
      },
      "typeVersion": 1
    },
    {
      "id": "e1e6c625-b2c9-4987-84b9-bdd01c7c0add",
      "name": "OpenAI 채팅1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1552,
        1488
      ],
      "parameters": {
        "model": "gpt-4.1",
        "options": {
          "temperature": 0,
          "responseFormat": "json_object"
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "G7yKHr9wDJKojrFb",
          "name": "OpenAi account nagorik"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "abdef9bf-cfeb-4530-aac0-7c686d6a5d4c",
      "name": "메시지 답변 필요성 평가1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -1536,
        1312
      ],
      "parameters": {
        "prompt": "=Subject: {{ $json.subject }}\nMessage:\n{{ $json.textAsHtml }} ",
        "messages": {
          "messageValues": [
            {
              "message": "=Your task is to assess if the message requires a response. Return in JSON format true if it does, false otherwise. Emails which are not asking about anything regarding our men's clothin store don't require a response."
            }
          ]
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "2b435c89-1c00-41fe-ba84-6e5d81f213c5",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -592,
        1136
      ],
      "webhookId": "6c2297da-923d-448f-8790-ea6e7c59097a",
      "parameters": {
        "message": "={{ $json.output }}",
        "options": {},
        "emailType": "text",
        "messageId": "={{ $('Gmail Trigger1').item.json.id }}",
        "operation": "reply"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "cxgUDYN2OU5W186J",
          "name": "Nagorik Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "5d2ee49d-a014-4ba6-a036-5a2c610203bd",
      "name": "스티커 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        1200
      ],
      "parameters": {
        "color": 4,
        "height": 256,
        "content": "## Collecting Recieved Email"
      },
      "typeVersion": 1
    },
    {
      "id": "88aa8b62-f52e-49f0-8c12-bc3c1b0b78b8",
      "name": "스티커 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1584,
        1200
      ],
      "parameters": {
        "width": 304,
        "height": 448,
        "content": "## Assesing whether the mail needs a reply or not"
      },
      "typeVersion": 1
    },
    {
      "id": "0dfaa8d0-9879-4ceb-89c0-51da658748b5",
      "name": "스티커 노트2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        1200
      ],
      "parameters": {
        "color": 3,
        "width": 272,
        "height": 272,
        "content": "## Selecting only the mails that need a reply"
      },
      "typeVersion": 1
    },
    {
      "id": "3b53a096-022b-4f4c-9b08-f18211c6e7b4",
      "name": "스티커 노트3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        1392
      ],
      "parameters": {
        "color": 6,
        "width": 528,
        "height": 480,
        "content": "## Custom Knowledge Base for the AI Agent"
      },
      "typeVersion": 1
    },
    {
      "id": "72bca71f-0248-4132-a0c6-ccfe1fa2ab32",
      "name": "스티커 노트4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        1136
      ],
      "parameters": {
        "color": 5,
        "width": 304,
        "height": 208,
        "content": "## RAG Agent"
      },
      "typeVersion": 1
    },
    {
      "id": "dca5339b-d877-42c6-bed3-377d51f6b26a",
      "name": "AI 에이전트",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -944,
        1200
      ],
      "parameters": {
        "text": "=Subject: {{ $('Gmail Trigger1').item.json.headers.subject }}\nMessage: {{ $('Gmail Trigger1').item.json.text }}",
        "options": {
          "systemMessage": "=You are a friendly and professional support agent for a men's clothing store whose goal is to help users by providing clear, accurate, and empathetic responses to their email. When a user asks a question or describes an issue through email regarding anything related to men's clothing store, use the Retrieval-Augmented Generation (RAG) tool to search and fetch the most relevant, up-to-date information from the knowledge base or documents available. Start the response with \"Dear\" header and end by saying \"Best regrads\" footer just like how a mail is written. (Dont add any name after \"Dear\")\n\nYour responses should:\n\n* Acknowledge the user’s concern with empathy.\n* Use the RAG tool to find precise information relevant to the user’s query.\n* Clearly explain the solution or information in simple, easy-to-understand language.\n* If you don’t find an exact answer, be honest about it and offer helpful alternatives or next steps.\n* Always maintain a polite, patient, and supportive tone.\n* Keep responses short and concise: Only provide the price and key features of the service requested. Avoid additional details unless directly requested."
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "98ac7648-0609-46c8-892f-fcfc236086a0",
      "name": "스티커 노트5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        1056
      ],
      "parameters": {
        "color": 4,
        "width": 224,
        "height": 240,
        "content": "## Sending a Reply"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6e680f8b-d304-441c-9c11-5bdacf7b7c87",
  "connections": {
    "dca5339b-d877-42c6-bed3-377d51f6b26a": {
      "main": [
        [
          {
            "node": "2b435c89-1c00-41fe-ba84-6e5d81f213c5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a396adb8-3aef-46f1-af0b-35b9bb0c55a7": {
      "ai_outputParser": [
        [
          {
            "node": "abdef9bf-cfeb-4530-aac0-7c686d6a5d4c",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "e1e6c625-b2c9-4987-84b9-bdd01c7c0add": {
      "ai_languageModel": [
        [
          {
            "node": "abdef9bf-cfeb-4530-aac0-7c686d6a5d4c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "f190f735-3dd1-4680-83ab-1b853816e5f0": {
      "main": [
        [
          {
            "node": "abdef9bf-cfeb-4530-aac0-7c686d6a5d4c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c7d38e8b-313e-4029-9162-a4a421efbdac": {
      "main": [
        [
          {
            "node": "dca5339b-d877-42c6-bed3-377d51f6b26a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "156218ac-ac53-4709-a817-6ad0c3c0391b": {
      "ai_embedding": [
        [
          {
            "node": "6f04f96a-80af-4498-8fb6-9fbb0d9765fb",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "0081e565-c292-48a8-bc29-c6197e0b56de": {
      "ai_languageModel": [
        [
          {
            "node": "dca5339b-d877-42c6-bed3-377d51f6b26a",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "2a672d15-27ca-4891-898d-aee83839f994": {
      "ai_languageModel": [
        [
          {
            "node": "5a2cd71e-c453-4d50-abd6-c548175665e0",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "6f04f96a-80af-4498-8fb6-9fbb0d9765fb": {
      "ai_vectorStore": [
        [
          {
            "node": "5a2cd71e-c453-4d50-abd6-c548175665e0",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "abdef9bf-cfeb-4530-aac0-7c686d6a5d4c": {
      "main": [
        [
          {
            "node": "c7d38e8b-313e-4029-9162-a4a421efbdac",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5a2cd71e-c453-4d50-abd6-c548175665e0": {
      "ai_tool": [
        [
          {
            "node": "dca5339b-d877-42c6-bed3-377d51f6b26a",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

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

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

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

고급 - 티켓 관리, AI RAG

유료인가요?

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

워크플로우 정보
난이도
고급
노드 수18
카테고리2
노드 유형11
난이도 설명

고급 사용자를 위한 16+개 노드의 복잡한 워크플로우

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34