8
n8n 中文网amn8n.com

AI新闻到Telegram

中级

这是一个Personal Productivity, AI Summarization领域的自动化工作流,包含 10 个节点。主要使用 JinaAi, Telegram, ChainLlm, RssFeedReadTrigger, LmChatGoogleGemini 等节点。 使用Gemini 2.5 Flash生成AI新闻摘要并发送到Telegram

前置要求
  • Telegram Bot Token
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "zDkzvOtSzX6bWfNH",
  "meta": {
    "instanceId": "e57d916222032d19fc69f0f34e059f722d4f608515cab84ee2db9eaaa4240714",
    "templateCredsSetupCompleted": true
  },
  "name": "AI News to Telegram",
  "tags": [],
  "nodes": [
    {
      "id": "0977ff6e-f60d-4ace-aa2f-97b26c624703",
      "name": "Generate Report",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        528,
        112
      ],
      "parameters": {
        "text": "=You are an expert AI Technology Analyst. Your task is to process scraped articles from two distinct news sources: \"AI Tech Suite News\" and \"AI-News\". Your goal is to synthesize this information into a single, concise, and insightful daily intelligence briefing.\n\nAnalyze the content from both sources to identify the most significant news, find common themes, and highlight unique stories from each. The final output must be a well-structured report formatted using ONLY the following Telegram-supported HTML tags: <b>, <i>, <u>, <s>, <code>, <pre>, and <a>. For lists, DO NOT use <ul>, <ol>, or <li> tags. Instead, create lists by starting each item on a new line with a hyphen character (-).\n\n\n**Input Data:**\n\n* **Data from AI-News:**\n    `\nTitle : {{ $json.title }}\nContent : {{ $json.content }}\nPublished : {{ $json.publishedTime }}\n`\n\n**Required Output Structure:**\n\n---\n\n**Today's AI Intelligence Briefing**\n**Date:** {{ new Date().toLocaleDateString('en-GB', { day: 'numeric', month: 'long', year: 'numeric' }) }}\n\n**Top Headlines**\n*(Identify the 3-4 most critical and impactful news items from across both sources. Present them as concise, single-sentence bullet points.)*\n* * * **Deep Dive: Major Developments & Common Themes**\n*(Analyze stories covered by both sources. For each major theme or event, provide a 2-3 sentence summary explaining the key points, the companies involved, and why it's significant. Use bold subheadings for each theme.)*\n\n**Theme/Story 1:**\n...\n\n**Theme/Story 2:**\n...\n\n\n**IMPORTANT** : Generate Text that can be sent to telegram chat as text message.",
        "batching": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "7132f95b-8154-411b-9b2c-9956e8744fc8",
      "name": "Gemini 2.5 Flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        736,
        -32
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "CRAXPLUPIbNPKb58",
          "name": "Google Gemini API"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7bace8d8-2a5e-4eb8-89fd-ee9e44f128ff",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1024,
        112
      ],
      "webhookId": "e82b0b62-3f1e-43b9-8785-7beb669ef7db",
      "parameters": {
        "text": "={{ $json.text }}",
        "chatId": "CHAT_ID",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "G3ahQAPH5eCYY6FB",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9583e193-69f6-45e5-a346-9afc4bcc3e28",
      "name": "AI-News Feed",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -80,
        112
      ],
      "parameters": {
        "feedUrl": "https://www.artificialintelligence-news.com/feed/",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c6bc8303-859f-4f94-8610-d68cb02ab9c6",
      "name": "Read News from AI News Website",
      "type": "n8n-nodes-base.jinaAi",
      "position": [
        224,
        112
      ],
      "parameters": {
        "url": "={{ $json.link }}",
        "options": {},
        "requestOptions": {}
      },
      "credentials": {
        "jinaAiApi": {
          "id": "n4cj9W8wOfjdQiaB",
          "name": "Jina AI account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3e84bc24-1aab-4d23-b34b-a76edd077111",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -112
      ],
      "parameters": {
        "width": 288,
        "height": 576,
        "content": "## **`AI-News Feed`**\n\nThis is the starting point of the workflow.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n* **Action:** Triggers automatically every minute.\n* **Source:** Fetches new articles from the RSS feed at `https://www.artificialintelligence-news.com/feed/`.\n* **Output:** Sends the new article's title, link, and other metadata to the next node."
      },
      "typeVersion": 1
    },
    {
      "id": "a517cd26-0a88-4441-8e67-550fdb111c5b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -112
      ],
      "parameters": {
        "color": 7,
        "width": 288,
        "height": 576,
        "content": "## **`Read News from AI News Website`**\n\nThis node gets the full content of the news article.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n* **Action:** Takes the `link` from the RSS Feed node.\n* **Service:** Uses Jina AI to \"scrape\" or read the full text from that link.\n* **Output:** Provides the clean content of the article to the report generation node.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "41df0193-7200-46b1-a8c1-d82d975aa2ab",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -112
      ],
      "parameters": {
        "color": 2,
        "width": 464,
        "height": 576,
        "content": "## **`Generate Report`**\n\nThis is the *`brain`* of the workflow.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n* **Action:** Uses the Gemini model to create a summary based on the prompt and the scraped article content.\n* **Function:** Uses the detailed prompt and the Gemini model to analyze the input and generate a structured news report.\n* **Output:** Sends the final, formatted report text to the Telegram node.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "d38ce4da-0ccc-4eb6-a6c1-01b15b873535",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        -112
      ],
      "parameters": {
        "color": 6,
        "width": 320,
        "height": 576,
        "content": "## **`Send a text message in Telegram`**\n\nThis is the final step that sends the result.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n* **Action:** Takes the final report (`text` output) from the \"Generate Report\" node.\n* **Destination:** Sends this report as a message to your specified Telegram Chat ID.\n* **Result:** You receive the AI-generated news briefing in Telegram."
      },
      "typeVersion": 1
    },
    {
      "id": "6ba04be9-4cd6-4a06-b35d-eb9ecd56a2e0",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -112
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 576,
        "content": "## Workflow Summary: AI News to Telegram\n\nThis workflow automates the process of creating and delivering AI-powered news summaries.\n\n**End-to-End Process:**\n1.  **Trigger:** The workflow starts when a new article is published on the **AI-News** RSS feed.\n2.  **Scrape:** It uses **Jina AI** to read the full content of that article from its link.\n3.  **Analyze:** The scraped text is sent to the **Gemini 2.5 Flash LLM**.\n4.  **Generate:** The AI generates a structured summary based on a custom analyst prompt.\n5.  **Deliver:** The final, formatted report is sent as a message to a specific chat on **Telegram**.\n\n**Goal:** To provide automated, concise briefings of the latest articles from AI-News directly to Telegram."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7e8007df-6f0f-4612-934e-798ab660f92e",
  "connections": {
    "9583e193-69f6-45e5-a346-9afc4bcc3e28": {
      "main": [
        [
          {
            "node": "c6bc8303-859f-4f94-8610-d68cb02ab9c6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0977ff6e-f60d-4ace-aa2f-97b26c624703": {
      "main": [
        [
          {
            "node": "7bace8d8-2a5e-4eb8-89fd-ee9e44f128ff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7132f95b-8154-411b-9b2c-9956e8744fc8": {
      "ai_languageModel": [
        [
          {
            "node": "0977ff6e-f60d-4ace-aa2f-97b26c624703",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "c6bc8303-859f-4f94-8610-d68cb02ab9c6": {
      "main": [
        [
          {
            "node": "0977ff6e-f60d-4ace-aa2f-97b26c624703",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 个人效率, AI 摘要总结

需要付费吗?

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

工作流信息
难度等级
中级
节点数量10
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Harsh Maniya

Harsh Maniya

@harshmaniya1

Crafting Intelligent AI Solutions | AI Engineer building the next generation of intelligent workflows on n8n. Automating the complex, one node at a time.

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34