8
n8n 中文网amn8n.com

新闻摘要

高级

这是一个AI Summarization, Multimodal AI领域的自动化工作流,包含 21 个节点。主要使用 ZaloUser, N8nTrigger, Set, Limit, Merge 等节点。 使用OpenAI和Perplexity AI进行每日新闻摘要,通过Zalo和Telegram发送

前置要求
  • Telegram Bot Token
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "lsU5Gl4n2A1ubHRO",
  "meta": {
    "instanceId": "eb2e35a6e4ba3ff63ef980c031da61d993b4f2faa0ccc19283b4ab43f9ca13e6",
    "templateCredsSetupCompleted": true
  },
  "name": "新闻摘要",
  "tags": [],
  "nodes": [
    {
      "id": "680fa1a7-aa28-4b7f-88bb-179a0336d55a",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        -40,
        2300
      ],
      "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: 1 }) }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "60cbd601-be37-4c18-b227-1dbd124d714a",
      "name": "获取简报",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        2220
      ],
      "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": "conteudo",
              "type": "string",
              "value": "={{ $json['content:encoded'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "8e6b3ec4-1217-499b-9328-574426e7b53b",
      "name": "编辑字段1",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        2420
      ],
      "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": "bae1b890-716b-442c-8714-b4ece09063d7",
              "name": "conteudo",
              "type": "string",
              "value": "={{ $json.contentSnippet }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ddba353c-401a-4c5b-81bc-7447bdf9ba21",
      "name": "编辑字段2",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        2620
      ],
      "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": "conteudo",
              "type": "string",
              "value": "={{ $json.contentSnippet }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "2a7aa8d0-3dae-41c9-a0a0-11b4ea3611e1",
      "name": "编辑字段3",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        1980
      ],
      "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": "conteudo",
              "type": "string",
              "value": "={{ $json.content }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "49912d81-488a-409a-9767-f4cc639fa39a",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        -240,
        2280
      ],
      "parameters": {
        "numberInputs": 4
      },
      "typeVersion": 3.1
    },
    {
      "id": "48c5ee9e-8d9a-4cff-8e81-cb6276d6d3f7",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        180,
        2300
      ],
      "parameters": {
        "maxItems": 20
      },
      "typeVersion": 1
    },
    {
      "id": "60dd06a8-adb7-44a0-84c5-60dfbff6a709",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        360,
        2300
      ],
      "parameters": {
        "include": "specifiedFields",
        "options": {},
        "aggregate": "aggregateAllItemData",
        "fieldsToInclude": "title, pubDate, conteudo"
      },
      "typeVersion": 1
    },
    {
      "id": "f19c5e7b-f86e-4fcb-aa16-24769969d8dc",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1100,
        2300
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2b8f7f73-535f-4612-8a98-c9d4d30ce82f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        2460
      ],
      "parameters": {
        "content": "## 关于限制"
      },
      "typeVersion": 1
    },
    {
      "id": "d886ef81-bfc9-4d7d-ba51-ee73a7be73ee",
      "name": "我的RSS 01",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        1980
      ],
      "parameters": {
        "url": "https://rss.app/feeds/txgQZnXzgMDnuhVX.xml",
        "options": {
          "ignoreSSL": false
        }
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "4179ded2-4d6d-4023-8edc-042fa2a5ab48",
      "name": "我的RSS 02",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        2220
      ],
      "parameters": {
        "url": "https://rss.app/feeds/tcEnk7rveNrAqN6Y.xml",
        "options": {}
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "e4868740-d6b3-4880-a003-c3952a0bc7d1",
      "name": "我的RSS 03",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        2420
      ],
      "parameters": {
        "url": "https://news.google.com/rss/search?q=kinh+tế&hl=vi&gl=VN&ceid=VN:vi",
        "options": {}
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "59a2e7b9-eac7-41e3-a76d-8a976fbc2964",
      "name": "我的RSS 04",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        2620
      ],
      "parameters": {
        "url": "https://rss.app/feeds/tqLgD0PBHuJhlfLA.xml",
        "options": {
          "ignoreSSL": true
        }
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "c1c0e3d2-3ba3-4821-919e-809c27e5ef24",
      "name": "向助手发送消息",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        560,
        2300
      ],
      "parameters": {
        "text": "=I've received news articles via RSS. Please analyze them and provide a concise 400 words summary of the top 15 to 19 main highlights. My goal is to get a quick overview of what's most relevant in these articles. Translate to vietnamese, remove '*'\n1.{{ $json.data[0].title }}{{ $json.data[0].conteudo }}\n2.{{ $json.data[1].title }}{{ $json.data[1].conteudo }}\n3.{{ $json.data[2].title }}{{ $json.data[2].conteudo }}\n4.{{ $json.data[3].title }}{{ $json.data[3].conteudo }}\n5.{{ $json.data[4].title }}{{ $json.data[4].conteudo }}\n6.{{ $json.data[5].title }}{{ $json.data[5].conteudo }}\n7.{{ $json.data[6].title }}{{ $json.data[6].conteudo }}\n8.{{ $json.data[7].title }}{{ $json.data[7].conteudo }}\n9.{{ $json.data[8].title }}{{ $json.data[8].conteudo }}\n10.{{ $json.data[9].title }}{{ $json.data[9].conteudo }}\n11.{{ $json.data[10].title }}{{ $json.data[10].conteudo }}\n12.{{ $json.data[11].title }}{{ $json.data[11].conteudo }}\n13.{{ $json.data[12].title }}{{ $json.data[12].conteudo }}\n",
        "prompt": "define",
        "options": {},
        "resource": "assistant",
        "assistantId": {
          "__rl": true,
          "mode": "list",
          "value": "asst_fJUOGvgGLIi3rMs4rkQ3Wyhw",
          "cachedResultName": "News Sum"
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "7kz46LiiQlJ8S4vd",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "7c70426f-9fe0-497d-93e0-ba8622fbeb1b",
      "name": "Zalo触发器",
      "type": "CUSTOM.n8nTrigger",
      "position": [
        -1060,
        2100
      ],
      "webhookId": "308fa188-ef3b-4a83-b4a2-61103c02e477",
      "parameters": {
        "eventTypes": [
          1
        ]
      },
      "credentials": {
        "zaloUserOAuth2Api": {
          "id": "3SgTcNnk1Qz8b3OE",
          "name": "Zalo User account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c0cc0e60-1c96-4660-a860-33a4728d2123",
      "name": "发送个人和群组消息1",
      "type": "CUSTOM.ZaloUser",
      "position": [
        1020,
        2300
      ],
      "parameters": {
        "resource": "otherActions",
        "messenger_quote": {},
        "messenger_content": "={{ $json.output }}",
        "messenger_friend_id": "=5689866405750973941",
        "messenger_group_type": 1
      },
      "credentials": {
        "zaloUserOAuth2Api": {
          "id": "3SgTcNnk1Qz8b3OE",
          "name": "Zalo User account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "80a5dfab-4491-4154-830d-0cd2b88c860d",
      "name": "在Perplexity中向模型发送消息1",
      "type": "n8n-nodes-base.perplexityTool",
      "position": [
        560,
        2540
      ],
      "parameters": {
        "model": "sonar-reasoning",
        "options": {},
        "messages": {
          "message": [
            {
              "content": "\"Bạn là một nhà báo tài chính, kinh tế, chính trị chuyên sâu, hãy viết bản tin kinh tế tổng hợp 400 chữ.\""
            }
          ]
        },
        "simplify": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify_Output', ``, 'boolean') }}",
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "0Dh19D8wjnb9WNfy",
          "name": "Perplexity account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6655f305-5ca1-49ba-aa6f-4e7b5ef53c28",
      "name": "简单记忆1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        720,
        2520
      ],
      "parameters": {
        "sessionKey": "data",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "a3d5fa20-52a3-4d78-b4ff-b4de5f9c6824",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1100,
        2500
      ],
      "webhookId": "e45b625d-ec2c-4a7c-aa98-217881b2e017",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "LdwJ13TjT1oJsgCd",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a7cc9671-9fdb-43c5-9df1-bb2bd7ac66b6",
      "name": "发送短信",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1020,
        2500
      ],
      "webhookId": "bc039d14-5deb-4b45-aa70-25e31745f137",
      "parameters": {
        "text": "={{ $json.output }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "LdwJ13TjT1oJsgCd",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1b2c6800-4379-4de6-b105-59841a4cc6c7",
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Message an assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "My RSS 01": {
      "main": [
        [
          {
            "node": "Edit Fields3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "My RSS 02": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "My RSS 03": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "My RSS 04": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Edit Fields3": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zalo Trigger": {
      "main": [
        [
          {
            "node": "My RSS 01",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 02",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 03",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 04",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "Message an assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "My RSS 01",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 02",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 03",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 04",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "My RSS 01",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 02",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 03",
            "type": "main",
            "index": 0
          },
          {
            "node": "My RSS 04",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message": {
      "main": [
        []
      ]
    },
    "Message an assistant": {
      "main": [
        [
          {
            "node": "Gửi tin nhắn cá nhân & nhóm1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model in Perplexity1": {
      "ai_tool": [
        [
          {
            "node": "Message an assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - AI 摘要总结, 多模态 AI

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流