Skip to main content

Deploy an agent with the SDK

The ResponseCX agent runtime runs on StateSet Cloud — a deterministic workflow engine, an event-driven architecture, and current frontier models. Each agent is defined by its configuration: attributes, rules, examples, and functions. Deploying is submitting that configuration through the SDK. Both examples below are complete and runnable: TypeScript (as a Next.js edge route) and Python.
The examples create an agent in batch: attributes, rules, and examples in one submission. For what each part means, see Agents, Rules, and Examples. To create an agent piecewise instead, use the individual endpoints.

TypeScript deploy

Deploying an agent with the SDK is as simple as copying and pasting the code below into a file and running it.

Python deploy

Deploying an agent with the SDK is as simple as copying and pasting the code below into a file and running it.
Deploy with activated: false and activate only after settings and rules are configured — an agent that goes live before its allowed_intents are set will act on intents you never approved.