科技新闻聚合器 - 使用AI代理分析每日新闻并利用Mistral V0生成摘要
高级
这是一个AI领域的自动化工作流,包含 48 个节点。主要使用 Set, Merge, Filter, Markdown, SplitOut 等节点,结合人工智能技术实现智能自动化。 科技新闻策展 - 使用AI代理和Mistral分析每日新闻
前置要求
- •可能需要目标 API 的认证凭证
使用的节点 (48)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "DLNC1zlbMqO7vCep",
"meta": {
"instanceId": "c8661626eeda758e004fa6cdc30e89de83810c1ff0923b0bb91a200abd0100f3",
"templateCredsSetupCompleted": true
},
"name": "科技新闻聚合器 - 使用AI代理分析每日新闻并利用Mistral V0生成摘要",
"tags": [
{
"id": "QryMJD23lbek4XwO",
"name": "News Curator",
"createdAt": "2025-06-20T18:01:44.652Z",
"updatedAt": "2025-06-20T18:01:44.652Z"
},
{
"id": "nEQ2nHALSQN4jgJ0",
"name": "Free",
"createdAt": "2025-06-25T21:55:38.353Z",
"updatedAt": "2025-06-25T21:55:38.353Z"
}
],
"nodes": [
{
"id": "12a3d51d-0fb1-4663-ae91-6f7da54f1744",
"name": "合并",
"type": "n8n-nodes-base.merge",
"position": [
-360,
700
],
"parameters": {
"numberInputs": 9
},
"typeVersion": 3.1
},
{
"id": "49d86034-6aa4-4e59-ac71-36939145022e",
"name": "聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
800,
980
],
"parameters": {
"include": "specifiedFields",
"options": {},
"aggregate": "aggregateAllItemData",
"fieldsToInclude": "title, pubDate, link"
},
"typeVersion": 1
},
{
"id": "0b7370c2-acba-410b-9f01-f9bbc0228776",
"name": "ScienceDaily 订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"position": [
-1240,
540
],
"parameters": {
"url": "https://www.sciencedaily.com/rss/all.xml",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "77e79dc6-1a96-4ac8-843d-fe02c848a15b",
"name": "AlternativeTo 订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"position": [
-1240,
900
],
"parameters": {
"url": "https://feed.alternativeto.net/news/all/",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "de23bf0b-e6e9-4654-a603-bd8de610f38d",
"name": "MIT Technology Review 订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"position": [
-1240,
1080
],
"parameters": {
"url": "https://www.technologyreview.com/topic/artificial-intelligence/feed/",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "51006112-1569-4e57-a887-b4e70c0feb5a",
"name": "lobste.rs 订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"position": [
-1240,
180
],
"parameters": {
"url": "https://lobste.rs/rss",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "03cd83c3-d785-40cd-b20e-9227ce57834d",
"name": "按时间筛选",
"type": "n8n-nodes-base.filter",
"position": [
20,
820
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "30d4f694-9378-42b4-b1d5-cbc38fb3e7fe",
"operator": {
"type": "dateTime",
"operation": "after"
},
"leftValue": "={{ $json.pubDate }}",
"rightValue": "={{ $today.minus({ days: 0 }) }}"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "da651706-a19a-479f-a955-e1fe603ec0ed",
"name": "Mistral Cloud Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
"position": [
1940,
1840
],
"parameters": {
"model": "mistral-small-latest",
"options": {}
},
"credentials": {
"mistralCloudApi": {
"id": "N1af3CxGY2AUEsVg",
"name": "Mistral Cloud account"
}
},
"typeVersion": 1
},
{
"id": "a1a3beac-4b21-4feb-8a4e-3fc7f8b91df5",
"name": "新闻分析器",
"type": "@n8n/n8n-nodes-langchain.agent",
"onError": "continueErrorOutput",
"maxTries": 2,
"position": [
1020,
1120
],
"parameters": {
"text": "=Analyze artitcle titles from the following list:\n[{{ $json.data.map(item => `Title: ${item.title}: Link: ${item.link}`).join(' ; ') }}]",
"options": {
"systemMessage": "You are a professional analyst of current news. Our goal is to get a quick overview of what's most relevant in current news.\nYou must analyze article titles, providing a concise summary of today's news based on the titles.\nFirst, give a fitting title encompassing today's news.\nNext, give a summary of today's news.\nNext, you MUST list the top 10 news of today's titles alongside the links for each of them.\nTo determine the best and most relevant news:\n- Give priority to news which are from the fields: Technological Solutions, Scientific Research, Applied Math and Data Science.\n- Give priority to news which appear often in the list.\n- Ignore news which don't appear to be actual new information.\n- Remove news with problematic headlines\n- Ignore news with petty themes like gossip about actors, hollywood stars and similar.\n- MOST IMPORTANT: DO NOT RETURN TWO OR MORE NEWS FROM THE SAME NEWS WEBSITE. ONLY ONE NEWS PER WEBSITE IN THE TOP 10 when it is possible."
},
"promptType": "define",
"hasOutputParser": true
},
"retryOnFail": true,
"typeVersion": 1.6
},
{
"id": "423e8ad7-867a-494e-933f-5613e4dbcc57",
"name": "拆分新闻数据",
"type": "n8n-nodes-base.splitOut",
"position": [
1460,
920
],
"parameters": {
"options": {},
"fieldToSplitOut": "output.data[0].top_10_news"
},
"typeVersion": 1
},
{
"id": "d1e1aeb6-f42e-4fd8-a351-b4c8229246a7",
"name": "移除特定内容",
"type": "n8n-nodes-base.filter",
"position": [
360,
820
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "30d4f694-9378-42b4-b1d5-cbc38fb3e7fe",
"operator": {
"type": "string",
"operation": "notRegex"
},
"leftValue": "={{ $json.link }}",
"rightValue": "opinion|rumour|layoff|porn|marijuana"
},
{
"id": "fdddd55b-19d5-4e87-9586-01653750e807",
"operator": {
"type": "string",
"operation": "notRegex"
},
"leftValue": "={{ $json.title }}",
"rightValue": "Opinion|Rumour|layoff|porn|marijuana"
},
{
"id": "12e44449-d6bb-4243-abb7-cfa03a9327c5",
"operator": {
"type": "string",
"operation": "notRegex"
},
"leftValue": "={{ $json.content }}",
"rightValue": "layoff|porn|marijuana"
},
{
"id": "2df9ef75-ea55-4e5b-a78d-e37de85fe8ca",
"operator": {
"type": "string",
"operation": "notEmpty",
"singleValue": true
},
"leftValue": "={{ $json.content }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "29888373-da05-4ee0-971d-1dd508823fd2",
"name": "Silicone Republic 科技订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"position": [
-1240,
1260
],
"parameters": {
"url": "https://www.siliconrepublic.com/category/technology/feed/",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "45c3877c-e6d8-4c12-a0b1-2156b0b4dbc4",
"name": "Silicone Republic 科学订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"disabled": true,
"position": [
-1240,
1440
],
"parameters": {
"url": "https://www.siliconrepublic.com/category/science/feed/",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "d803f64b-24d2-4828-adaa-b55d67112e9e",
"name": "计划任务",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1920,
880
],
"parameters": {
"rule": {
"interval": [
{
"field": "weeks",
"triggerAtDay": [
5,
4,
2,
3,
1
],
"triggerAtHour": 12
}
]
}
},
"typeVersion": 1.2
},
{
"id": "692c7592-9834-48fe-84ab-74216943233a",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"notes": "It is a necessary node because lobste.rs will not give the actual content of the links.",
"onError": "continueErrorOutput",
"position": [
-840,
180
],
"parameters": {
"url": "={{ $json.link }}",
"options": {
"timeout": 10000
}
},
"typeVersion": 4.2
},
{
"id": "758cbfc6-559a-4ebe-8955-49604bd2d924",
"name": "重新合并数据",
"type": "n8n-nodes-base.set",
"onError": "continueRegularOutput",
"position": [
-640,
360
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $('Filter Fields').item.json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $('Filter Fields').item.json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $('Filter Fields').item.json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.data }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "93d0ab4e-f3aa-4712-a7ec-95884f396ce8",
"name": "合并输出",
"type": "n8n-nodes-base.merge",
"position": [
1620,
840
],
"parameters": {
"mode": "combine",
"options": {},
"advanced": true,
"mergeByFields": {
"values": [
{
"field1": "link",
"field2": "website"
}
]
}
},
"typeVersion": 3.2
},
{
"id": "69fbc0ca-bd09-40cb-affe-c1955cd990b4",
"name": "最终聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
2320,
820
],
"parameters": {
"include": "specifiedFields",
"options": {},
"aggregate": "aggregateAllItemData",
"fieldsToInclude": "output"
},
"typeVersion": 1
},
{
"id": "5674a7e0-1aa3-4085-acef-c41d22530140",
"name": "网站摘要生成器",
"type": "@n8n/n8n-nodes-langchain.agent",
"onError": "continueErrorOutput",
"maxTries": 2,
"position": [
1920,
840
],
"parameters": {
"text": "=Summarize the content from this website in a sometimes informal, sometimes formal, sometimes complicated, sometimes everyman speech, maybe cheeky, maybe serious, maybe eyecatchy but always concise and short one sentence: {{ $json.website }} - Content: {{ $json.content }}\nFollow the provided JSON schema for your response.",
"options": {
"systemMessage": "=Todays date is {{ $now }}. You are an automated web analyzer tasked with analyzing information from a webpage. You have access to the text content from the page. Your objective is only to return a single JSON output containing the extracted data summarized."
},
"promptType": "define",
"hasOutputParser": true
},
"retryOnFail": true,
"typeVersion": 1.6
},
{
"id": "7fa67db0-c75a-42ae-9de0-c90a81feb406",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
560
],
"parameters": {
"color": 3,
"width": 880,
"height": 480,
"content": "## 筛选步骤"
},
"typeVersion": 1
},
{
"id": "7b943173-28d8-4a1d-86b9-06837e1c38a6",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
560
],
"parameters": {
"color": 5,
"width": 640,
"height": 900,
"content": "## 新闻选择"
},
"typeVersion": 1
},
{
"id": "a1d89fc5-4f6d-4e15-be60-a22ff049ccbb",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1420,
560
],
"parameters": {
"color": 5,
"width": 1060,
"height": 580,
"content": "## 新闻摘要生成器"
},
"typeVersion": 1
},
{
"id": "d1942504-dc3d-4ae7-b342-28d26827945b",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1760,
-240
],
"parameters": {
"color": 4,
"width": 1520,
"height": 2060,
"content": "# 科技新闻采集"
},
"typeVersion": 1
},
{
"id": "6fdcf852-4638-4081-8621-b4f4cc6e03d6",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1080,
-80
],
"parameters": {
"color": 3,
"width": 660,
"height": 1880,
"content": "## 字段预处理"
},
"typeVersion": 1
},
{
"id": "ca60f20b-cc2f-4172-92bd-d993d8bdefd3",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1680,
-80
],
"parameters": {
"color": 6,
"width": 600,
"height": 1880,
"content": "## 订阅源节点"
},
"typeVersion": 1
},
{
"id": "a7b40eed-b05a-4892-b7ec-fc3f4c328b6b",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
320
],
"parameters": {
"width": 540,
"height": 220,
"content": "在**新闻采集步骤**结束时,合并输出应包含具有以下属性的新闻列表:标题、发布日期、链接和内容。"
},
"typeVersion": 1
},
{
"id": "30ec121c-d5ed-405d-8c6b-7d31daea4f19",
"name": "TheHackersNews* 订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"notes": "*Not to be confused with \"Hacker News\" from ycombinator.",
"onError": "continueRegularOutput",
"position": [
-1240,
720
],
"parameters": {
"url": "https://feeds.feedburner.com/TheHackersNews",
"options": {
"ignoreSSL": false
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "0be003b9-f7d7-44f4-ab6a-7812060e8344",
"name": "过滤字段",
"type": "n8n-nodes-base.set",
"position": [
-1020,
180
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "40374b49-29b7-4965-abc6-6be211f27821",
"name": "过滤字段 2",
"type": "n8n-nodes-base.set",
"disabled": true,
"position": [
-1020,
340
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "f43db298-a42f-4391-83b9-c49c5d8c03ae",
"name": "pubDate",
"type": "string",
"value": "={{ $json.date }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "47c2f29d-f56b-451f-b2c8-3c4c7d19f94f",
"name": "过滤字段 3",
"type": "n8n-nodes-base.set",
"position": [
-1020,
540
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "9ab7119a-12f7-4366-861f-2ef35738409c",
"name": "过滤字段 4",
"type": "n8n-nodes-base.set",
"position": [
-1020,
720
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "3899b74c-3785-4ec6-83a2-0c92bf0e8405",
"name": "过滤字段 5",
"type": "n8n-nodes-base.set",
"position": [
-1020,
900
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "7dc32f30-6d77-4987-ae43-90214d990992",
"name": "过滤字段 6",
"type": "n8n-nodes-base.set",
"position": [
-1020,
1080
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "5bcfdca4-925f-426a-bde8-fc89ffc00631",
"name": "过滤字段 7",
"type": "n8n-nodes-base.set",
"position": [
-1020,
1260
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "285cd92f-a9bc-4758-8de5-b07a3013f504",
"name": "过滤字段 8",
"type": "n8n-nodes-base.set",
"disabled": true,
"position": [
-1020,
1440
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "0ec39c32-4f44-4ace-8ecf-7632f5697136",
"name": "Markdown 转换",
"type": "n8n-nodes-base.markdown",
"onError": "continueRegularOutput",
"position": [
-600,
160
],
"parameters": {
"html": "={{ $json.data }}",
"options": {}
},
"typeVersion": 1
},
{
"id": "04ba0b02-da75-4c9f-b8fd-8b4aaa28cc93",
"name": "JSON 输出解析器 2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
2080,
1000
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title describing the news article.\"\n },\n \"author\": {\n\t\t\t\"type\": \"string\",\n \"description\": \"The author of the news article.\"\n },\n \"link\": {\n\t\t\t\"type\": \"string\",\n \"description\": \"The link of the news article.\"\n },\n \"summary\": {\n\t\t\t\"type\": \"string\",\n \"description\": \"The resume of the news article.\"\n }\n },\n \"required\": [\"title\", \"author\", \"link\", \"summary\"],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\"data\"],\n \"additionalProperties\": false\n}"
},
"typeVersion": 1.2
},
{
"id": "11ee267f-6429-48dd-aa01-3e1e0cd49a50",
"name": "JSON 输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1260,
1280
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The name describing the overall news.\"\n },\n \"summary\": {\n\t\t\t\"type\": \"string\",\n \"description\": \"The resume of today's news.\"\n },\n \"top_10_news\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t \"type\": \"object\",\n\t\t\t \"properties\": {\n\t\t\t\t\"title\": {\n\t\t\t\t \"type\": \"string\",\n\t\t\t\t \"description\": \"The title to the news article.\"\n\t\t\t\t},\n\t\t\t\t\"website\": {\n\t\t\t\t \"type\": \"string\",\n\t\t\t\t \"description\": \"The website to the news article.\"\n\t\t\t\t},\n \"required\": [\"title\", \"website\"],\n \"additionalProperties\": false\n\t\t\t }\n\t\t\t}\n }\n },\n \"required\": [\"title\", \"summary\", \"top_10_news\"],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\"data\"],\n \"additionalProperties\": false\n }\n"
},
"typeVersion": 1.2
},
{
"id": "f841eedd-91b2-4ef8-ba49-d46999f05802",
"name": "DuckDuckGo",
"type": "n8n-nodes-duckduckgo-search.duckDuckGo",
"position": [
-1240,
1620
],
"parameters": {
"newsQuery": "technology",
"operation": "searchNews",
"cacheSettings": {
"cacheTTL": 300,
"enableCache": true
},
"proxySettings": {},
"newsSearchOptions": {
"region": "wt-wt",
"maxResults": 100,
"safeSearch": 0
}
},
"typeVersion": 1
},
{
"id": "9dc00e4e-15c4-4fce-acc4-b67c3de99bcb",
"name": "过滤字段 9",
"type": "n8n-nodes-base.set",
"position": [
-1040,
1620
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $json.date }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $json.url }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "="
}
]
}
},
"typeVersion": 3.4
},
{
"id": "92732b78-71a2-4d4e-91f3-41231153046b",
"name": "调用获取网页内容到数据",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
-860,
1620
],
"parameters": {
"options": {},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "MqafS0zommXM7soB"
},
"workflowInputs": {
"value": {
"link": "={{ $json.link }}",
"title": "={{ $json.title }}",
"pubDate": "={{ $json.pubDate }}"
},
"schema": [
{
"id": "title",
"display": true,
"removed": false,
"required": false,
"displayName": "title",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "pubDate",
"display": true,
"removed": false,
"required": false,
"displayName": "pubDate",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "link",
"display": true,
"removed": false,
"required": false,
"displayName": "link",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"title",
"pubDate",
"link"
],
"attemptToConvertTypes": false,
"convertFieldsToString": true
}
},
"typeVersion": 1.2
},
{
"id": "1ba68823-f76e-4277-a9d1-90d549ad080b",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
1060
],
"parameters": {
"color": 2,
"width": 680,
"height": 540,
"content": "## 子工作流:获取网页内容到数据"
},
"typeVersion": 1
},
{
"id": "dc42e913-8d41-41c5-bd40-7ba006b1d361",
"name": "移除空内容元素",
"type": "n8n-nodes-base.filter",
"position": [
-660,
1320
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "30d4f694-9378-42b4-b1d5-cbc38fb3e7fe",
"operator": {
"type": "string",
"operation": "notEmpty",
"singleValue": true
},
"leftValue": "={{ $json.content }}",
"rightValue": "={{ $today.minus({ days: 0 }) }}"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "d5053c20-a8af-4d9e-b2b6-02c51044ecdd",
"name": "HTTP请求示例",
"type": "n8n-nodes-base.httpRequest",
"notes": "It is a necessary node because lobste.rs will not give the actual content of the links.",
"onError": "continueErrorOutput",
"position": [
-40,
1220
],
"parameters": {
"url": "={{ $json.link }}",
"options": {
"timeout": 3000
}
},
"typeVersion": 4.2
},
{
"id": "2461638a-9de6-4a67-b287-0e0102e32764",
"name": "重新合并数据示例",
"type": "n8n-nodes-base.set",
"onError": "continueRegularOutput",
"position": [
20,
1440
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
"name": "title",
"type": "string",
"value": "={{ $('Filter Fields').item.json.title }}"
},
{
"id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
"name": "pubDate",
"type": "string",
"value": "={{ $('Filter Fields').item.json.pubDate }}"
},
{
"id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
"name": "link",
"type": "string",
"value": "={{ $('Filter Fields').item.json.link }}"
},
{
"id": "199a5920-72a3-470e-9adf-8252f6ebb37a",
"name": "content",
"type": "string",
"value": "={{ $json.data }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b7d64a46-2656-45a8-8053-3c6fa6df6e4f",
"name": "Markdown转换示例",
"type": "n8n-nodes-base.markdown",
"onError": "continueRegularOutput",
"position": [
200,
1200
],
"parameters": {
"html": "={{ $json.data }}",
"options": {}
},
"typeVersion": 1
},
{
"id": "bd46c6d8-f235-4bad-9866-e0c1a72bc6e3",
"name": "最终合并输出",
"type": "n8n-nodes-base.merge",
"position": [
2680,
1080
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineByPosition"
},
"typeVersion": 3.2
},
{
"id": "4894d04d-7e11-4af0-9370-c6eefdad1371",
"name": "测试订阅源",
"type": "n8n-nodes-base.rssFeedRead",
"onError": "continueRegularOutput",
"disabled": true,
"position": [
-1240,
340
],
"parameters": {
"options": {}
},
"typeVersion": 1.1,
"alwaysOutputData": true
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ac25536e-1d15-4254-b8cd-0efadf052a5f",
"connections": {
"Merge": {
"main": [
[
{
"node": "Filter by Datetime",
"type": "main",
"index": 0
}
]
]
},
"Schedule": {
"main": [
[
{
"node": "lobste.rs Feed",
"type": "main",
"index": 0
},
{
"node": "Test Feed",
"type": "main",
"index": 0
},
{
"node": "ScienceDaily Feed",
"type": "main",
"index": 0
},
{
"node": "TheHackersNews* Feed",
"type": "main",
"index": 0
},
{
"node": "AlternativeTo Feed",
"type": "main",
"index": 0
},
{
"node": "MIT Technology Review Feed",
"type": "main",
"index": 0
},
{
"node": "Silicone Republic Technology Feed",
"type": "main",
"index": 0
},
{
"node": "Silicone Republic Science Feed",
"type": "main",
"index": 0
},
{
"node": "DuckDuckGo",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "News Analyzer",
"type": "main",
"index": 0
}
]
]
},
"Test Feed": {
"main": [
[
{
"node": "Filter Fields 2",
"type": "main",
"index": 0
}
]
]
},
"DuckDuckGo": {
"main": [
[
{
"node": "Filter Fields 9",
"type": "main",
"index": 0
}
]
]
},
"Rejoin Data": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Markdown Conversion",
"type": "main",
"index": 0
}
]
]
},
"Join Outputs": {
"main": [
[
{
"node": "Website Summarizer",
"type": "main",
"index": 0
}
]
]
},
"Filter Fields": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"News Analyzer": {
"main": [
[
{
"node": "Split Out News Data",
"type": "main",
"index": 0
},
{
"node": "Final Join Outputs",
"type": "main",
"index": 1
}
]
]
},
"lobste.rs Feed": {
"main": [
[
{
"node": "Filter Fields",
"type": "main",
"index": 0
}
]
]
},
"Filter Fields 2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Filter Fields 3": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 2
}
]
]
},
"Filter Fields 4": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 3
}
]
]
},
"Filter Fields 5": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 4
}
]
]
},
"Filter Fields 6": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 5
}
]
]
},
"Filter Fields 7": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 6
}
]
]
},
"Filter Fields 8": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 7
}
]
]
},
"Filter Fields 9": {
"main": [
[
{
"node": "Call Get Webpage Content to Data",
"type": "main",
"index": 0
}
]
]
},
"Final Aggregate": {
"main": [
[
{
"node": "Final Join Outputs",
"type": "main",
"index": 0
}
]
]
},
"ScienceDaily Feed": {
"main": [
[
{
"node": "Filter Fields 3",
"type": "main",
"index": 0
}
]
]
},
"AlternativeTo Feed": {
"main": [
[
{
"node": "Filter Fields 5",
"type": "main",
"index": 0
}
]
]
},
"Filter by Datetime": {
"main": [
[
{
"node": "Remove Certain Content",
"type": "main",
"index": 0
}
]
]
},
"Final Join Outputs": {
"main": [
[]
]
},
"JSON Output Parser": {
"ai_outputParser": [
[
{
"node": "News Analyzer",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Website Summarizer": {
"main": [
[
{
"node": "Final Aggregate",
"type": "main",
"index": 0
}
]
]
},
"Markdown Conversion": {
"main": [
[
{
"node": "Rejoin Data",
"type": "main",
"index": 0
}
]
]
},
"Split Out News Data": {
"main": [
[
{
"node": "Join Outputs",
"type": "main",
"index": 1
}
]
]
},
"HTTP Request Example": {
"main": [
[
{
"node": "Markdown Conversion Example",
"type": "main",
"index": 0
}
]
]
},
"JSON Output Parser 2": {
"ai_outputParser": [
[
{
"node": "Website Summarizer",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"TheHackersNews* Feed": {
"main": [
[
{
"node": "Filter Fields 4",
"type": "main",
"index": 0
}
]
]
},
"Remove Certain Content": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
},
{
"node": "Join Outputs",
"type": "main",
"index": 0
}
]
]
},
"Mistral Cloud Chat Model": {
"ai_languageModel": [
[
{
"node": "News Analyzer",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Website Summarizer",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"MIT Technology Review Feed": {
"main": [
[
{
"node": "Filter Fields 6",
"type": "main",
"index": 0
}
]
]
},
"Markdown Conversion Example": {
"main": [
[
{
"node": "Rejoin Data Example",
"type": "main",
"index": 0
}
]
]
},
"Silicone Republic Science Feed": {
"main": [
[
{
"node": "Filter Fields 8",
"type": "main",
"index": 0
}
]
]
},
"Call Get Webpage Content to Data": {
"main": [
[
{
"node": "Remove Elements with Empty Content",
"type": "main",
"index": 0
}
]
]
},
"Silicone Republic Technology Feed": {
"main": [
[
{
"node": "Filter Fields 7",
"type": "main",
"index": 0
}
]
]
},
"Remove Elements with Empty Content": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 8
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
灵活新闻聚合器 - 多源集成、AI分析和可设置频道
多源新闻策展系统,集成Mistral AI分析、摘要和自定义频道
If
Set
Xml
+32
120 节点Hybroht
内容创作
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
人工智能
源发现 - 自动搜索更及时的信息源
多平台源发现系统,集成 SerpAPI、DuckDuckGo、GitHub、Reddit 和 Bluesky
Set
Code
Limit
+18
68 节点Hybroht
市场调研
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
内容农场 - AI驱动的WordPress博客自动化
内容农场 - AI驱动的WordPress博客自动化
Set
Code
Html
+16
81 节点Jay Emp0
人工智能
工作流信息
难度等级
高级
节点数量48
分类1
节点类型15
作者
Hybroht
@hybrohtCompany dedicated to delivering tailored software solutions and data-driven experiences through effective technology. We develop workflows leveraging AI agents to maximize the productive benefits of artificial intelligence.
外部链接
在 n8n.io 查看 →
分享此工作流