スマートGmail分類ツール:OpenAIを使用して分類とタグ付け
中級
これはAI Summarization, Multimodal AI分野の自動化ワークフローで、8個のノードを含みます。主にCron, Gmail, LmChatOpenAi, TextClassifierなどのノードを使用。 GPT-4o-miniを使ってGmailのメッセージを自動分類してマーキング
前提条件
- •Googleアカウント + Gmail API認証情報
- •OpenAI API Key
使用ノード (8)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "MkRETKpIFPWYCRiM",
"meta": {
"instanceId": "3d02c71388317a973647ceedf481a6b7f92941c766cf17f67388ab341d525980",
"templateCredsSetupCompleted": true
},
"name": "Smart Gmail Classifier: Classify & Label with openAI",
"tags": [],
"nodes": [
{
"id": "9038f706-1cf8-4156-9858-969a7bde62e3",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-848,
576
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "h5qIkLzWPJjRPGNc",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "0ee542ce-85bc-405a-ba04-7a257e8d6f4f",
"name": "求人",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
0
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_3116546262966183424"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "ee69125c-46ae-439d-b0b7-c016af1b5df6",
"name": "応募状況",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
192
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_1823036576628176913"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "37f396b6-7327-43db-b4e5-e34756b82a34",
"name": "その他",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
384
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_4879539884577568757"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "d937e43b-7f05-4eda-bf9e-409a325f6999",
"name": "お問い合わせ",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
576
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_2255072803109768357"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"name": "メール分類",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-944,
288
],
"parameters": {
"options": {
"systemPromptTemplate": "=Please classify the text provided by the user into one of the following categories: {categories}, and use the provided formatting instructions below. Don't explain, and only output the json."
},
"inputText": "={{ $json.text }}",
"categories": {
"categories": [
{
"category": "Job Opportunity",
"description": "Emails that reflects potential jobs matched as per the profile i've shared across various job sites"
},
{
"category": "Application Status",
"description": "Email that updates about any jobs i applied or any updates about the position i interviewed for or the position i didn't get selected"
},
{
"category": "Others",
"description": "The rest of email communication that does not fall under Job Opportunity or Application Status"
},
{
"category": "Enquiries",
"description": "Email that raise enquiry about my details or the work i do or the service i provide."
}
]
}
},
"typeVersion": 1.1
},
{
"id": "1e886235-18c7-4f6e-a744-7a177807e00a",
"name": "メール定期チェック",
"type": "n8n-nodes-base.cron",
"position": [
-1392,
288
],
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 23
}
]
}
},
"typeVersion": 1
},
{
"id": "07c859f1-82ff-4268-bd99-087608931420",
"name": "新着メール取得",
"type": "n8n-nodes-base.gmail",
"position": [
-1168,
288
],
"webhookId": "e76d0a4c-ea02-4ea4-b427-027315c1a846",
"parameters": {
"limit": 10,
"simple": false,
"filters": {
"receivedAfter": "2025-08-10T17:28:41"
},
"options": {},
"operation": "getAll"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "7aa60bda-b007-4b69-b22a-aac8d578e193",
"connections": {
"eb4f2bf6-4535-4b96-a215-5c99f3f0bb04": {
"main": [
[
{
"node": "0ee542ce-85bc-405a-ba04-7a257e8d6f4f",
"type": "main",
"index": 0
}
],
[
{
"node": "ee69125c-46ae-439d-b0b7-c016af1b5df6",
"type": "main",
"index": 0
}
],
[
{
"node": "37f396b6-7327-43db-b4e5-e34756b82a34",
"type": "main",
"index": 0
}
],
[
{
"node": "d937e43b-7f05-4eda-bf9e-409a325f6999",
"type": "main",
"index": 0
}
]
]
},
"07c859f1-82ff-4268-bd99-087608931420": {
"main": [
[
{
"node": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"type": "main",
"index": 0
}
]
]
},
"1e886235-18c7-4f6e-a744-7a177807e00a": {
"main": [
[
{
"node": "07c859f1-82ff-4268-bd99-087608931420",
"type": "main",
"index": 0
}
]
]
},
"9038f706-1cf8-4156-9858-969a7bde62e3": {
"ai_languageModel": [
[
{
"node": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - AI要約, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
エイスノワーサー矩陣とGPT-4.1-miniによるGmailメールTriagingの自動化
エイゼンハワー・マトリックスとGPT-4.1-miniを使ったGmailメールの自動スルー分類
Gmail
Filter
Gmail Trigger
+
Gmail
Filter
Gmail Trigger
18 ノードCristian Tala Sánchez
AI要約
Gmail、GPT、テーブルを使用した自動メール分類&返信システム
Gmail、GPT、およびテーブルを使用した自動メール分類と返信システム
Set
Gmail
Error Trigger
+
Set
Gmail
Error Trigger
35 ノードSergio Afonso
AI要約
シンプルなメール分類器
GPT-4 MiniによるGmailメールの自動分類
Gmail
Gmail Trigger
Lm Chat Open Ai
+
Gmail
Gmail Trigger
Lm Chat Open Ai
8 ノードIlyass Kanissi
AI要約
OpenAI GPT-4によるGmailメールの自動分類とマーキング
OpenAI GPT-4によるGmailメールの自動分類とマーキング
Gmail
Split In Batches
Schedule Trigger
+
Gmail
Split In Batches
Schedule Trigger
15 ノードBilly Christi
AI要約
受信頼入り口管理エージェント
GPT-5 分類を使用して Gmail メッセージに自動のにラベルを付ける
Gmail
Gmail Trigger
Lm Chat Open Ai
+
Gmail
Gmail Trigger
Lm Chat Open Ai
8 ノードAbideen Bello
AI要約
GPT-4o mini を使用して Gmail メールを分類し、Telegram 通知を送信
GPT-4o mini を使って Gmail のメールを分類し、Telegram へ通知を送信
Gmail
Telegram
Gmail Trigger
+
Gmail
Telegram
Gmail Trigger
13 ノードChristian Moises
AI要約
ワークフロー情報
難易度
中級
ノード数8
カテゴリー2
ノードタイプ4
作成者
Ashish Kumar Swain
@phoenixHi, I’m Ashish — an automation architect and AI enthusiast helping people work smarter. I build AI-powered workflows that save time, boost productivity, and create real-world impact. Passionate about no-code, startups, and smart systems that scale. Let’s automate success, one workflow at a time! 🚀
外部リンク
n8n.ioで表示 →
このワークフローを共有