使用Gnews.io的每日新闻AI助手
这是一个Market Research, AI Summarization领域的自动化工作流,包含 7 个节点。主要使用 Set, Slack, FormTrigger, HttpRequest, Agent 等节点。 使用Gnews.io和GPT-4.1生成AI驱动的新闻摘要并发送至Slack
- •Slack Bot Token 或 Webhook URL
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
{
"id": "yX0GguuTfJTMO5fn",
"meta": {
"instanceId": "50631c03cbd88440965b74e5a58aada5437cbc43e90372b516e36154908ad374",
"templateCredsSetupCompleted": true
},
"name": "使用 Gnews.io 的每日新闻 AI Agent",
"tags": [],
"nodes": [
{
"id": "1343b584-6a62-4cfb-aa74-3cfa32c0b61c",
"name": "GPT-4.1 模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
96,
560
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1",
"cachedResultName": "gpt-4.1"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "WXVOHmv3WY7Aw0or",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "13f07df6-bb89-4a64-a820-8145b21f6842",
"name": "映射到文章",
"type": "n8n-nodes-base.set",
"position": [
480,
160
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f030ab1f-df47-49fd-9a2e-020622f8a8f6",
"name": "articles",
"type": "string",
"value": "={{ $json.articles }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "ceb045f1-e801-4808-8c97-21a3fbece1a2",
"name": "AI 新闻摘要生成器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
96,
384
],
"parameters": {
"text": "=** Select Top Articles **\nFrom {{$json.articles}}, choose the 15 most relevant articles related to finances advancements, tools, research, and applications.\n\n** Summarize Clearly **\nWrite in clear, professional, and readable language, summarizing the main point of each article in 1-2 short sentences.\n\n** Include Links **\nAfter each summary, add the article's URL for readers to explore more.\n\n** Add the Date **\nBegin the summary with today’s date:\n{{ $now.format('yyyy/MM/dd') }}\n",
"options": {
"systemMessage": "** Output Format **\nOnly return the summary in plain text – no explanations or additional formatting. Keep the response up to 2000 characters"
},
"promptType": "define"
},
"typeVersion": 1.8
},
{
"id": "67e85e66-7ae2-4d86-8d57-528ffbafc0a8",
"name": "获取 GNews 文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
256,
160
],
"parameters": {
"url": "https://gnews.io/api/v4/search",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "={{ $json.topic }}"
},
{
"name": "lang",
"value": "en"
},
{
"name": "apikey",
"value": "ADD YOUR API HERE"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "d324aa84-725a-4624-b90a-79d5ba60e6df",
"name": "完成通知",
"type": "n8n-nodes-base.slack",
"position": [
448,
384
],
"webhookId": "0a1c0309-0a0b-4e37-972d-b229684c2d52",
"parameters": {
"text": "={{ $json.output }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "id",
"value": "C099YS0V3M2"
},
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "VI4wP9VPIS3KDiow",
"name": "Slack account"
}
},
"executeOnce": true,
"typeVersion": 2.2
},
{
"id": "13e49ab1-b175-4a88-9ccd-4f2757251d33",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
48,
160
],
"webhookId": "101b39ea-28b7-44fd-a8ff-d0ec6fb24782",
"parameters": {
"options": {},
"formTitle": "News Search",
"formFields": {
"values": [
{
"fieldLabel": "topic",
"requiredField": true
}
]
}
},
"typeVersion": 2.3
},
{
"id": "5c5ea06a-1a69-4b61-b054-ec9b90d84dba",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-720,
160
],
"parameters": {
"width": 704,
"height": 496,
"content": "## 使用 Gnews.io 的每日新闻 AI Agent"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "83ad420d-7298-463b-bf3e-566517cdcb4e",
"connections": {
"GPT-4.1 Model": {
"ai_languageModel": [
[
{
"node": "AI News Summarizer",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Map to articles": {
"main": [
[
{
"node": "AI News Summarizer",
"type": "main",
"index": 0
}
]
]
},
"AI News Summarizer": {
"main": [
[
{
"node": "Completed Notification",
"type": "main",
"index": 0
}
]
]
},
"Get GNews articles": {
"main": [
[
{
"node": "Map to articles",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Get GNews articles",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 市场调研, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Omer Fayyaz
@omerfayyazn8n Expert with deep experience in designing and implementing automation workflows that optimize business processes, reduce manual effort, and improve scalability. Skilled in integrating n8n with diverse platforms, APIs, and enterprise systems to deliver end-to-end automation solutions. With 13+ years of background in web development (PHP & JavaScript), I bring strong technical expertise to create custom, reliable, and efficient workflows.
分享此工作流