AI新闻简报构建器:使用Dumpling AI抓取网站,GPT-4o摘要
中级
这是一个AI、Marketing领域的自动化工作流,包含 10 个节点。主要使用 Set、Code、Gmail、SplitOut、HttpRequest 等节点,结合人工智能技术实现智能自动化。 AI新闻简报构建器:Dumpling AI抓取网站,GPT-4o摘要
前置要求
- •Google 账号和 Gmail API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "HlVn82cNQLDWx73K",
"meta": {
"instanceId": "a1ae5c8dc6c65e674f9c3947d083abcc749ef2546dff9f4ff01de4d6a36ebfe6",
"templateCredsSetupCompleted": true
},
"name": "AI 新闻简报构建器:使用 Dumpling AI 抓取网站,使用 GPT-4o 进行摘要",
"tags": [],
"nodes": [
{
"id": "b607052f-8712-4cce-977e-6216da30a144",
"name": "手动启动工作流",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-800,
-160
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5bf110b3-a678-4a34-a4c9-3a87ab22774f",
"name": "从 Google Sheets 获取网站 URL",
"type": "n8n-nodes-base.googleSheets",
"position": [
-580,
-160
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/10AQk_0kG8d0fa7gwbm0W8f9CyMZ9syPGksQoMNBkut4/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/10AQk_0kG8d0fa7gwbm0W8f9CyMZ9syPGksQoMNBkut4/edit?usp=drivesdk",
"cachedResultName": "sites"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "GaJqJHuS5mQxap7q",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "a996f64a-bb61-493d-90ca-dce9d465fd58",
"name": "使用 Dumpling AI 抓取并提取网站内容",
"type": "n8n-nodes-base.httpRequest",
"position": [
-360,
-160
],
"parameters": {
"url": "https://app.dumplingai.com/api/v1/crawl",
"method": "POST",
"options": {},
"jsonBody": "={\n \"url\": \"{{ $json.websites }}\", \n \"limit\": \"5\",\n \"depth\": \"2\", \n \"format\": \"text\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "5CBvzXCLjwWzCJRE",
"name": "n8n_integration"
}
},
"typeVersion": 4.2
},
{
"id": "01d0b913-cfdc-4144-8556-d5c18221cf7c",
"name": "将提取结果拆分为单独项目",
"type": "n8n-nodes-base.splitOut",
"position": [
-140,
-160
],
"parameters": {
"options": {},
"fieldToSplitOut": "results"
},
"typeVersion": 1
},
{
"id": "9d69abfa-c867-4fbc-83a2-58723f3c4dfb",
"name": "映射标题、URL 和页面文本",
"type": "n8n-nodes-base.set",
"position": [
80,
-160
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "51ae9a51-06f4-46b1-979e-578eb5dc361c",
"name": "metadata.title",
"type": "string",
"value": "={{ $json.metadata.title }}"
},
{
"id": "2f16ef6f-cc2f-4a4d-a5e7-3cdde3465398",
"name": "content",
"type": "string",
"value": "={{ $json.content }}"
},
{
"id": "31ac95b7-beeb-4b3b-8e52-ed75027ae379",
"name": "metadata.original_url",
"type": "string",
"value": "={{ $json.metadata.original_url }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "eaaa909d-92df-4837-a474-d533577c5621",
"name": "将文章合并为单一提示格式",
"type": "n8n-nodes-base.code",
"position": [
300,
-160
],
"parameters": {
"jsCode": "let output = '';\nitems.forEach((item, index) => {\n const title = item.json.metadata?.title || 'No title';\n const url = item.json.metadata?.original_url || 'No URL';\n const content = item.json.content || 'No content';\n\n output += `${index + 1}. ${title}\\n${url}\\n${content}\\n\\n`;\n});\n\nreturn [{ json: { aggregatedArticles: output } }];\n"
},
"typeVersion": 2
},
{
"id": "b2691018-fa64-4a55-a5e9-e68733ab9a7a",
"name": "使用 GPT-4o 生成带主题的 HTML 新闻简报",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
520,
-160
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are a newsletter assistant that creates a compelling subject line and summarizes a list of articles in engaging, well-structured HTML format.\n\nInstructions:\n\n1. Read the list of articles. Each article includes a title, content, and original URL.\n2. First, generate a short, catchy subject line for the newsletter based on the overall theme of the articles.\n3. Then, for each article:\n - Write the title inside an <h3> tag.\n - Summarize the article in 2 to 3 engaging sentences inside a <p> tag.\n - Below the summary, write: “To read more, click the link:” and include the original URL as a clickable link inside another <p> tag.\n - Add a <br/> to separate entries.\n\nReturn the result in this JSON format:\n\n{\n \"subject\": \"[Newsletter subject line]\",\n \"body\": \"[HTML body with all the articles]\"\n}\n\nOnly output the JSON. Do not explain anything else.\n\n\n\nHere is the input:{{ $json.aggregatedArticles }}\n\n"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "fdhWALG84tBLgSZT",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "c1266ac2-e2c0-4258-be9d-08c1ae6f3727",
"name": "通过 Gmail 发送新闻简报",
"type": "n8n-nodes-base.gmail",
"position": [
896,
-160
],
"webhookId": "d883af34-9a6e-406e-8eee-42d501bc5791",
"parameters": {
"sendTo": "",
"message": "={{ $json.message.content.body }}",
"options": {
"appendAttribution": false
},
"subject": "={{ $json.message.content.subject }}"
},
"credentials": {
"gmailOAuth2": {
"id": "j70r3RTMED1pgN3R",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "25e0a2b5-5c27-4176-b9d8-4e91d15d86cc",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-360
],
"parameters": {
"width": 680,
"height": 200,
"content": "### 🌐 使用 Dumpling AI 获取网站内容"
},
"typeVersion": 1
},
{
"id": "9ca5931f-6637-4371-8830-d73801381276",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-360
],
"parameters": {
"color": 4,
"width": 660,
"height": 220,
"content": "### 🧠 摘要并发送 AI 生成的新闻简报邮件"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a86325fc-4f26-4052-8883-ec983049f51d",
"connections": {
"Start Workflow Manually": {
"main": [
[
{
"node": "Get Website URLs from Google Sheet",
"type": "main",
"index": 0
}
]
]
},
"Map Title, URL, and Page Text": {
"main": [
[
{
"node": " Combine Articles into Single Prompt Format",
"type": "main",
"index": 0
}
]
]
},
"Get Website URLs from Google Sheet": {
"main": [
[
{
"node": "Crawl and Extract Site Content with Dumpling AI",
"type": "main",
"index": 0
}
]
]
},
" Combine Articles into Single Prompt Format": {
"main": [
[
{
"node": " Generate HTML Newsletter with Subject Using GPT-4o",
"type": "main",
"index": 0
}
]
]
},
"Split Extracted Results into Individual Items": {
"main": [
[
{
"node": "Map Title, URL, and Page Text",
"type": "main",
"index": 0
}
]
]
},
"Crawl and Extract Site Content with Dumpling AI": {
"main": [
[
{
"node": "Split Extracted Results into Individual Items",
"type": "main",
"index": 0
}
]
]
},
" Generate HTML Newsletter with Subject Using GPT-4o": {
"main": [
[
{
"node": "Send Newsletter via Gmail",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于AI、Marketing等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-4o AI分析和多格式报告运行完整技术SEO审计
使用GPT-4o AI分析和多格式报告运行完整技术SEO审计
Set
Xml
Code
+14
45 节点Oriol Seguí Rotllant
AI
使用Dumpling AI和GPT-4o自动生成AI新闻评论
使用Dumpling AI和GPT-4o自动生成AI新闻评论
Code
Wait
Split Out
+8
14 节点Yang
AI
使用Dumpling AI + GPT-4o根据自动补全建议生成标题
使用Dumpling AI + GPT-4o从自动补全建议生成标题
Set
Split Out
Http Request
+4
8 节点Yang
Design
将YouTube视频转换为SEO博客文章
使用GPT-4o、Dumpling AI和Flux将YouTube视频转换为SEO博客文章
Set
Gmail
Markdown
+4
15 节点Yang
AI
自动化博客撰写与社交媒体推广代理
使用GPT-4、Perplexity和WordPress自动化SEO博客创建+社交媒体
Set
Code
Gmail
+21
79 节点LukaszB
Design
我的工作流5
使用AI邮件个性化的自动化LinkedIn潜在客户生成(未完成)
If
Set
Code
+9
37 节点Matthieu
Sales