Quick overview
This workflow runs every morning at 8 AM, pulls articles from multiple RSS feeds, deduplicates and trims the list, uses OpenAI (GPT-5 Mini) to write a short plain-text news digest, and delivers the same digest to a Telegram chat and a Gmail inbox.
How it works
- Runs daily at 8:00 AM on a schedule.
- Splits your configured RSS feed URL list into individual feeds and fetches the latest articles from each one, continuing even if a feed fails.
- Removes duplicate articles by link, keeps only the newest items up to your maxArticles limit, and trims each item to title, link, publish date, and a short snippet.
- Combines all cleaned articles into a single JSON list and sends it to OpenAI (GPT-5 Mini) to select 5–8 top stories and generate a single plain-text digest under 3,500 characters.
- Sends the generated digest to your specified Telegram chat.
- Emails the same digest as a plain-text message through Gmail.
Setup
- Add an OpenAI credential and ensure the GPT-5 Mini model is available in your account.
- Create a Telegram bot with @BotFather, add the Telegram credential in n8n, and set your target telegramChatId (for example by using @get_id_bot).
- Connect a Gmail account in n8n and set the recipient address to use for the digest.
- In “Your Settings (EDIT ME)”, replace feedUrls, digestTopic, emailTo, telegramChatId, and maxArticles with your own values.