Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

N8N Telegram News Agent

Automatically fetch, summarize, and send the latest news from an RSS feed to Telegram using n8n and Groq's LLaMA 3 model.


Overview

The n8n Telegram News Agent is a low-code automation workflow built with n8n that:

  • Fetches the latest article from an RSS feed (e.g. BBC News)
  • Summarizes the content using Groq's LLaMA 3 via API
  • Sends the article title, AI-generated summary, and a link to a Telegram chat

Ideal for setting up your own daily news delivery bot in just minutes.


Features

  • Scheduled RSS fetching (custom interval)
  • AI-powered summaries (Groq API)
  • Includes article title + summary + link
  • Sends to your Telegram bot/channel/group
  • 🛠Fully customizable via n8n's visual editor

🛠Tech Stack

Tool Purpose
n8n Workflow automation platform
Groq API Summarize content using LLaMA 3
Telegram Deliver news via bot messages
RSS News source (e.g., BBC, CNN)

Workflow Structure

Screenshot_20250711_221735

Setup Instructions

1. Clone the Repo

git clone https://github.com/BhaveshBhakta/N8N-Telegram-News-Agent.git
cd nN8N-Telegram-News-Agent

2. Import Workflow into n8n

  1. Launch your local or hosted n8n instance
  2. Click “Import Workflow”
  3. Select rss-telegram-summary-bot.json from this repo

3. Create Required Credentials in n8n

Groq API Credential

Field Value
Type HTTP Request Auth (Header)
Key Authorization
Value Bearer YOUR_GROQ_API_KEY

💬 Telegram API Credential

Field Value
Bot Token From BotFather
Chat ID Your chat ID or channel ID

4. 🛠️ Configure the Workflow

  • Set your Telegram chat ID in the Telegram node:

    "chatId": "YOUR_CHAT_ID"
  • RSS feed is set to:

    https://feeds.bbci.co.uk/news/rss.xml
    

    You can change this in the RSS Read node.


5. Run It!

You can run it manually or let the Schedule Trigger handle it automatically (e.g., every hour).


Example Output on Telegram

📰 Ukraine to receive US air defence systems

The US president says he will sell weapons to NATO, which would then give them to Ukraine.

🔗 [Read full article](https://www.bbc.com/news/articles/crl04200dp4o)

Security Notice

⚠️ Do not expose your API keys, bot tokens, or chat IDs in public repositories. This example uses placeholders like YOUR_API_KEY and YOUR_CHAT_ID — be sure to replace them with environment-secured credentials in production.


License

MIT License


About

An n8n automation that fetches the latest news from an RSS feed, summarizes it using Groq's LLaMA 3, and sends it to Telegram — fully automated, customizable, and self-hosted.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors