8
n8n 한국어amn8n.com

AI 자동 이메일 라우팅 및 Slack 알림 전송

중급

이것은AI Summarization, Multimodal AI분야의자동화 워크플로우로, 7개의 노드를 포함합니다.주로 Set, Gmail, Slack, GmailTrigger, Agent 등의 노드를 사용하며. GPT-4o로 Gmail 메일 자동 분류 및 우선순위 Slack 알림 전송

사전 요구사항
  • Google 계정 및 Gmail API 인증 정보
  • Slack Bot Token 또는 Webhook URL
  • OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "name": "AI Auto-Route Emails and Send Slack Alerts",
  "nodes": [
    {
      "id": "cfcf1f18-7faa-408d-9cb6-a7eb7fab5886",
      "name": "읽지 않은 이메일 트리거",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -368,
        224
      ],
      "parameters": {
        "filters": {
          "readStatus": "unread"
        },
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "96e9c067-b27e-437c-9ea7-16e46cf1f09d",
      "name": "이메일 가져오기",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -144,
        224
      ],
      "parameters": {
        "simple": false,
        "options": {},
        "messageId": "={{ $json.id }}",
        "operation": "get"
      },
      "typeVersion": 2.1
    },
    {
      "id": "d7d471c3-65e2-43d6-8472-31d278171fd9",
      "name": "AI 에이전트",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        80,
        224
      ],
      "parameters": {
        "text": "=You are an email router. Read subject and body and output valid JSON with:\n- category: one of [sales_pre_purchase, support_technical, billing_refund, complaint_escalation]\n- from: {{$json.from?.value?.[0]?.address || $json.from?.email || ''}}\n- subject: {{$json.subject || $json.headers?.subject || $json.subject}}\n- priority: one of [low, normal, high, urgent]\n- summary: short one line summary\n- reason: short why you chose the category\n\nRules:\n- If the sender asks pre-purchase features, pricing, demos → sales_pre_purchase\n- If the sender reports bugs, errors, account access, how-to → support_technical\n- If the sender mentions charges, invoices, refunds → billing_refund\n- If the sender is angry, threatens to leave, mentions escalation or complaint → complaint_escalation\nOutput only minified JSON. No extra text.\n\nEmail Body:\n{{$json.textPlain || $json.text || ''}}\n",
        "options": {},
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "c906a662-dfe5-4bb7-ad61-5b472d4027bc",
      "name": "OpenAI 채팅 모델",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        88,
        448
      ],
      "parameters": {
        "model": {
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "ce9714c6-1d15-470b-a805-1041a7a63571",
      "name": "구조화된 출력 파서",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        216,
        448
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"category\": { \"type\": \"string\", \"enum\": [\"sales_pre_purchase\",\"support_technical\",\"billing_refund\",\"complaint_escalation\"] },\n    \"priority\": { \"type\": \"string\", \"enum\": [\"low\",\"normal\",\"high\",\"urgent\"] },\n    \"summary\": { \"type\": \"string\", \"maxLength\": 280 },\n    \"reason\": { \"type\": \"string\", \"maxLength\": 140 },\n    \"subject\": { \"type\": \"string\", \"maxLength\": 280 },\n    \"from\": { \"type\": \"string\", \"maxLength\": 140 }\n  },\n  \"required\": [\"category\",\"priority\",\"summary\",\"subject\",\"from\"],\n  \"additionalProperties\": false\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "360cf165-a32a-4aa8-8770-af244fe67995",
      "name": "라우팅 맵",
      "type": "n8n-nodes-base.set",
      "position": [
        432,
        224
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "name": "label",
              "type": "string",
              "value": "={{ $json.output.category === 'sales_pre_purchase' ? 'Sales' : $json.output.category === 'support_technical' ? 'Support' : $json.output.category === 'billing_refund' ? 'Billing' : 'Complaint' }}"
            },
            {
              "name": "slackChannel",
              "type": "string",
              "value": "={{ \n  $json.output.category === 'sales_pre_purchase' ? 'C09B7HS98GN' :\n  $json.output.category === 'support_technical' ? 'C09B5JV2G9Y' :\n  $json.output.category === 'billing_refund' ? 'C09BYN135T2' :\n  'C09B5JV2G9Y'\n}}"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "39e36a35-33f9-4f1b-a38d-cfffd4ba8127",
      "name": "Slack으로 알림 전송",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        224
      ],
      "parameters": {
        "text": "=Priority: {{$json.output.priority}}\nFrom: {{ $json.output.from }}\nSummary: {{ $json.output.summary }}\nReason: {{ $json.output.reason }}",
        "user": {
          "value": "={{ $json.slackChannel }}"
        },
        "select": "user",
        "otherOptions": {
          "includeLinkToWorkflow": false
        },
        "authentication": "oAuth2"
      },
      "typeVersion": 2.3
    }
  ],
  "connections": {
    "d7d471c3-65e2-43d6-8472-31d278171fd9": {
      "main": [
        [
          {
            "node": "360cf165-a32a-4aa8-8770-af244fe67995",
            "type": "main",
            "index": 0
          }
        ]
      ],
      "ai_outputParser": [
        [
          {
            "node": "ce9714c6-1d15-470b-a805-1041a7a63571",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ],
      "ai_languageModel": [
        [
          {
            "node": "c906a662-dfe5-4bb7-ad61-5b472d4027bc",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "96e9c067-b27e-437c-9ea7-16e46cf1f09d": {
      "main": [
        [
          {
            "node": "d7d471c3-65e2-43d6-8472-31d278171fd9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "360cf165-a32a-4aa8-8770-af244fe67995": {
      "main": [
        [
          {
            "node": "39e36a35-33f9-4f1b-a38d-cfffd4ba8127",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cfcf1f18-7faa-408d-9cb6-a7eb7fab5886": {
      "main": [
        [
          {
            "node": "96e9c067-b27e-437c-9ea7-16e46cf1f09d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

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

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

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

중급 - AI 요약, 멀티모달 AI

유료인가요?

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

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

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

저자
Matt Chong | n8n Creator

Matt Chong | n8n Creator

@mattxchong

Automation nerd fueled by good coffee, deep curiosity, and clean flows.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34