使用GPT-4和Telegram推送的每日AI新闻翻译与摘要
中级
这是一个Other, AI领域的自动化工作流,包含 12 个节点。主要使用 Set, Merge, Telegram, HttpRequest, Agent 等节点,结合人工智能技术实现智能自动化。 基于GPT-4和Telegram发送的每日AI新闻翻译与摘要
前置要求
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "4AG83ybt0S3WQbkS",
"meta": {
"instanceId": "a943fc71a4dfb51cc3424882233bcd72e7a73857958af1cf464f7c21580c726e",
"templateCredsSetupCompleted": true
},
"name": "使用 GPT-4 和 Telegram 推送的每日AI新闻翻译与摘要",
"tags": [
{
"id": "WuWMTipHMvadNrvh",
"name": "Other",
"createdAt": "2025-04-18T13:34:41.761Z",
"updatedAt": "2025-04-18T13:34:41.761Z"
}
],
"nodes": [
{
"id": "894ceed6-8fcd-484e-bf6f-9c3eee81119e",
"name": "工作流概览",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
200
],
"parameters": {
"color": 7,
"width": 720,
"height": 600,
"content": "### 设置步骤"
},
"typeVersion": 1
},
{
"id": "9de68856-a2e1-4b06-a738-92e8db23f9ea",
"name": "每日早上8点触发",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
760,
520
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 8
}
]
}
},
"typeVersion": 1.2
},
{
"id": "d2a13562-9f21-4f99-8698-d5ba58245b02",
"name": "获取 GNews 文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
980,
420
],
"parameters": {
"url": "https://gnews.io/api/v4/search",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "AI"
},
{
"name": "lang",
"value": "en"
},
{
"name": "apikey"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "0895bda6-5268-4454-a49f-732a3025947b",
"name": "获取 NewsAPI 文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
980,
620
],
"parameters": {
"url": "https://newsapi.org/v2/everything",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "AI"
},
{
"name": "language",
"value": "en"
},
{
"name": "sortBy",
"value": "publishedAt"
},
{
"name": "pageSize",
"value": "20"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "X-Api-Key"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "3cd42b1a-348a-486d-8217-592ce2b35e6c",
"name": "GNews:映射到文章",
"type": "n8n-nodes-base.set",
"position": [
1200,
420
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"name": "articles",
"type": "string",
"value": "={{ $json.articles }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "40692e2f-9289-448b-a5cb-ce4846b20264",
"name": "NewsAPI:映射到文章",
"type": "n8n-nodes-base.set",
"position": [
1200,
620
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"name": "articles",
"type": "string",
"value": "={{ $json.articles }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "d42b4e2d-87f4-4a0e-a6c3-ab1b3501bcfa",
"name": "合并 GNews 和 NewsAPI",
"type": "n8n-nodes-base.merge",
"position": [
1420,
520
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "985ec49b-b127-44b9-8f63-62486d0bf864",
"name": "便签:新闻 API",
"type": "n8n-nodes-base.stickyNote",
"position": [
900,
210
],
"parameters": {
"color": 5,
"width": 480,
"height": 570,
"content": "### 数据源节点"
},
"typeVersion": 1
},
{
"id": "430c8ddc-948e-4770-b816-591c6c43c617",
"name": "AI 摘要器和翻译器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1640,
520
],
"parameters": {
"text": "=You are an AI news assistant. Your tasks:\n1. Select the 15 most relevant articles on AI technology progress and applications from {{$json.articles}}.\n2. Translate them to accurate Traditional Chinese; don't translate commonly used technical English terms.\n3. Make sure to include the article URL for each item.\n4. Begin output with today's date (e.g., '早安,這是 {{ $now.format('yyyy/MM/dd') }} 的 AI 新聞:')\nOutput only the summary.",
"options": {},
"promptType": "define"
},
"typeVersion": 1.8
},
{
"id": "5dfacf8a-25d4-43fd-9b96-a34eeed45d39",
"name": "GPT-4.1 模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1728,
740
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1",
"cachedResultName": "gpt-4.1"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "RjawTJt2ILjgM4Wx",
"name": "[Template] OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "66fedd82-5fbf-4d17-a7f5-78c41d7d5949",
"name": "便签:AI 处理",
"type": "n8n-nodes-base.stickyNote",
"position": [
1568,
300
],
"parameters": {
"color": 2,
"width": 400,
"height": 580,
"content": "### AI 助手逻辑"
},
"typeVersion": 1
},
{
"id": "7a742531-4a08-408e-8b2c-558be75c1a8f",
"name": "发送摘要到 Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
2016,
520
],
"webhookId": "21eb8e1c-87de-45af-888d-699fbd443bc8",
"parameters": {
"text": "={{ $json.output }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "tpF8PHPxMfdld3NA",
"name": "[Template] Telegram Bot"
}
},
"typeVersion": 1.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "deee909a-9cfe-409d-8201-b9b7194ec9bc",
"connections": {
"GPT-4.1 Model": {
"ai_languageModel": [
[
{
"node": "AI summarizer & translator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Fetch GNews articles": {
"main": [
[
{
"node": "GNews: Map to articles",
"type": "main",
"index": 0
}
]
]
},
"Trigger at 8am daily": {
"main": [
[
{
"node": "Fetch GNews articles",
"type": "main",
"index": 0
},
{
"node": "Fetch NewsAPI articles",
"type": "main",
"index": 0
}
]
]
},
"Merge GNews & NewsAPI": {
"main": [
[
{
"node": "AI summarizer & translator",
"type": "main",
"index": 0
}
]
]
},
"Fetch NewsAPI articles": {
"main": [
[
{
"node": "NewsAPI: Map to articles",
"type": "main",
"index": 0
}
]
]
},
"GNews: Map to articles": {
"main": [
[
{
"node": "Merge GNews & NewsAPI",
"type": "main",
"index": 0
}
]
]
},
"NewsAPI: Map to articles": {
"main": [
[
{
"node": "Merge GNews & NewsAPI",
"type": "main",
"index": 1
}
]
]
},
"AI summarizer & translator": {
"main": [
[
{
"node": "Send summary to Telegram",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 其他, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
构建与销售AI自动化与智能体
构建与销售AI自动化与智能体
If
Set
Wait
+15
74 节点NICKYAI
其他
Facebook广告竞品创意分析与自动邮件报告
使用AI(GPT-4和Gemini)分析竞争对手Facebook广告并生成邮件报告
Set
Wait
Gmail
+13
31 节点SamirLiu
人工智能
音乐生成工作流
使用 Suno API、Flux、Runway 和 Creatomate 生成 AI 歌曲和音乐视频
Set
Wait
Merge
+16
60 节点Joseph
其他
MailChimp自动化
基于AI的餐厅通讯生成器,集成Mailchimp和Telegram审批
If
Set
Code
+16
43 节点Femi Ad
人工智能
使用GPT-4o、WordPress和LinkedIn发布自动化RSS内容到博客文章
使用GPT-4o、WordPress和LinkedIn发布自动化RSS内容到博客文章
If
Set
Code
+21
40 节点Immanuel
人工智能
生成无面容YouTube视频
使用Leonardo AI和Creatomate的自动化无面容YouTube视频生成器
Set
Wait
Merge
+8
39 节点Tianyi
人工智能
工作流信息
难度等级
中级
节点数量12
分类2
节点类型8
作者
SamirLiu
@samirSeasoned Data Engineer with over 8 years of experience in digital marketing analytics and workflow automation. Expert in leveraging tools like n8n, Python, and SQL to streamline data integration and optimize operational efficiency. Passionate about enhancing productivity through innovative automation strategies.
外部链接
在 n8n.io 查看 →
分享此工作流