メール要約

中級

これはPersonal Productivity, AI Summarization分野の自動化ワークフローで、8個のノードを含みます。主にCode, Gmail, Aggregate, Agent, ScheduleTriggerなどのノードを使用。 GmailとOpenRouterのGPT-3.5を使用して自動化された毎日のメール要約を生成

前提条件
  • Googleアカウント + Gmail API認証情報
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "qP5k8BFhuCwgV11k",
  "meta": {
    "instanceId": "6851c31ef6402f951221982c1f1a22b3b1853c378309b131c1582e19af821817"
  },
  "name": "Email Digest",
  "tags": [],
  "nodes": [
    {
      "id": "46d63134-365b-4bc5-a657-e0a3743f5cf7",
      "name": "スケジュールトリガー",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        640,
        352
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 7
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6c1b4568-6665-44d1-b6bc-6bdd846cdd69",
      "name": "集計",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1280,
        352
      ],
      "parameters": {
        "include": "specifiedFields",
        "options": {
          "includeBinaries": false
        },
        "aggregate": "aggregateAllItemData",
        "fieldsToInclude": "id, From, To, Subject, snippet,CC"
      },
      "typeVersion": 1
    },
    {
      "id": "5f7ac7f7-a583-411f-8868-f6f0f94a053d",
      "name": "OpenRouterチャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1504,
        512
      ],
      "parameters": {
        "model": "openai/gpt-3.5-turbo",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "35906c87-a40f-4813-be44-8176c841dcfa",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 2080,
        "height": 800,
        "content": "## Daily Email Digest - Workflow Overview\nThis workflow automates sending a daily summary email digest based on Gmail messages matching a specific query.\n\n## How it works:\n- Schedule Trigger fires every day at 7 AM to start the workflow automatically.\n- The Code node generates a Gmail search query for emails from the last 24 hours for a specified email address.\n- Get many messages node queries Gmail using this search string and retrieves all matching emails.\n- Aggregate node consolidates email data, extracting fields like From, To, Subject, snippet, and CC.\n- AI Agent powered by LangChain & OpenRouter analyzes aggregated email data to:\n- Extract key topics, action items, and deadlines\n- Summarize critical info clearly and concisely\n- The summarized digest is sent via Gmail’s Send a message node to the recipient.\n\n## Ideal for:\n- Professionals wanting quick daily email summaries\n- Managers tracking team or client communications\n- Anyone who wants to stay updated without reading all emails\n- Automating email triage and follow-ups\n\n## What you need:\n- n8n instance with internet access\n- Gmail account with OAuth2 credentials configured in n8n\n- OpenRouter API key connected to LangChain nodes\n- Update the email address in the Code node to target your inbox\n\n## Notes:\n- Customize the AI Agent prompt to change summary style or details\n- Ensure proper permissions/scopes granted to Gmail API for reading and sending emails\n- Set the schedule trigger time to your preferred daily digest time"
      },
      "typeVersion": 1
    },
    {
      "id": "1c67630d-b1a1-49b6-bf3e-296671ea69d3",
      "name": "未読メールの取得",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1072,
        352
      ],
      "webhookId": "c5fbc402-41c9-4cd2-8102-569394b084f1",
      "parameters": {
        "filters": {
          "q": "={{ $json.searchQuery }}"
        },
        "operation": "getAll",
        "returnAll": true
      },
      "typeVersion": 2.1
    },
    {
      "id": "490e099b-77af-4fdc-8b0f-6119e8858cda",
      "name": "要約",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1504,
        352
      ],
      "parameters": {
        "text": "={{ $json.data }}",
        "options": {
          "systemMessage": "=Email Processing System\n\nStep 1: Extract Key Details\nRead the email thoroughly and identify:\n\nMain topics discussed\n\nCritical data points (dates, numbers, names)\n\nExplicit requests or requirements\n\nProblems or concerns raised\n\nStep 2: Organize Output\nSummary of Email\nBullet-point list of key takeaways\n\nExample:\n\nProject deadline extended to March 15\n\nNew compliance rules apply to all vendors\n\nIssues Identified\nList problems with context:\n\nIssue: Vendor delay impacting timeline\n\nImpact: Risk to Q2 launch\n\nAction Items\nClear tasks with owners:\n\nTask: Approve revised budget\n\nOwner: Finance Team\n\nDeadline: EOD Friday\n\nFollow-Up Needed\nOpen questions or missing info:\n\n\"Confirm if the client approved the scope change?\"\n\nRules for Clarity\n✔ Be concise – 1 line per point\n✔ Prioritize – Flag urgent items with [!]\n✔ Ownership – Always note who needs to act\n✔ Use plain language – Avoid jargon\n\nExample Output:\n\nSummary\n\nMarketing campaign paused due to budget review\n\nNew analytics tool rollout delayed by 2 weeks\n\nIssues\n\n[!] Budget approval missing – blocking all spend\n\nLow engagement on recent social posts\n\nActions\n\nSend revised budget to CFO (Owner: Alex)\n\nAudit social content (Owner: Marketing, Due: Nov 30)\n\nFollow-Up\n\nIs the budget review meeting scheduled?"
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "c5895989-9d5f-4337-b5fb-83abeb05be8e",
      "name": "要約メールの送信",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1872,
        352
      ],
      "webhookId": "13b2950b-47c0-4578-8c3f-b444d00cb1bd",
      "parameters": {
        "sendTo": "={{ $('Aggregate').item.json.data[1].To }}",
        "message": "={{ $json.output }}",
        "options": {
          "appendAttribution": false
        },
        "subject": "Summary Of Emails Last 24 Hours",
        "emailType": "text"
      },
      "typeVersion": 2.1
    },
    {
      "id": "ae322ead-35fd-458e-ba37-263ee2f37e32",
      "name": "前日の日付の取得",
      "type": "n8n-nodes-base.code",
      "position": [
        848,
        352
      ],
      "parameters": {
        "jsCode": "const yesterday = new Date();\nyesterday.setDate(yesterday.getDate() - 1);\n\nconst year = yesterday.getFullYear();\nconst month = (yesterday.getMonth() + 1).toString().padStart(2, '0');\nconst day = yesterday.getDate().toString().padStart(2, '0');\n\nconst searchQuery = `<Your Email ID> after:${year}/${month}/${day}`;\n\nreturn [\n  {\n    json: {\n      searchQuery\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "87f35ba3-5574-4e08-b77b-b908d05c3118",
  "connections": {
    "490e099b-77af-4fdc-8b0f-6119e8858cda": {
      "main": [
        [
          {
            "node": "c5895989-9d5f-4337-b5fb-83abeb05be8e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6c1b4568-6665-44d1-b6bc-6bdd846cdd69": {
      "main": [
        [
          {
            "node": "490e099b-77af-4fdc-8b0f-6119e8858cda",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "46d63134-365b-4bc5-a657-e0a3743f5cf7": {
      "main": [
        [
          {
            "node": "ae322ead-35fd-458e-ba37-263ee2f37e32",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5f7ac7f7-a583-411f-8868-f6f0f94a053d": {
      "ai_languageModel": [
        [
          {
            "node": "490e099b-77af-4fdc-8b0f-6119e8858cda",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ae322ead-35fd-458e-ba37-263ee2f37e32": {
      "main": [
        [
          {
            "node": "1c67630d-b1a1-49b6-bf3e-296671ea69d3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1c67630d-b1a1-49b6-bf3e-296671ea69d3": {
      "main": [
        [
          {
            "node": "6c1b4568-6665-44d1-b6bc-6bdd846cdd69",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - 個人の生産性, AI要約

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

Mistral AI、LinkedIn、Google Sheets を使って求人検索と履歴書のカスタマイズを自動化
Mistral AI、LinkedIn、Google Sheets を使って 自動採用情報の検索とCVカスタマイズを行う
Set
Code
Html
+
Set
Code
Html
46 ノードJordan Hoyle
個人の生産性
Gemini、Slack、Notionを使ってニュース速報からAI要約を作成
Gemini、Slack、Notionを使ってニュース速報からAI情報要約を作成
Set
Code
Gmail
+
Set
Code
Gmail
19 ノードHarry Siggins
その他
Gmailへn8nによる送信タイムリミットの通知
AIベースのn8nリリースノート要約通知(Gmail経由でGPT-5-Miniを使用)
Set
Code
Html
+
Set
Code
Html
16 ノードJeff Huera
個人の生産性
生まれ日メール
Google Sheets、OpenRouter GPT-4o、Gmailを使った自動誕生日メール
Gmail
Filter
Google Sheets
+
Gmail
Filter
Google Sheets
7 ノードParth Pansuriya
個人の生産性
Mistral AIを使用したメールからタスク自動化(Gmail/OutlookからGoogle Tasksへ、またはMicrosoft To Doへ)
Mistral AI を基にしたメールからタスク自動化(Gmail/Outlook → Google Tasks / Microsoft To Do)
Code
Gmail
Merge
+
Code
Gmail
Merge
35 ノードJordan Hoyle
個人の生産性
AI駆動のGoogle Mapsビジネスデータスクレイピングとスプレッドシート出力
AIを基盤としたGoogle Mapsビジネスデータの収集、データの充実化、スプレッドシートへのエクスポートをサポート
If
Code
Wait
+
If
Code
Wait
25 ノードMsaid Mohamed el hadi
リード獲得
ワークフロー情報
難易度
中級
ノード数8
カテゴリー2
ノードタイプ7
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Parth Pansuriya

Parth Pansuriya

@parthpansuriya

I build smart and scalable automation workflows using n8n to simplify tasks, connect apps, and boost productivity. From WhatsApp bots to AI-powered systems, I create seamless automations tailored for business and creators.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34