πŸ“Š Send a daily AI news digest from Hacker News with OpenRouter GPT-5 and Telegram

⚑ 5 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Quick overview

This workflow runs daily to fetch the latest AI stories from Hacker News (Algolia API), scrape and convert each article to text, summarize them in Russian using OpenRouter (GPT-5 with GPT-4 fallback), and send a formatted digest to a Telegram chat.

How it works

  1. Runs once a day on a schedule.
  2. Queries the Hacker News Algolia API for recent AI-related stories, splits the results into individual items, filters to the last 24 hours, and limits the digest to three articles.
  3. Checks whether any real articles remain and, if none are found, sends a β€œno news today” message to Telegram.
  4. For each remaining story, fetches the linked page HTML, keeps the original title and URL, and converts the content to Markdown text while skipping blocked/failed scrapes.
  5. Collects the successfully scraped articles into a single JSON array and sends them to OpenRouter for Russian headings and two-sentence summaries, enforcing a structured JSON response.
  6. Formats the summaries into Telegram Markdown with bold headings and source links, then posts the digest to the configured Telegram chat.

Setup

  1. Add an OpenRouter API credential and choose/adjust the models (primary GPT-5 and optional GPT-4 fallback) used for summarization.
  2. Add Telegram bot credentials and replace YOUR_TELEGRAM_CHAT_ID in both Telegram send steps with your target chat ID.
  3. Set the time for the daily Schedule Trigger and, if needed, update the Hacker News Algolia query URL (search term, tags, and filters) and the max item limit.

Requirements

Customization

Additional info

Some source sites (e.g. those behind bot-detection services like Datadome) will block automated scraping and return a 403 error. This is expected and handled gracefully: the Scrape Article URL node routes failed requests through its error output, skipping that article without breaking the run. On days with zero matching AI stories, the workflow skips scraping and GPT entirely and sends a short β€œno news today” message instead β€” saving API costs. The Hacker News Algolia Search API used here is free and requires no authentication.

πŸ”— Nodes Used

HTTP Request, Telegram, Markdown, Schedule Trigger, Filter, Basic LLM Chain

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup