Skip to main content
This application starts a local HTTP API, accepts an Agent request, returns a response, and closes its Agent when the server drains. It is the final checkpoint of the support assistant tutorial.

Install

Use a supported Node version, then:

Start the application

Save as support-server.ts:
support-server.ts
In another terminal:
The response should contain a completed result whose text asks for an order ID. Stop the server with Ctrl+C to drain HTTP connections and close the Agent.

Add the next capability

Expose it to users

This example intentionally binds to loopback with local transport mode. Before exposing a service, configure authenticated hosting, caller-scoped state, request limits, and the operational lifecycle. A localhost demo is not an authenticated multi-user deployment.