8
n8n 한국어amn8n.com

Gmail AI 자동 답변기: 받은 이메일에 대응하는 초안 답변 생성

중급

이것은Sales, AI, Marketing분야의자동화 워크플로우로, 12개의 노드를 포함합니다.주로 If, Gmail, GmailTrigger, ChainLlm, LmChatOpenAi 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Gmail AI 자동 답변기: 받은 이메일에 대응하는 초안 답변 생성

사전 요구사항
  • Google 계정 및 Gmail API 인증 정보
  • OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "aOQANirVMuWrH0ZD",
  "meta": {
    "instanceId": "b78ce2d06ac74b90a581919cf44503cf07404c11eda5c3847597226683145618"
  },
  "name": "Gmail AI auto-responder: create draft replies to incoming emails",
  "tags": [],
  "nodes": [
    {
      "id": "2a9ff08f-919a-41a8-980b-8c2bca3059e4",
      "name": "Gmail 트리거",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -332.809175564116,
        566.0845437534399
      ],
      "parameters": {
        "simple": false,
        "filters": {
          "q": "-from:me"
        },
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "ofvBTX8A0aWfQb2O",
          "name": "Gmail account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3ef14615-0045-404f-a21b-2c65a52f4be8",
      "name": "답변 필요 여부 확인",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        560
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "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": "36968dd5-8d51-4184-a05a-587b6c95aa82",
      "name": "JSON 파서",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        100,
        720
      ],
      "parameters": {
        "jsonSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"needsReply\": {\n      \"type\": \"boolean\"\n      }\n  },\n  \"required\": [\"needsReply\"]\n}\n"
      },
      "typeVersion": 1
    },
    {
      "id": "2a64dce8-e2f0-475e-a366-a02084293aad",
      "name": "OpenAI 채팅",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -92.809175564116,
        726.0845437534399
      ],
      "parameters": {
        "model": "gpt-4o",
        "options": {
          "temperature": 0,
          "responseFormat": "json_object"
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "13ffkrNMlQMfvbZy",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "be892ff8-0981-4b34-9c93-7674ddd90360",
      "name": "스티키 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -429.809175564116,
        461.08454375343996
      ],
      "parameters": {
        "width": 304.10628068244364,
        "height": 394.42512272977456,
        "content": "## When I receive an Email\n"
      },
      "typeVersion": 1
    },
    {
      "id": "9d92839a-9ff2-436c-8abb-2f43e07c1ace",
      "name": "스티키 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112.809175564116,
        460.08454375343996
      ],
      "parameters": {
        "width": 556,
        "height": 397,
        "content": "## ... that Needs a Reply\n"
      },
      "typeVersion": 1
    },
    {
      "id": "3cd77609-684c-44e2-9cdc-9479cfd836bd",
      "name": "스티키 노트2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        460
      ],
      "parameters": {
        "width": 333.19082443588354,
        "height": 400.08454375343996,
        "content": "## Generate a Reply"
      },
      "typeVersion": 1
    },
    {
      "id": "b123cf31-767d-48bb-a0ba-79a69f6da585",
      "name": "스티키 노트3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        807.190824435884,
        461.08454375343996
      ],
      "parameters": {
        "width": 326,
        "height": 395,
        "content": "## ...as a Draft in the conversation"
      },
      "typeVersion": 1
    },
    {
      "id": "1a87c416-6b1c-4526-a2b6-20468c95ea0e",
      "name": "OpenAI 채팅 모델",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        680
      ],
      "parameters": {
        "model": "gpt-4-turbo",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "13ffkrNMlQMfvbZy",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "84b4d516-252e-444e-b998-2d4aa0f89653",
      "name": "Gmail - 초안 작성",
      "type": "n8n-nodes-base.gmail",
      "position": [
        900,
        560
      ],
      "parameters": {
        "message": "={{ $json.text.replace(/\\n/g, \"<br />\\n\") }}",
        "options": {
          "sendTo": "={{ $('Gmail Trigger').item.json.headers.from }}",
          "threadId": "={{ $('Gmail Trigger').item.json.threadId }}"
        },
        "subject": "=Re: {{ $('Gmail Trigger').item.json.headers.subject }}",
        "resource": "draft",
        "emailType": "html"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "ofvBTX8A0aWfQb2O",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "86017ff4-9c57-4b2a-9cd9-f62571a05ffd",
      "name": "메시지 답변 필요성 평가",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -92.809175564116,
        566.0845437534399
      ],
      "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.\nMarketing emails don't require a response."
            }
          ]
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "cab1e7e5-93dc-4850-a471-e285cdbe2058",
      "name": "이메 답변 생성",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        500,
        520
      ],
      "parameters": {
        "text": "=Subject: {{ $('Gmail Trigger').item.json.subject }}\nMessage: {{ $('Gmail Trigger').item.json.textAsHtml }}",
        "messages": {
          "messageValues": [
            {
              "message": "You're a helpful personal assistant and your task is to draft replies on my behalf to my incoming emails. Whenever I provide some text from an email, return an appropriate draft reply for it and nothing else.\nEnsure that the reply is suitable for a professional email setting and addresses the topic in a clear, structured, and detailed manner.\nDo not make things up.\n\nDetailed instructions:\n- Be concise and maintain a business casual tone.\n- Start with \"Hello,\", and end with \"Best,\"\n- When replying to yes-no questions, draft 2 responses: one affirmative and one negative separated by \" - - - - - - - OR - - - - - - - \"\n- If you don't know an answer, you can leave placeholders like \"[YOUR_ANSWER_HERE]\".\n- Don't use any special formatting, only plain text.\n- Reply in the same language as the inbound email."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.4
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c4448c34-1f75-4479-805e-20d8a69a7e00",
  "connections": {
    "36968dd5-8d51-4184-a05a-587b6c95aa82": {
      "ai_outputParser": [
        [
          {
            "node": "86017ff4-9c57-4b2a-9cd9-f62571a05ffd",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "2a64dce8-e2f0-475e-a366-a02084293aad": {
      "ai_languageModel": [
        [
          {
            "node": "86017ff4-9c57-4b2a-9cd9-f62571a05ffd",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "2a9ff08f-919a-41a8-980b-8c2bca3059e4": {
      "main": [
        [
          {
            "node": "86017ff4-9c57-4b2a-9cd9-f62571a05ffd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3ef14615-0045-404f-a21b-2c65a52f4be8": {
      "main": [
        [
          {
            "node": "cab1e7e5-93dc-4850-a471-e285cdbe2058",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1a87c416-6b1c-4526-a2b6-20468c95ea0e": {
      "ai_languageModel": [
        [
          {
            "node": "cab1e7e5-93dc-4850-a471-e285cdbe2058",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "cab1e7e5-93dc-4850-a471-e285cdbe2058": {
      "main": [
        [
          {
            "node": "84b4d516-252e-444e-b998-2d4aa0f89653",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "86017ff4-9c57-4b2a-9cd9-f62571a05ffd": {
      "main": [
        [
          {
            "node": "3ef14615-0045-404f-a21b-2c65a52f4be8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

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

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

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

중급 - 영업, 인공지능, 마케팅

유료인가요?

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

워크플로우 정보
난이도
중급
노드 수12
카테고리3
노드 유형7
난이도 설명

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

저자
Nicolas Chourrout

Nicolas Chourrout

@nchourrout

Founder of Flowful, an AI consulting agency.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34