LangChain Automate

LangChain Automate streamlines the process of analyzing and categorizing Hacker News headlines from multiple years, delivering insights on tech trends through automated scheduling. It extracts key headlines, organizes them by themes, and shares the findings via Telegram, enhancing information accessibility and engagement.

7/8/2025
13 nodes
Complex
schedulecomplexlangchainschedule triggersplitoutaggregatetelegramautomationadvancedcronapiintegrationcommunicationbot
Categories:
Communication & MessagingSchedule TriggeredComplex Workflow
Integrations:
LangChainSchedule TriggerSplitOutAggregateTelegram

Target Audience

This workflow is ideal for:
- Tech Enthusiasts: Individuals interested in tracking the evolution of technology through historical headlines.
- Developers and Data Analysts: Professionals looking to analyze trends in tech news over multiple years.
- Content Creators: Writers and bloggers who want to reference past headlines for articles or reports.
- Researchers: Academics studying the impact of technology on society and its progression over time.
- Social Media Managers: Those who want to engage their audience with historical insights from Hacker News.

Problem Solved

This workflow addresses the challenge of:
- Information Overload: By automating the extraction and categorization of relevant headlines from Hacker News, users can easily access key insights without sifting through excessive data.
- Historical Analysis: It provides a structured way to analyze how technology trends have shifted over the years on the same date, allowing for meaningful comparisons and insights.

Workflow Steps

The workflow consists of the following steps:
1. Schedule Trigger: Initiates the workflow at a specified time daily.
2. CreateYearsList: Generates a list of dates to fetch headlines from, spanning multiple years starting from 2007.
3. CleanUpYearList: Prepares the list of dates for further processing.
4. SplitOutYearList: Divides the list into individual dates for fetching headlines.
5. GetFrontPage: Makes an HTTP request to Hacker News to retrieve the front page content for each date.
6. ExtractDetails: Extracts headlines and the corresponding date from the HTML response.
7. GetHeadlines: Collects the extracted headlines into a structured format.
8. GetDate: Captures the date associated with the headlines.
9. MergeHeadlinesDate: Combines the extracted headlines with their respective dates.
10. SingleJson: Aggregates the data into a single JSON object for easier processing.
11. Basic LLM Chain: Processes the aggregated data to identify and categorize key headlines using a language model.
12. Telegram: Sends the final categorized headlines as a message to a specified Telegram channel.

Customization Guide

Users can customize the workflow by:
- Adjusting the Schedule: Modify the trigger settings to change when the workflow runs (e.g., daily, weekly).
- Changing the Date Range: Update the CreateYearsList code to adjust the years from which headlines are fetched.
- Modifying the Extraction Logic: Alter the ExtractDetails parameters to change which elements are extracted from the Hacker News page.
- Customizing the Output Format: Edit the Basic LLM Chain parameters to change how headlines are categorized and formatted in the final output.
- Integrating Additional Nodes: Add new nodes for further processing, such as sending alerts via email or storing results in a database.

LangChain Automate - N8N Workflow Directory