Prompt
Prompt template for fetching Hacker News best stories IDs
An automated AI-powered workflow to fetch, summarize, and present the top Hacker News stories, including story details, URLs, and top comments. Users can interact via chat or buttons, and the AI agent retrieves and organizes trending tech, startup, and AI discussions in a user-friendly format.
Flows
Prompt template for fetching Hacker News best stories IDs
Prompt template for fetching a specific Hacker News story by ID
Prompt template for fetching a specific Hacker News story by ID (duplicate, possibly another workflow branch)
Prompt template for fetching Hacker News top stories IDs
The main backstory and goal prompt for the Hacker News AI agent
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
This workflow automates the process of curating, summarizing, and displaying top stories and comments from Hacker News . It combines API integrations, templating, parsing, user interaction widgets, and an AI agent to provide users with a seamless experience for exploring and summarizing trending discussions in tech, startups, AI, and more.
The flow is structured to respond to different user triggers—such as button clicks or custom commands—to fetch and present either general lists of top or best stories, or in-depth details for specific stories, including their URLs and top comments. It leverages the Hacker News API, processes and formats the results, and optionally uses an AI agent to further automate and enrich the interaction.
| Component | Purpose |
|---|---|
| Custom Triggers | Initiate flows for fetching best stories, top stories, story details, or comments. |
| Prompt Templates | Generate dynamic API URLs by substituting variables (e.g., story IDs) for requests. |
| API Requests | Make HTTP GET requests to Hacker News endpoints. |
| Parse Data | Convert raw API data into readable text with templates. |
| Chat Output | Display results/messages in the chat interface. |
| Button Widgets | Present user-friendly buttons to trigger actions. |
| Chat Input/Opened | Capture user messages or detect chat session start. |
| Chat History | Store and retrieve conversation context for the AI agent. |
| AI Agent | Orchestrates the flow, decides which tools to use, formats summaries, and maintains consistency. |
| URL Retriever | Fetches and summarizes content from external URLs. |
| Run Flow | Allows flows to be reused as tools by the AI agent. |
When the chat interface is opened, a welcome message and interactive buttons are displayed:
Upon user trigger (button or command):
/v0/topstories.json or /v0/beststories.json) via a template.When a user requests more information about a specific story:
At the core, an AI Agent serves as an orchestrator:
The workflow uses “Run Flow” nodes to modularize fetching top stories, story details, and comments as reusable tools that the AI agent can call as needed. This design makes it easy to extend or scale the workflow to handle new trigger types or additional features.
| Trigger Type | Action | Output |
|---|---|---|
| Chat Opened | Show welcome message and buttons | Interactive UI |
| “Get Top/Best Stories” | Fetch and show top/best 10 stories | List of stories |
| Story Detail Request | Fetch details, article content, top 10 comments for a story | Summary + comments |
| AI Agent Query | Orchestrate above using tools, maintain consistency, clarify requests | Structured, conversational reply |
Through this workflow, you can automate the curation and presentation of Hacker News stories, enabling rich, interactive, and scalable user experiences with minimal manual effort.
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.
This AI-powered workflow researches competitors and trending topics to generate high-impact, SEO-optimized blog ideas for FlowHunt.io. Using Google search, URL ...
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...
A powerful AI chatbot that answers user questions in real-time by retrieving and synthesizing information from Google, Reddit, Wikipedia, Arxiv, Stack Exchange,...
Cookie Consent
We use cookies to enhance your browsing experience and analyze our traffic. See our privacy policy.



