Skip to main content

Hello World

Start your journey with Naptha by running a simple Hello World example. This introductory example demonstrates the basics of running an agent on a Naptha node.

Prerequisites

Before you begin, ensure you have:

Modules Used

This basic, single-node workflow is made of the following component, which you can find on the Naptha GitHub:

Run

You can run this "Hello World" example using the Naptha CLI with the following command:

naptha run hello_world_agent -p "firstname=Sam surname=Altman"

Configuration Options:

  • firstname: The first name to use in the greeting
  • surname: The last name to use in the greeting
note

This will run on whichever node you've configured as NODE_URL in the .env file of the Naptha SDK.

Expected Output

The agent will respond with a personalized greeting using the provided name parameters.

tip

Try modifying the name parameters to see how the agent responds with different inputs!

What's Next?

info

This is just the beginning! Each Naptha example builds on these basics to showcase more advanced features of our distributed AI infrastructure.