Skip to main content
You need Node.js 22.18+ within v22 or 24.11+ within v24 and an OpenAI API key. This example targets Agentium 4.0.0. Follow installation to add matching packages and optional integrations.

Set up a project

Choose a model available to your account. Keep API keys in your server environment. For other providers, see the integration directory.

Create the Agent

Save this as support.ts:
support.ts

Run it

You should see a request for your order ID. The wording varies. This Agent has no order database yet; the next step is to give it a lookup tool. If the request fails, check the API key, model access, package build, and terminal status. The troubleshooting guide explains how to isolate the failing boundary.

Add your first capability

Look up an order

Continue with a validated tool and a verifiable result.

Understand the execution

See how model calls and tool results form a run.