8
n8n 中文网amn8n.com

每日新闻摘要:使用ScrapeGraphAI汇总RSS源并发送至邮箱/Telegram

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 22 个节点。主要使用 Set, Gmail, Limit, Filter, Telegram 等节点。 通过GPT和Gemini从RSS源创建个性化新闻摘要,发送至邮箱/Telegram

前置要求
  • Google 账号和 Gmail API 凭证
  • Telegram Bot Token
  • OpenAI API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "cue9rkrhYJ1Wtakg",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462"
  },
  "name": "每日新闻摘要:使用 ScrapeGraphAI 汇总 RSS 源并发送至邮箱/Telegram",
  "tags": [],
  "nodes": [
    {
      "id": "e116ed61-f29e-46c8-aff5-debdf21d923c",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2544,
        528
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c371e851-1a56-49d1-8269-a507360c9ecc",
      "name": "RSS 读取",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -2288,
        528
      ],
      "parameters": {
        "url": "URL_FEED",
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "aca55f6e-ea59-4e96-bdeb-91ffaaf43ff2",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1568,
        528
      ],
      "parameters": {
        "maxItems": 3
      },
      "typeVersion": 1
    },
    {
      "id": "b735bf45-5f47-42ef-9219-0c23439adb22",
      "name": "遍历项目1循环",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1312,
        528
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "bef44bc3-7321-4b43-a4bf-a2a8e3a1ee19",
      "name": "将网页或文章转换为适用于博客开发文档等的干净 Markdown 格式",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        -1008,
        544
      ],
      "parameters": {
        "resource": "markdownify",
        "websiteUrl": "={{ $json.link }}"
      },
      "credentials": {
        "scrapegraphAIApi": {
          "id": "EOxCPnl9IynxgpyB",
          "name": "ScrapegraphAI account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "40420f33-e490-46c8-bfc9-51fd2f407560",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -896,
        256
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-mini",
          "cachedResultName": "gpt-5-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "TefveNaDaMERl1hY",
          "name": "OpenAi account (Eure)"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6d6eaf3d-ce5e-4601-949c-c3081db1b0a1",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        -2064,
        528
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "6c64612b-a897-4980-84c7-6cba41ce3fb8",
              "operator": {
                "type": "dateTime",
                "operation": "after"
              },
              "leftValue": "={{ $json.pubDate }}",
              "rightValue": "={{ $today.minus({ days: 1 }) }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "a63eb4aa-7e1a-47e4-a097-3dd07efb9290",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -336,
        -48
      ],
      "webhookId": "d25abd3f-fe6f-4667-a64b-dc30af758c58",
      "parameters": {
        "sendTo": "info@n3w.it",
        "message": "={{ $json.output.body }}",
        "options": {},
        "subject": "={{ $json.output.subject }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "nyuHvSX5HuqfMPlW",
          "name": "Gmail account (n3w.it)"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "83cafb3d-122e-41cd-b6da-7943183c72e6",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -704,
        400
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "TefveNaDaMERl1hY",
          "name": "OpenAi account (Eure)"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "52f12ae8-1d17-481a-b787-bbb1a051b649",
      "name": "设置链接",
      "type": "n8n-nodes-base.set",
      "position": [
        -1792,
        528
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "829a3bf3-b40d-4614-b82d-b8af961c0dc0",
              "name": "link",
              "type": "string",
              "value": "={{ $json.link }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "969913dc-4cd3-474d-b627-2ef10524b1ff",
      "name": "信息提取器",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        -704,
        544
      ],
      "parameters": {
        "text": "={{ $json.result }}",
        "options": {
          "systemPromptTemplate": "You are an expert extraction algorithm.\nOnly extract relevant information from the text.\nIf you do not know the value of an attribute asked to extract, you may omit the attribute's value."
        },
        "attributes": {
          "attributes": [
            {
              "name": "content",
              "description": "Estrai il testo completo dell'articolo"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9b2735b6-febd-406b-821e-d4938529c6d1",
      "name": "Google Gemini聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -816,
        768
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "AaNPKXAphyMzRgfA",
          "name": "Google Gemini(PaLM) (Eure)"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "537c3ff3-b953-4ef8-bdfe-86e3e3c4b605",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2592,
        80
      ],
      "parameters": {
        "color": 5,
        "width": 992,
        "height": 128,
        "content": "## 步骤 1"
      },
      "typeVersion": 1
    },
    {
      "id": "f019b022-52c3-4277-976e-bdd2f4ee0ca0",
      "name": "发送至 Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -336,
        160
      ],
      "webhookId": "80527629-8295-4818-959a-7b7ba7b00c57",
      "parameters": {
        "text": "={{ $json.output.body }}",
        "chatId": "YOUR_CHAT_ID",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "rQ5q95W7uKesMDx4",
          "name": "Telegram account Fastewb"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3a545310-5b54-4a5a-be3d-f18a6287861c",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -688,
        256
      ],
      "parameters": {
        "autoFix": true,
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"subject\": {\n      \"type\": \"string\",\n      \"description\": \"The subject or title of the message\"\n    },\n    \"body\": {\n      \"type\": \"string\",\n      \"description\": \"The body or main content of the message\"\n    }\n  },\n  \"required\": [\"subject\", \"body\"],\n  \"additionalProperties\": false\n}",
        "customizeRetryPrompt": true
      },
      "typeVersion": 1.3
    },
    {
      "id": "58ee0461-e171-448e-9348-7af48a7fa37d",
      "name": "生成内容",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -832,
        80
      ],
      "parameters": {
        "text": "={{ JSON.stringify($json.text) }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "=You are an expert in summarizing texts and identifying main ideas. Extract the key concepts from the listed articles and present them in the form of an email."
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    },
    {
      "id": "e0f3a455-8bd2-483c-8f58-c130dc1f7dc8",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -1040,
        80
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "renameField": true,
              "outputFieldName": "text",
              "fieldToAggregate": "output.content"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "70f01c5b-cc79-4a6f-9976-19b2ad882c69",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2304,
        464
      ],
      "parameters": {
        "width": 384,
        "height": 208,
        "content": "设置并筛选最新的 RSS 源(24小时内)"
      },
      "typeVersion": 1
    },
    {
      "id": "22e557ea-972d-41be-bbfa-b18d025b2266",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        496
      ],
      "parameters": {
        "width": 656,
        "height": 208,
        "content": "抓取并提取相关内容"
      },
      "typeVersion": 1
    },
    {
      "id": "f5f3a525-5252-4ca5-a150-e4f38d27a1da",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        16
      ],
      "parameters": {
        "width": 320,
        "height": 208,
        "content": "生成通过邮箱和 Telegram 发送的内容"
      },
      "typeVersion": 1
    },
    {
      "id": "488b4f4c-bb5d-4604-bc3e-f4d3a14ae7d8",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2592,
        -128
      ],
      "parameters": {
        "color": 3,
        "width": 992,
        "height": 176,
        "content": "## 每日新闻摘要:使用 ScrapeGraphAI 汇总 RSS 源并发送至邮箱/Telegram"
      },
      "typeVersion": 1
    },
    {
      "id": "c21e63c7-e8fe-40a0-a149-e3339723415d",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2592,
        240
      ],
      "parameters": {
        "color": 5,
        "width": 992,
        "height": 128,
        "content": "## 步骤 2"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1e0f99f7-c4b0-4b60-9806-99318a2c3322",
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Set link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set link": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Generate content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate content": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Convert a webpage or article to clean markdown useful for blogs dev docs and more",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate content",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate content",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert a webpage or article to clean markdown useful for blogs dev docs and more": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量22
分类2
节点类型16
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza

外部链接
在 n8n.io 查看

分享此工作流