Find the insights and best practices about our product.
Playground Overview

The Playground is where you test prompts against your guardrails and see how they are evaluated before any real traffic flows. You send a prompt, it runs through a profile the same way live traffic would, and you see the signals detected on it. It is the place to confirm that a profile behaves the way you expect, to check that detections like PII or toxicity fire on the inputs you would expect them to, and to debug a profile's behavior on specific prompts.

The Playground tests one prompt at a time. To test many prompts at once, use Cannon, which runs a whole collection through a profile in bulk.

Getting Started

The Playground landing page offers two ways in. Send Test Prompts takes you into the prompt input so you can run your own prompts. Browse All Events shows the Playground event history without sending anything new.

Send a Test Prompt

Before you can send a prompt, you select what to test it against. The filter drawer prompts you to choose a use case or a profile, which determines the guardrails the prompt runs through. Once you have made a selection, close the drawer to reveal the message input at the bottom of the page.

Type a prompt into the message input and press Enter or click the send button. The prompt runs through the selected guardrails, and the result appears in the event table above the input. You can keep sending prompts, and each one is added to the table.

Whether you get a response back depends on whether a model is connected. A profile in listen mode evaluates the prompt and shows the signals detected on the input, but does not return a response form the LLM. To get the model's response back along with the signals detected on it, the profile needs a model and must be in enforce mode.

Reviewing Results

Results populate an event table, one row per prompt you have sent. This is the same configurable event table used on the Monitoring and Session Events pages, with the same columns, filtering, and table settings. See the Monitoring Activity Overview for how to read and configure it.

Clicking an event opens the event detail panel, which shows the full detail for a single prompt: the prompt and response, the input and output context, and the signal results. This is the same panel described in the Monitoring Events Overview, with one addition specific to the Playground.

Debug Controls

The Playground event panel includes a Debug control in the toolbar, alongside the controls available elsewhere. Turning it on reveals a Signal Debug Controls row with a percentage field and a set of preset buttons that set the field to a fixed value.

Did this answer your question?