使用AI摘要监控n8n GitHub更新并发送到Telegram
高级
这是一个DevOps, AI Summarization领域的自动化工作流,包含 16 个节点。主要使用 Set, Filter, Github, Telegram, ScheduleTrigger 等节点。 使用GPT-4o-mini从GitHub获取每日拉取请求摘要并发送到Telegram
前置要求
- •GitHub Personal Access Token
- •Telegram Bot Token
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "jI7ZJYsUKf8QUQ51",
"meta": {
"instanceId": "25e77c0c6022d4bb0bf1d4755e6d167b4f61a12eba4f980e0349847ef576722f"
},
"name": "使用 AI 摘要监控 n8n GitHub 更新并发送到 Telegram",
"tags": [],
"nodes": [
{
"id": "537b39f3-0fef-4d2c-8321-9c9b791a1f85",
"name": "每日上午 10 点检查",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1024,
352
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 10
}
]
}
},
"typeVersion": 1.2
},
{
"id": "c3d226c6-a72d-4045-a546-183a2934b8a1",
"name": "获取最新拉取请求",
"type": "n8n-nodes-base.github",
"position": [
-656,
352
],
"webhookId": "568e4e81-6d8f-47f6-9c61-172ecc2c97bb",
"parameters": {
"limit": 1,
"owner": {
"__rl": true,
"mode": "url",
"value": "https://github.com/n8n-io"
},
"resource": "repository",
"operation": "getPullRequests",
"repository": {
"__rl": true,
"mode": "list",
"value": "n8n",
"cachedResultUrl": "https://github.com/n8n-io/n8n",
"cachedResultName": "n8n"
},
"getRepositoryPullRequestsFilters": {}
},
"credentials": {
"githubApi": {
"id": "YHlVkcnz4R5j27Rx",
"name": "GitHub account"
}
},
"typeVersion": 1.1
},
{
"id": "c18dbd10-1990-4bca-a19c-7bdb702aad15",
"name": "提取 PR 摘要",
"type": "n8n-nodes-base.set",
"position": [
32,
352
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "42ee224f-6cf4-424f-9e7a-aaa3d48011db",
"name": "Summary",
"type": "string",
"value": "={{ $json.body }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "356865db-e642-4a99-9ecc-fb75ec85e6fd",
"name": "生成 AI 摘要",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
384,
352
],
"parameters": {
"text": "=Here is the update to process:\n\n{{ $json.Summary }}\n\nRelease date of this update:\n{{ $('Fetch Latest Pull Request').item.json.created_at }}",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=# Role\nYou are an expert at explaining GitHub repository updates for the n8n platform.\n\n# Context\nYou will receive the latest n8n update and a summary of what will be modified in the tool.\n\nYour goal is to translate the update summary into English (if needed), using simple words while not forgetting the important technical details in the summary.\n\nThe purpose is to send a message on Telegram to users who are interested in having the latest n8n update, which is their most important work tool.\n\n# Instructions\n- The summary should be detailed but relatively short without being unreadable\n- Write in bullet points for each modification specified in the summary\n- Never write \"Here is the summary\". Instead write \"Summary of the new n8n update from (date in DD-MMMM-YYYY format)\"\n- Keep technical terminology accurate\n- Make it scannable and easy to understand\n"
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "52e92b66-4ccc-42cd-8a4b-9ad567e6c791",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
448,
208
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "tPz7OYjU7MhjU1IB",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "bc3dbe68-3e0b-4dfa-92fc-1bca3fa310c0",
"name": "发送到 Telegram 频道",
"type": "n8n-nodes-base.telegram",
"position": [
832,
352
],
"webhookId": "009d3cab-2dc2-48d6-b8e5-64e6b62a1859",
"parameters": {
"text": "={{ $json.text }}",
"chatId": "YOUR_TELEGRAM_CHAT_ID",
"additionalFields": {
"parse_mode": "HTML",
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "bY7q4yTQBzOb85ry",
"name": "Veille "
}
},
"typeVersion": 1.2
},
{
"id": "cceef3b4-6499-4223-99ba-d55d4bfc9661",
"name": "仅筛选今日更新",
"type": "n8n-nodes-base.filter",
"position": [
-320,
352
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "508f3478-6db7-460d-85bb-67dc90c0443e",
"operator": {
"type": "dateTime",
"operation": "after"
},
"leftValue": "={{ $json.created_at }}",
"rightValue": "={{ $today }}"
}
]
},
"looseTypeValidation": true
},
"typeVersion": 2.2
},
{
"id": "c03bfe88-40e1-4011-b957-7fbb27e2fdf8",
"name": "主工作流说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1952,
-544
],
"parameters": {
"color": 4,
"width": 580,
"height": 1032,
"content": "## 使用 AI 摘要监控 n8n GitHub 更新并发送到 Telegram"
},
"typeVersion": 1
},
{
"id": "5080fed3-6fa2-43ae-b432-2c8eed370875",
"name": "步骤 1 详情",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1168,
80
],
"parameters": {
"color": 7,
"width": 360,
"height": 448,
"content": "## 步骤 1:安排每日检查"
},
"typeVersion": 1
},
{
"id": "0158ec94-8ac5-4659-8fc4-76f3f6a4154f",
"name": "步骤 2 详情",
"type": "n8n-nodes-base.stickyNote",
"position": [
-784,
-96
],
"parameters": {
"color": 7,
"width": 360,
"height": 616,
"content": "## 步骤 2:获取最新拉取请求"
},
"typeVersion": 1
},
{
"id": "421e468d-187c-427e-9219-50b9cfa2df66",
"name": "步骤 3 详情",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
-48
],
"parameters": {
"color": 7,
"width": 280,
"height": 560,
"content": "## 步骤 3:筛选今日更新"
},
"typeVersion": 1
},
{
"id": "100058ca-1682-4bf4-a00c-387d63f8a04e",
"name": "步骤 4 详情",
"type": "n8n-nodes-base.stickyNote",
"position": [
-96,
64
],
"parameters": {
"color": 7,
"width": 360,
"height": 448,
"content": "## 步骤 4:提取 PR 摘要"
},
"typeVersion": 1
},
{
"id": "10be682a-c8e0-4e01-b750-ac52cb8b4c0c",
"name": "步骤 5 详情",
"type": "n8n-nodes-base.stickyNote",
"position": [
288,
-176
],
"parameters": {
"color": 7,
"width": 384,
"height": 684,
"content": "## 步骤 5:生成 AI 摘要"
},
"typeVersion": 1
},
{
"id": "208f4a61-ecff-4aec-b516-025ff2d6c846",
"name": "步骤 6 详情",
"type": "n8n-nodes-base.stickyNote",
"position": [
688,
-48
],
"parameters": {
"color": 7,
"width": 392,
"height": 552,
"content": "## 步骤 6:发送到 Telegram"
},
"typeVersion": 1
},
{
"id": "989b36cc-796d-49d1-a4a4-e4033aef0717",
"name": "配置清单",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1872,
592
],
"parameters": {
"color": 5,
"width": 420,
"height": 272,
"content": "## 🔧 配置清单"
},
"typeVersion": 1
},
{
"id": "c9450083-039c-46c3-b77d-dc9cbe02fc33",
"name": "自定义想法",
"type": "n8n-nodes-base.stickyNote",
"position": [
1200,
176
],
"parameters": {
"color": 6,
"width": 420,
"height": 324,
"content": "## 💡 自定义创意"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "8a076e3f-5f2b-49f9-9434-befe8fa46156",
"connections": {
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Generate AI Summary",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Extract PR Summary": {
"main": [
[
{
"node": "Generate AI Summary",
"type": "main",
"index": 0
}
]
]
},
"Generate AI Summary": {
"main": [
[
{
"node": "Send to Telegram Channel",
"type": "main",
"index": 0
}
]
]
},
"Daily Check at 10 AM": {
"main": [
[
{
"node": "Fetch Latest Pull Request",
"type": "main",
"index": 0
}
]
]
},
"Fetch Latest Pull Request": {
"main": [
[
{
"node": "Filter Today's Updates Only",
"type": "main",
"index": 0
}
]
]
},
"Filter Today's Updates Only": {
"main": [
[
{
"node": "Extract PR Summary",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 开发运维, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI 驱动的网站表单潜在客户评分与自动回复
使用 GPT-4o 评估网站潜在客户,通过 Gmail 自动回复,并通过 Telegram 通知
Set
Gmail
Merge
+7
23 节点Mattis
潜在客户开发
多模型共识与 Telegram 提醒的 AI 股票分析
基于多模型共识和 Telegram 提醒的 AI 股票分析系统
Set
Code
Merge
+8
27 节点DevCode Journey
加密货币交易
使用 GPT-4 和 Airtable 自动记录和备份工作流
使用 GPT-4 和 Airtable 自动记录和备份工作流
If
N8n
Set
+14
38 节点Guillaume Duvernay
AI 摘要总结
使用 Apify 和 GPT-4.1 从 Skool 社区发现互动机会
通过 Apify 和 GPT-4.1 从 Skool 社区发现互动机会
Set
Filter
Airtable
+7
18 节点Alexandra Spalato
社交媒体
获取 Github 问题
获取 GitHub 问题更新并发送通知到 Telegram
Set
Filter
Github
+3
9 节点Prakash
工程
多 AI 股市分析与预测 Agent 及 Telegram 警报
通过 Telegram 使用 GPT、Claude 和 Gemini 进行股市分析与预测
Set
Code
Merge
+8
27 节点Cheng Siong Chin
加密货币交易
工作流信息
难度等级
高级
节点数量16
分类2
节点类型8
作者
Mattis
@iiiiiConsultant et expert en automatisation. Co-fondateur de l'agence PerformAi. Pas qu'un simple créateur, j'écoute et comprends l'importance pour simplifier votre activité au quotidien. On en discute ?
外部链接
在 n8n.io 查看 →
分享此工作流