{
  "id": 8977384,
  "title": "Building a Serverless AI Tech-News Bot with Node.js, Gemini and GitHub Actions",
  "url": "https://urgent.news/2026/09/21/building-a-serverless-ai-tech-news-bot-with-node-js-gemini-and-github",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-21T18:20:18.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sam000/building-a-serverless-ai-tech-news-bot-with-nodejs-gemini-and-github-actions-17po"
  },
  "original_language": "en",
  "account": "The Chaos Routine Bot is a serverless AI technology-news bot that runs automatically every morning to generate an AI-assisted briefing on the latest tech stories. The bot is built using Node.js and combines several technologies for a practical automation pipeline.\n\nThe high-level pipeline includes:\n\n1. Randomly selecting two technology news sources from a pool that includes Hacker News, Reddit, Lobste.rs, Dev.to, InfoQ, BleepingComputer, Krebs on Security, TechCrunch, AI ServeTheHome, Phoronix, TechXplore, ScienceDaily, and Nanotechnology.\n2. Filtering out non-technology content using a negative keyword list and a technology whitelist. This ensures only relevant tech articles are processed further.\n3. Cleaning the extracted article content using JSDOM and Mozilla Readability libraries to produce a more readable structure.\n4. Applying offline NLP with the Compromise library to create a concise summary of the article, taking the first three sentences after processing.\n5. Generating the final briefing using Gemini 2.5 Flash. The model is given a persona of a tired senior software engineer to create a consistently sarcastic and engaging editorial style.\n6. Providing a graceful AI fallback that uses offline summaries if no Gemini API key is available.\n7. Delivering the generated briefing to both Telegram and Discord platforms using the Telegram Bot and Discord webhook APIs, respectively.\n8. Creating a static JSON file and an RSS feed containing the briefing information for easy access by readers.\n9. Automating the entire process using GitHub Actions, which runs at 02:30 UTC (08:00 IST) and deploys the generated output using the Vercel CLI. The workflow keeps all credentials in GitHub secrets to avoid committing real API keys or bot tokens to Git.\n\nThis architecture separates the responsibilities of each component, making it easier to debug and providing a useful fallback path if external APIs become unavailable. The complete source code is available on GitHub at https://github.com/starJeet000/Telegram-News-Scraper-Bot.",
  "summary": "I wanted to build a project that combined several technologies into one practical automation pipeline: Node.js Web scraping RSS Offline NLP Generative AI Telegram Discord GitHub Actions Vercel The result is the Chaos Routine Bot , a serverless technology-news agent that runs every morning and generates an AI-assisted briefing. GitHub repository:…",
  "key_points": [
    "Chaos Routine Bot generates AI-assisted tech news briefings daily",
    "Node.js framework with Gemini 2.5 Flash, JSDOM, and Compromise library",
    "Automated workflow via GitHub Actions at 02:30 UTC, Vercel CLI deployment"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}