Integrate

SDK

A TypeScript SDK for integrating Watt features into your software application — the agentic loop, run for you.

The Watt SDK is a TypeScript library for integrating Watt features into a software application. It runs the agentic loop for you and exposes plain programmatic methods. The Watt MCP server is bundled inside it, so you just send prompts and get responses.

The SDK is pre-production. If you plan to use it, contact us through the plugin first so we can support you through the integration. The surface may change ahead of a stable release.

When to use it

Use the SDK when you're adding an AI-native Watt feature to a larger software application (like semantic audience generation). You use Watt as a standard request/response library, and it runs the agentic loop to perform the signal engineering.

The other two ways to work with Watt:

Quickstart

The SDK is TypeScript-only.

Configure the client

Create a client with your Watt API key, the MCP endpoint, and an Anthropic API key. Read them from the environment — don't hardcode secrets.

Send a prompt

Describe what you want in plain language. The SDK runs the agent and returns the result.

What it can do

The client is built for persistent integrations, not just one-off prompts:

  • Prompt or stream — send a prompt and get a result back, or stream it as it's generated.
  • Structured output — get typed, schema-constrained results instead of free text; the agent still runs its full tool loop.
  • Custom tools — inject your own tools alongside Watt's so the agent can act in your systems too.

On this page