📨 GmailメールAIサマリーをTelegramに送信
中級
これはOther, AI分野の自動化ワークフローで、7個のノードを含みます。主にSet, Telegram, GmailTrigger, Agent, LmChatOpenAiなどのノードを使用、AI技術を活用したスマート自動化を実現。 GmailからTelegramへ:OpenAI GPT-4oを使用したメール要約
前提条件
- •Telegram Bot Token
- •Googleアカウント + Gmail API認証情報
- •OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "c0Ti00TfFE1MdpZd",
"meta": {
"instanceId": "a059b3dfdab56aa587cc6a2c8635f6f2700cf0c7064dbfb5981c26f7ad9eab88",
"templateCredsSetupCompleted": true
},
"name": "📨 Send AI summaries of incoming emails from Gmail to Telegram",
"tags": [],
"nodes": [
{
"id": "28581eaf-47f8-43ad-81cf-688d8f77a630",
"name": "エージェント用フィールド準備",
"type": "n8n-nodes-base.set",
"position": [
-80,
-160
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "ffff425d-cd86-498a-9984-d4c97c082a7b",
"name": "summary_language",
"type": "string",
"value": "={{ $json.summary_language }}"
},
{
"id": "a6dc9f16-faa1-4d82-be3c-b80937563605",
"name": "from",
"type": "string",
"value": "={{ $json.from?.text || $json.from?.value?.[0]?.address || 'Unknown sender' }}"
},
{
"id": "c4f8daff-77e0-453f-82c2-751a8d6b8061",
"name": "subject",
"type": "string",
"value": "={{ $json.subject }}"
},
{
"id": "43c37703-1f05-4f20-9d6f-0f7c08be6462",
"name": "message",
"type": "string",
"value": "={{ $json.html || $json.text || 'No message content available' }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f72c5973-cc9d-4815-993c-ed7bd853fcc4",
"name": "新着メール受信時",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
-520,
-160
],
"parameters": {
"simple": false,
"filters": {},
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"credentials": {
"gmailOAuth2": {
"id": "52DG6yepye2Q3ivM",
"name": "Main email"
}
},
"typeVersion": 1.2
},
{
"id": "95fb2d1e-efbb-4163-9e75-b85cf3fd50bf",
"name": "要約言語設定",
"type": "n8n-nodes-base.set",
"position": [
-300,
-160
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "148dcae1-3b72-4c28-b143-18b4b9877295",
"name": "summary_language",
"type": "string",
"value": "english"
}
]
},
"includeOtherFields": true
},
"typeVersion": 3.4
},
{
"id": "8db9747f-c0a6-4044-837a-04212c8dbe56",
"name": "OpenAI Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
228,
60
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "hezW67W6g8iheWed",
"name": "OpenAI"
}
},
"typeVersion": 1.2
},
{
"id": "8823b3ab-4e9b-4be6-bf6c-9772f1fcd17e",
"name": "Telegramへ要約送信",
"type": "n8n-nodes-base.telegram",
"position": [
516,
-160
],
"webhookId": "b38c3ed8-da48-4c6c-b5a3-181889dd3dd3",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "SAMPLE CHAT ID - CHANGE IT",
"additionalFields": {
"parse_mode": "Markdown",
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "tFFmBDMsBJhTfMxK",
"name": "Sample Telegram account"
}
},
"retryOnFail": true,
"typeVersion": 1.2,
"waitBetweenTries": 3000
},
{
"id": "ad603819-26e0-41e8-b4bb-99d30cbc4902",
"name": "要約生成エージェント",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
140,
-160
],
"parameters": {
"text": "=Summarize the following email in this language: {{ $json.summary_language }}\n\nFrom: {{ $json.from }}\nSubject: {{ $json.subject }}\n\n{{ $json.message }}",
"options": {
"systemMessage": "You summarize emails in a short, natural, and informal way. Use a casual tone, like you're talking to a friend. Always write in the language specified by the user. Include who sent the email, what it’s about, the most relevant details (like purchase info, prices, discounts, dates, or refund conditions), and ignore anything redundant or overly formal. Avoid robotic language, lists, or instructions like “keep this email.” Just say what matters."
},
"promptType": "define"
},
"retryOnFail": true,
"typeVersion": 1.9,
"waitBetweenTries": 3000
},
{
"id": "89b1c4b0-3de4-4a81-a57b-a5e4951ea654",
"name": "付箋メモ",
"type": "n8n-nodes-base.stickyNote",
"position": [
-540,
-680
],
"parameters": {
"color": 5,
"width": 1240,
"height": 480,
"content": "## 📨 Send AI summaries of incoming emails from Gmail to Telegram\n\n### ℹ️ ABOUT THIS WORKFLOW\nThis workflow will send you AI-generated summaries of all your Gmail incoming emails to Telegram.\n\n### 🛠️ SETUP\n1. Create credentials for Gmail, Telegram, and OpenAI.\n2. Add the Gmail credential to the Gmail node.\n3. Add the OpenAI credential to the OpenAI Model node.\n4. Add the Telegram credential to the Telegram node.\n5. Set your Chat ID in the Telegram node; you can find it out by using Telegram's get ID bot.\n\n### 🎨 CUSTOMIZING THE SUMMARIES\nYou can customize the generated summaries by:\n- Changing the language in the \"Set summary language\" node. You can type anything you want here, you can even specify a specific zone dialect.\n- Modifying the prompts (in the \"Summary generation agent\" node)\n- Selecting another model (in the \"OpenAI Model\" node)\n- You can also replace the \"OpenAI Model\" node with another provider, such as Anthropic or DeepSeek."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1",
"executionTimeout": -1
},
"versionId": "c6cbf099-6fdf-45c0-bb63-32132f175d10",
"connections": {
"8db9747f-c0a6-4044-837a-04212c8dbe56": {
"ai_languageModel": [
[
{
"node": "ad603819-26e0-41e8-b4bb-99d30cbc4902",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"95fb2d1e-efbb-4163-9e75-b85cf3fd50bf": {
"main": [
[
{
"node": "28581eaf-47f8-43ad-81cf-688d8f77a630",
"type": "main",
"index": 0
}
]
]
},
"28581eaf-47f8-43ad-81cf-688d8f77a630": {
"main": [
[
{
"node": "ad603819-26e0-41e8-b4bb-99d30cbc4902",
"type": "main",
"index": 0
}
]
]
},
"ad603819-26e0-41e8-b4bb-99d30cbc4902": {
"main": [
[
{
"node": "8823b3ab-4e9b-4be6-bf6c-9772f1fcd17e",
"type": "main",
"index": 0
}
]
]
},
"f72c5973-cc9d-4815-993c-ed7bd853fcc4": {
"main": [
[
{
"node": "95fb2d1e-efbb-4163-9e75-b85cf3fd50bf",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - その他, 人工知能
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
AI自動化とアイグゥチューブの構築と販売
販売AIの自動化とエージェントの構築
If
Set
Wait
+
If
Set
Wait
74 ノードNICKYAI
その他
MCPサーバーを基にしたAI Telegramタスクマネージャー
MCP サーバーの統合を备えた AI Telegram タスク マネージメント システム
Set
Switch
Telegram
+
Set
Switch
Telegram
21 ノードFrancis Njenga
その他
AIを使用してTelegramからソーシャルメディアコンテンツを作成
TelegramからAIを使用してソーシャルメディアコンテンツを作成する
Set
Switch
Telegram
+
Set
Switch
Telegram
16 ノードOnur
その他
毎日のAIニュース翻訳と要約をGPT-4とTelegramで配信
GPT-4およびTelegramを使ったAIニュース翻訳と要約を毎日送信
Set
Merge
Telegram
+
Set
Merge
Telegram
12 ノードSamirLiu
その他
音楽生成ワーキングフロー
Suno API、Flux、Runway、Creatomate を使って AI ソングとミュージックビデオを生成
Set
Wait
Merge
+
Set
Wait
Merge
60 ノードJoseph
その他
AIエージェントを使用してTelegramの食事栄養をGoogle Sheetsに記録
AIエージェントを使用してTelegramから食事の栄養情報をGoogle Sheetsに記録
If
Set
Code
+
If
Set
Code
23 ノードPollupAI
その他
ワークフロー情報
難易度
中級
ノード数7
カテゴリー2
ノードタイプ6
作成者
Lucía Maio Brioso
@luciambI'm a backend software developer who loves n8n ⚙️ I enjoy automating everything and share templates I personally find helpful 💡
外部リンク
n8n.ioで表示 →
このワークフローを共有