8
n8n 한국어amn8n.com

GPT-4o를 사용하여 Outlook 이메일을 색상 카테고리로 자동 분류

중급

이것은AI Summarization, Multimodal AI분야의자동화 워크플로우로, 13개의 노드를 포함합니다.주로 Set, ManualTrigger, SplitInBatches, Agent, MicrosoftOutlook 등의 노드를 사용하며. GPT-4o로 Outlook 메일 색상 범주에 자동 분류

사전 요구사항
  • OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "9ba14748-4bba-47d3-99d1-b9c4107f8a3a",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -416,
        4128
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "d3a0b91a-00c7-4a6e-96a7-b82de25ed5fe",
      "name": "워크플로우 '실행' 클릭 시",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1312,
        4000
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f8ec514b-b64c-4bd5-bc86-91b24435cbf0",
      "name": "Outlook에서 메시지 가져오기",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        -912,
        4384
      ],
      "webhookId": "b3f46aa6-f55c-420b-a444-7cd48f36f7f6",
      "parameters": {
        "limit": 5,
        "options": {},
        "operation": "getAll"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "id": "9z1nG9ReKLXU309r",
          "name": "Microsoft Outlook account 4"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "e072f4a2-0f5a-44ed-8e78-6f779f70a28b",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -256,
        4528
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4l6TDfLZVFS24g3X",
          "name": "OpenAi account 4"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4670e0fa-82e2-483f-9891-83bc4f04f8be",
      "name": "구조화된 출력 파서",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        64,
        4368
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"category\": \"Red Category, Yellow Category, or Green Category\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "3e2d22a2-c1ba-48f7-bdff-855b1106365a",
      "name": "이메일에서 필드 설정",
      "type": "n8n-nodes-base.set",
      "position": [
        -592,
        3984
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "83f69529-de2b-4d4e-aac9-cd88e4336c94",
              "name": "subject",
              "type": "string",
              "value": "={{ $json.subject }}"
            },
            {
              "id": "af0befe4-5252-4fe4-9c0a-06e207e4c9a9",
              "name": "bodyPreview",
              "type": "string",
              "value": "={{ $json.bodyPreview }}"
            },
            {
              "id": "074a3879-8b0c-4601-a1d0-3284b69fbde2",
              "name": "from",
              "type": "string",
              "value": "={{ $json.from }}"
            },
            {
              "id": "02c201fc-996e-4777-b50e-10290da09262",
              "name": "Message ID",
              "type": "string",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3fd00d0a-fed9-4a36-9146-a826ebcdd633",
      "name": "분류 에이전트",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -112,
        4112
      ],
      "parameters": {
        "text": "=body: {{ $json.bodyPreview }} subject: {{ $json.subject }}",
        "options": {
          "systemMessage": "You are a helpful assistant. take in the email message and determine if it is Red Category, Yellow Category, or Green Category. based on random\n\noutput data like this. \n\n{\n\t\"category\": \"Red Category, Yellow Category, or Green Category\"\n}\n\n"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "4a794da0-4294-4017-b7c7-59910e8f18d4",
      "name": "카테고리 및 ID 설정",
      "type": "n8n-nodes-base.set",
      "position": [
        -112,
        3920
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "85cc4512-3af8-400a-8814-2bdb75739321",
              "name": "output.category",
              "type": "string",
              "value": "={{ $json.output.category }}"
            },
            {
              "id": "d3fdc30b-9322-472c-b0ca-decb9cdd29bb",
              "name": "id",
              "type": "string",
              "value": "={{ $('Get Messages from Outlook').item.json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "27d99566-af49-42f3-808f-cafe530f6217",
      "name": "카테고리 업데이트",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        144,
        3904
      ],
      "webhookId": "714959f9-3d6f-42d1-a93a-9b0db0c50950",
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": "={{ [$json.output.category] }}"
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "id": "9z1nG9ReKLXU309r",
          "name": "Microsoft Outlook account 4"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "f25951d2-935a-4b7b-b00b-53f08a82513a",
      "name": "Sticky Note54",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        4336
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 304,
        "content": "### 2️⃣ Set Up OpenAI Connection\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)  \n2. Navigate to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  "
      },
      "typeVersion": 1
    },
    {
      "id": "4fb6ac63-881f-4740-8abc-404ac65d093a",
      "name": "Sticky Note24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        4160
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 336,
        "content": "### 2️⃣ Set Up Outlook Connection\n1. In n8n → **Credentials → New → Microsoft Outlook OAuth2 API**  \n2. Log in with your Outlook account & approve access  \n3. Attach this credential to the **Search Outlook** node in the workflow  \n4. (Optional) Change the `limit` parameter in the node if you want more/less than 5 results "
      },
      "typeVersion": 1
    },
    {
      "id": "c4449b1f-301c-4a6a-b7d8-56d65f20911c",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        3792
      ],
      "parameters": {
        "width": 400,
        "height": 928,
        "content": "\n## ⚙️ Setup Instructions\n\n### 1️⃣ Set Up Outlook Connection\n1. In n8n → **Credentials → New → Microsoft Outlook OAuth2 API**  \n2. Log in with your Outlook account & approve access  \n3. Attach this credential to the **Get Messages from Outlook** and **Update Category** nodes in the workflow  \n4. (Optional) Adjust the **limit** field in **Get Messages from Outlook** if you want more/less than 5 results  \n\n---\n\n### 2️⃣ Set Up OpenAI Connection\n1. Go to the **[OpenAI Platform](https://platform.openai.com/api-keys)**  \n2. Navigate to **[OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)**  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI** credentials in n8n and select it on the **OpenAI Chat Model** and **Categorizing Agent** nodes  \n\n\n- 📧 **robert@ynteractive.com**  \n- 🔗 **[Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)**  \n- 🌐 **[ynteractive.com](https://ynteractive.com)**\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1f45d710-c178-48de-baf3-6da87661b64e",
      "name": "Sticky Note22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        3792
      ],
      "parameters": {
        "color": 7,
        "width": 1936,
        "height": 928,
        "content": "# 📧 Auto-Categorize Outlook Emails with OpenAI (n8n)\n\nThis workflow fetches recent emails from Outlook and uses OpenAI to assign a category (e.g., **Red**, **Yellow**, **Green**). It then updates each message’s category in Outlook.\n\n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "9ba14748-4bba-47d3-99d1-b9c4107f8a3a": {
      "main": [
        [
          {
            "node": "4a794da0-4294-4017-b7c7-59910e8f18d4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "3fd00d0a-fed9-4a36-9146-a826ebcdd633",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3fd00d0a-fed9-4a36-9146-a826ebcdd633": {
      "main": [
        [
          {
            "node": "9ba14748-4bba-47d3-99d1-b9c4107f8a3a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e072f4a2-0f5a-44ed-8e78-6f779f70a28b": {
      "ai_languageModel": [
        [
          {
            "node": "3fd00d0a-fed9-4a36-9146-a826ebcdd633",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "4a794da0-4294-4017-b7c7-59910e8f18d4": {
      "main": [
        [
          {
            "node": "27d99566-af49-42f3-808f-cafe530f6217",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3e2d22a2-c1ba-48f7-bdff-855b1106365a": {
      "main": [
        [
          {
            "node": "9ba14748-4bba-47d3-99d1-b9c4107f8a3a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4670e0fa-82e2-483f-9891-83bc4f04f8be": {
      "ai_outputParser": [
        [
          {
            "node": "3fd00d0a-fed9-4a36-9146-a826ebcdd633",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "f8ec514b-b64c-4bd5-bc86-91b24435cbf0": {
      "main": [
        [
          {
            "node": "3e2d22a2-c1ba-48f7-bdff-855b1106365a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d3a0b91a-00c7-4a6e-96a7-b82de25ed5fe": {
      "main": [
        [
          {
            "node": "f8ec514b-b64c-4bd5-bc86-91b24435cbf0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

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

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

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

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

유료인가요?

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

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

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

저자
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34