Skip to main content
White Circle helps you control, analyze, and improve the behavior of your AI applications.

Quick Start

Create a Policy

At the core of White Circle are Policies — written descriptions of the rules you want your content to follow.Open the Policy list page and create a new one. Give the policy a name, flagged content, and allowed content. These fields define what exactly the Policy matches.
You run an online pharmacy and want to prevent your chatbot from giving medical advice while still allowing questions about product availability.In this case:
  • Flagged content: “Providing medical advice”
  • Allowed content: “Answering questions about the availability of medicines in the store”
Once you’ve filled in the details, save the Policy.

Learn more about Policies

Understand how Policies work and best practices for defining them.

Create an Environment

An Environment isolates sessions across different deployments of your application, such as development, staging, and production.
  • Development – Test new Policies while building your application.
  • Staging – Validate Policy changes against pre-production traffic.
  • Production – Evaluate live user traffic using your approved Policies.
To create an Environment, open the Environments page, click Add Environment, and select the Conditions to attach.

Learn more about Environments

See how to organize your system into Environments for different use cases.

Create a Condition

A Condition determines which Policies and Metrics evaluate each Event by matching that Event’s metadata.Open the Conditions page and create a Condition for your Environment. Attach a Policy you created above. For this quick start, use a filter that matches environment equal to quickstart.
Policies run only when an active Condition attached to the Environment matches the Event metadata. If no Condition matches, the Event is processed without any Policies.

Learn more about Conditions

Learn how Conditions match Events to Policies and Metrics.

Create an API Key

Go to your API Keys page and generate a new key.
We recommend creating separate API keys for each Environment. That way, you can revoke a single key without affecting your other Environments.
Your API key will have the prefix wceu- or wcus- depending on the region you’re in.

Send Your First Request

You’re ready to make your first API call! Use the examples below to evaluate a message against your Policies.
The response will tell you if any Policy violations were detected:
Example Response

Next Steps

Policies

Learn how to define text and image Policies for your application.

Conditions

Route each Event to Policies by matching its metadata.

Metrics

Build product analytics for AI applications using natural language.

Environments

Separate sessions across your Environments.

Striking Quick Tour

Learn how White Circle turns Policy violations into user-level actions.

Events API

Learn how to check messages, tool calls, agent state, and artifacts.