Gmailの通知をフィルタリングしてTelegramチャットに転送

初級

これはSupport, IT Ops分野の自動化ワークフローで、5個のノードを含みます。主にIf, Telegram, GmailTriggerなどのノードを使用。 Gmailの通知をフィルタリングしてTelegramチャットに転送する

前提条件
  • Telegram Bot Token
  • Googleアカウント + Gmail API認証情報

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "AvXlqUiuc1qJSwxf",
  "meta": {
    "instanceId": "14e4c77104722ab186539dfea5182e419aecc83d85963fe13f6de862c875ebfa"
  },
  "name": "Forward Filtered Gmail Notifications to Telegram Chat",
  "tags": [],
  "nodes": [
    {
      "id": "99441348-1d5d-459f-961f-48bd593144f2",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        0
      ],
      "parameters": {
        "color": 4,
        "width": 1000,
        "height": 300,
        "content": "# Forward Filtered Gmail Notifications to Telegram Chat\n"
      },
      "typeVersion": 1
    },
    {
      "id": "eadf565c-e753-4682-a8c2-6bc630a30a27",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        320
      ],
      "parameters": {
        "color": 4,
        "width": 1000,
        "height": 200,
        "content": "## Description :\n### This n8n workflow automatically forwards incoming Gmail emails to a Telegram chat only if the email subject contains specific keywords (like \"Urgent\" or \"Server Down\"). The workflow extracts key details such as the sender, subject, and message body, and sends them as a formatted message to a specified Telegram chat. This is useful for real-time notifications, security alerts, or monitoring important emails directly from Telegram — filtering out unnecessary emails."
      },
      "typeVersion": 1
    },
    {
      "id": "bb2a78d7-91ba-4e8c-a9f1-af270a50bd8f",
      "name": "Incoming メール Monitor",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        20,
        100
      ],
      "parameters": {
        "filters": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "5V09QSJCeHoQoKUp",
          "name": "SM MaryP (Gmail)"
        }
      },
      "notesInFlow": false,
      "typeVersion": 1.2
    },
    {
      "id": "addffc7b-ef58-4fb5-9275-3db6fd84f4c0",
      "name": "メール Validation Check",
      "type": "n8n-nodes-base.if",
      "position": [
        340,
        100
      ],
      "parameters": {
        "options": {
          "ignoreCase": false
        },
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "2496d01f-dbd5-4e23-84c3-f78decb87697",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.Subject }}",
              "rightValue": "Urgent"
            },
            {
              "id": "274e9e05-5c74-487e-851d-0ca62210cb99",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.Subject }}",
              "rightValue": "Server Down"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "e87d46b6-efc6-466f-a708-bfbf34bf001b",
      "name": "Send Telegram Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        700,
        80
      ],
      "webhookId": "c8f1d16f-b698-4af9-a795-9aaa277c2bf6",
      "parameters": {
        "text": "=From : {{ $json.From }}\nSubject :{{ $json.Subject }}\nMessage : {{ $json.snippet }}\n",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "notesInFlow": false,
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "caf5eedb-4c6b-4bfa-9a0a-2d868291a83c",
  "connections": {
    "Email Validation Check": {
      "main": [
        [
          {
            "node": "e87d46b6-efc6-466f-a708-bfbf34bf001b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Incoming Email Monitor": {
      "main": [
        [
          {
            "node": "Email Validation Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

初級 - サポート, IT運用

有料ですか?

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

ワークフロー情報
難易度
初級
ノード数5
カテゴリー2
ノードタイプ4
難易度説明

n8n初心者向け、1-5ノードのシンプルなワークフロー

作成者
WeblineIndia

WeblineIndia

@weblineindia

A Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34