Quick Start
Get started with Inferable in minutes
This guide will help you quickly set up and run your first Inferable agent workflow.
We will build a simple workflow that greets the user, as an illustration of the basic concepts.
Create a demo cluster
Install dependencies
bash npm init -y npm install inferable tsx
Create a simple tool
Tools are plain old functions that allow the agent to take actions on your behalf. All tools run on the machine that they are registered on.
Create a file called tools.ts
:
Create a workflow
Workflows are a way to orchestrate agents. They are durable, distributed, and run on the machine that they are registered on.
Create a file called workflow.ts
:
Run the workflow
Workflows can be triggered from anywhere, including from other workflows.
That’s it! You’ve created your first Inferable workflow. This simple example demonstrates the basic concepts of:
- Creating a cluster
- Registering tools
- Defining a workflow
- Creating an agent
- Running the workflow
For a more complex example involving customer support and database interactions, check out our From Scratch guide.
Was this page helpful?