1. Flow Metadata

  • Name: Hacker News Headline Viewer
  • Description:
    This tool can be used to visit hacker news webpage and extract ALL headlines and links from the page that have to do with a particular topic.
     
    Available options for `page`:
    (empty) - front page
    "newest" - newest posts page
     
    Examples of how to use this flow:
    "Find AI-related posts on HackerNews"
    "Show me political discussions from the newest HackerNews posts"
     
    The flow will return relevant articles as clickable markdown links.

2. Flow Variables

Variable NameDefault Value
hackerNewsURLPath(leave empty)
topicOfInterestPolitical discussions or items
pageContentFromSite(leave empty)

3. Web Scraper Block

  • URL to scrape: https://news.ycombinator.com/${hackerNewsURLPath}
  • Result Variable: pageContentFromSite

4. LLM Instruction Block

  • Result Variable: (leave empty)
  • Instructions:
    Extract all links from this content that would be relevant to this topic: ${topicOfInterest}
     
    Content:
    ${pageContentFromSite}
     
    Format your response as a list of markdown links, with a brief description of why each link is relevant.
    If no relevant links are found, say "No relevant articles found."

5. Execution & Validation Prompts

  • Find AI-related posts on HackerNews
  • Show me political discussions from the newest HackerNews posts
  • What are the latest cryptocurrency articles on HackerNews?