What it does#
| Part | What it does |
|---|---|
| State | Type or paste the input, as Text or JSON. A JSON state is an object or an array; switch to Text to send a plain string |
| Images | Drop, paste or pick up to 16 images. They are sent in images with the state, and each tile shows its id and its number (Picture 1, Picture 2, ...), the two ways a question can refer to it; the id is the one that stays right when images are reordered |
| Questions | Build them with the visual builder (Choice, Score, Truth, Number, Point and Box rows), or switch to JSON and paste a whole questions object. JSON mode checks what you type the way the API does and names each problem by its path. A Point or Box row picks the image to look in (required with two or more images) and the units, pixels or normalized |
| Model | Pick DecisionNode or DecisionNode Flash; only model changes |
| Run | Press Run, or Cmd+Enter (Ctrl+Enter on Windows and Linux) from anywhere on the page |
| Answers | Each answer as a visual: distribution bars for a choice, the level scale for a score, a gauge for a truth, bars over the grid for a number, the point or the box drawn on its image with present and confidence |
| JSON | The exact response body and headers |
| Code | The same request as curl, Python, TypeScript or its JSON body, ready to copy into your code; the Code button beside Run opens it |
| Compare | On an example that has one, the same questions asked plainly (no state or a loose sentence, no criteria) beside the example's request, both run together: Compare with a plain question, under Run |
| Examples | Presets that load a complete request: two first lessons on stating your rule (is a hot dog a sandwich?), a lesson per question type, builds you could ship, and point and box builds, and knowledge builds that decide against sample documents the playground adds to your workspace (Knowledge) |
| Tour | A short guided tour of the four parts |
Bring your own request#
To try a request your code already sends, paste its state into the state editor (JSON mode for an object or an array) and its questions object into the questions editor in JSON mode, then run it with either model selected. The Code tab gives it back as curl, Python or TypeScript. Playground runs are your workspace's data, under its settings, like any API call (data settings).
Open an example by link#
/playground?example=<id> opens the playground with an example loaded, ready to run, so a link in your own docs or chat can start someone on the right request. The ids:
| Id | Kind | What it loads |
|---|---|---|
hot-dog-bun | Lesson | Is a hot dog a sandwich? A split bun counts |
hot-dog-slices | Lesson | Is a hot dog a sandwich? Only two slices count |
lesson-choice | Lesson | Choice: name the commit |
lesson-score | Lesson | Score: how severe is this bug report |
lesson-truth | Lesson | Truth: was the customer charged twice |
lesson-number | Lesson | Number: count the cars in the frame |
traffic-junction | Build | Junction camera that times its own signals |
people-count | Build | Concourse camera that opens the next gate |
storeroom-incident | Build | Night camera that raises its own alarm |
sorter-lane | Build | Sorter that sends every package to its lane |
support-triage | Build | Support inbox that routes itself |
content-moderation | Build | Moderation that acts on every comment |
agent-guardrails | Build | Guardrail for agent tool calls |
doc-classify | Build | Classify a document from its pages |
receipt-check | Build | Receipt and invoice checker |
listing-photo | Build | Listing photo match |
lead-scoring | Build | Lead scoring for new signups |
overdue-invoices | Build | Statement reader that chases late invoices |
age-gate | Build | Age gate on a sign-up selfie |
seller-check | Build | Marketplace seller check |
tutor-on-camera | Build | Tutoring session: both on camera |
member-check-in | Build | Climbing hall check-in by face |
public-figure | Build | Name the public figure in a photo |
invoice-match | Build | Supplier invoice against its order |
license-plate-camera | Build | License plate camera |
conveyor-pick | Point and box | Robot arm that picks the right package |
panel-defect | Point and box | Quality check that marks the defect |
fence-person | Point and box | Perimeter camera that finds the climber |
landing-marker | Point and box | Drone that finds its landing pad |
belt-pick-damage | Point and box | Pick point and damage box on one belt frame |
knowledge-claim | Knowledge | Water damage claim against the claims policy |
knowledge-rover | Knowledge | Delivery rover against its operating manual |
knowledge-refund | Knowledge | Refund request against the refund policy |
knowledge-moderation | Knowledge | Reported post against the trust and safety policy |
Each example's full request and answer, with the code that acts on it, is in Examples. The Examples gallery opens the same ids.