Hacker News Top Stories AI Curator

Thumbnail for Video
How the AI Flow works - Hacker News Top Stories AI Curator

Flows

How the AI Flow works

Prompts used in this flow

Below is a complete list of all prompts used in this flow to achieve its functionality. Prompts are the instructions given to the AI model to generate responses or perform actions. They guide the AI in understanding user intent and generating relevant outputs.

AI Agent

The main backstory and goal prompt for the Hacker News AI agent

                **Core Functionality**:

**For general story requests:**

1. Always begin by calling either the `get_beststories` or the `get_topstories` tool depending on user query to retrieve the current top/best stories
2. Extract the IDs of the first 10 stories from the results
3. Use the `story_detail` tool to fetch information for each of these 10 story IDs individually
4. Present the user with a formatted list containing the title, a brief summary, and ID for all 10 top stories (always show exactly 10 stories)

**For specific story requests:**

1. When a user mentions a specific story title in the top 10 list, locate the corresponding story ID (if the user gave the number as "id=XYZ use the tool to find that id number detail, but if they give a number from 1 to 10 they mean one of the items in the list you provided them.)
2. Use the `story_detail` tool to retrieve the story's URL and details
3. Use the `URL_retriever` tool to fetch the full content from the story's URL
4. you will get a list of IDs in the previous step these are comment IDs use the ```comments_fetch``` tool to get the top 10 comments and give to the user as well. BUT MAKE SURE TO SEND THE IDS TO THE TOOL ONE BY ONE!
5. Provide the user with:
   * A comprehensive summary of the page content
   * The direct URL to the story
   * top 10 comment

**Important**: Always maintain consistency in showing the top 10 stories for general requests, and provide thorough summaries with URLs for specific story inquiries.

            

Components used in this flow

Below is a complete list of all components used in this flow to achieve its functionality. Components are the building blocks of every AI Flow. They allow you to create complex interactions and automate tasks by connecting various functionalities. Each component serves a specific purpose, such as handling user input, processing data, or integrating with external services.

Custom Trigger

Unlock custom workflows with the Custom Trigger component in FlowHunt. This component allows users to define specific trigger points within their flow, enabling tailored actions based on custom events or inputs. Essential for building interactive and flexible automation workflows.

Prompt Component in FlowHunt

Learn how FlowHunt's Prompt component lets you define your AI bot’s role and behavior, ensuring relevant, personalized responses. Customize prompts and templates for effective, context-aware chatbot flows.

API Request

Integrate external data and services into your workflow with the API Request component. Effortlessly send HTTP requests, set custom headers, body, and query parameters, and handle multiple methods like GET and POST. Essential for connecting your automations to any web API or service.

Parse Data

The Parse Data component transforms structured data into plain text using customizable templates. It enables flexible formatting and conversion of data inputs for further use in your workflow, helping to standardize or prepare information for downstream components.

Chat Output

Discover the Chat Output component in FlowHunt—finalize chatbot responses with flexible, multi-part outputs. Essential for seamless flow completion and creating advanced, interactive AI chatbots.

Button Widget

The Button Widget component in FlowHunt transforms text or input into interactive, clickable buttons within your workflow. Perfect for creating dynamic user interfaces, collecting user choices, and improving engagement in AI-driven chatbots or automated processes.

Chat Opened Trigger

The Chat Opened Trigger component detects when a chat session starts, enabling workflows to respond instantly as soon as a user opens the chat. It initiates flows with the initial chat message, making it essential for building responsive, interactive chatbots.

ChatInput

The Chat Input component in FlowHunt initiates user interactions by capturing messages from the Playground. It serves as the starting point for flows, enabling the workflow to process both text and file-based inputs.

Run Flow

The Run Flow component in FlowHunt lets you trigger and execute another workflow within your current flow. Pass inputs, variables, and control how flows interact, enabling modular and reusable automation. Ideal for chaining workflows or using flows as tools.

Chat History Component

The Chat History component in FlowHunt enables chatbots to remember previous messages, ensuring coherent conversations and improved customer experience while optimizing memory and token usage.

AI Agent

The AI Agent component in FlowHunt empowers your workflows with autonomous decision-making and tool-using capabilities. It leverages large language models and connects to various tools to solve tasks, follow goals, and provide intelligent responses. Ideal for building advanced automations and interactive AI solutions.

URL Retriever

Unlock web content in your workflows with the URL Retriever component. Effortlessly extract and process the text and metadata from any list of URLs—including web articles, documents, and more. Supports advanced options like OCR for images, selective metadata extraction, and customizable caching, making it ideal for building knowledge-rich AI flows and automations.

Flow description

Purpose and benefits

Let us build your own AI Team

We help companies like yours to develop smart chatbots, MCP Servers, AI tools or other types of AI automation to replace human in repetitive tasks in your organization.

Learn more

AI Blog Idea Generator for Competitor & Trend Analysis
AI Blog Idea Generator for Competitor & Trend Analysis

AI Blog Idea Generator for Competitor & Trend Analysis

This AI-powered workflow researches competitors and trending topics to generate high-impact, SEO-optimized blog ideas for FlowHunt.io. Using Google search, URL ...

4 min read
AI Daily News Article Generator
AI Daily News Article Generator

AI Daily News Article Generator

Automatically generates up-to-date news articles on any chosen topic by searching the latest trending articles on Google and YouTube, extracting key content, an...

3 min read
AI Chatbot with Real-Time Web & Knowledge Search
AI Chatbot with Real-Time Web & Knowledge Search

AI Chatbot with Real-Time Web & Knowledge Search

A powerful AI chatbot that answers user questions in real-time by retrieving and synthesizing information from Google, Reddit, Wikipedia, Arxiv, Stack Exchange,...

3 min read