This guide will walk you through building a simple agentic application that summarizes Hacker News articles.

1

Bootstrap a new project

  # Install the Inferable CLI
  npm i @inferable/cli -g

  # Bootstrap a new NodeJS project
  inf bootstrap node

Running the following commands will:

  • Install the Inferable CLI
  • Authenticate with the Inferable API (if not already authenticated)
  • Create a new Cluster within your account
  • Bootstrap a new project in the ./inferable-app directory with credentials stored in .env
2

Start the service

The bootstrap project contains a number of functions that interact with your file system and news.ycombinator.com.

Let’s start the service.

  cd ./inferable-app
  npm run dev

3

Trigger a Run

The bootstrap project contains a number of functions that interact with your file system and news.ycombinator.com.

Let’s trigger a run programmatically.

npm run trigger

Because the services are executing in your local machine, the requests to hacker news will be made using your own IP address. The generated html will be saved in your local machine.

You can see that Inferable has successfully understood the command and has performed a number of steps to achieve it: