← Back to docsRecipe

Recipe: News summarizer

Build an automated pipeline that fetches RSS feeds, extracts article text, and produces concise summaries using Meridian's LLM endpoints. Deploy as a scheduled background job.

RSSLLMCron

Ingredients

  • Meridian API key with chat.completions scope
  • Node.js 20+ runtime (or Python 3.11+)
  • RSS parser library (rss-parser or equivalent)
  • Article extractor (Readability or Mercury parser)
  • Cron scheduler or Vercel Cron Jobs

Steps

  1. 1Fetch feeds. Pull the latest entries from your target RSS feeds. Filter for articles published in the last 24 hours.
  2. 2Extract content. For each article URL, strip boilerplate and extract the main body text using a readability library.
  3. 3Summarize. Send the extracted text to POST /v1/chat/completions with a system prompt instructing a 3-sentence summary. Use temperature 0.3 for consistency.
  4. 4Deliver. Write results to a database, send via email, or push to a Slack webhook. Schedule the script to run hourly.

Need the full source? Clone the recipes repository and run npm run news-digest.