Skip to content

Latest commit

 

History

History

hackernews

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
title description integrations categories
Hacker News alerts in Slack
Track Hacker News articles by topic and send updates to Slack
slack
Productivity

Hacker News Alerts in Slack

This project monitors Hacker News for new articles matching a specific topic, fetching their details in real-time. It compares the latest results with previously fetched articles to identify new ones and sends their title and URL as notifications to a Slack channel.

How It Works

  1. Extract the topic from the Slack app mention.
  2. Add the topic to the Hacker News search query (check out Algolia's REST API for more details).
  3. Return all the new articles related to the topic that were published since the last check.

Deployment & Configuration

Cloud Usage (Recommended)

  • Initialize your connection with Slack through the UI

Prerequisites

Installation Steps

  1. Clone the repository:

    git clone https://github.com/autokitteh/kittehub.git
    cd kittehub/hackernews
  2. Start the AutoKitteh server:

    ak up --mode dev
  3. Deploy the project:

    ak deploy --manifest autokitteh.yaml

    The output will show your connection IDs, which you'll need for the next step. Look for lines like:

    [exec] create_connection "hackernews_alert/slack_connection": con_01je39d6frfdtshstfg5qpk8sz created

    In this example, con_01je39d6frfdtshstfg5qpk8sz is the connection ID.

  4. Initialize your connections using the CLI:

    ak connection init slack_connection <connection ID>

Trigger Workflow

  • Type @your-slack-app topic in the Slack channel you set in the environment variable, replacing topic with what you want to search for, to start tracking articles
  • The workflow runs automatically every two minutes after deployment