
What happened
The guide shows a support-ticket example where a free-text reply like "this is about returns" is replaced by JSON with a category field and reason field, constrained by a JSON Schema using type, properties, enum, required, and additionalProperties: false.
Why it matters
A reply can pass every schema rule and still be wrong — a "return" category attached to a missing-package inquiry — so the guide advises validating on the receiving side and adding human review for uncertain or high-impact cases.
Summaries like this, every morning.
By signing up you agree to the Terms of Service and Privacy Policy.
The guide starts from a practical annoyance: if an AI answers a classification request in free text, the program has to interpret phrasing that shifts every time. Fixing the reply to a JSON object with named fields turns that into a lookup — read the field, take the value — but JSON alone is not enough, since a field can be missing or hold a number where a category name belongs. JSON Schema is introduced as the receiving side's contract for what counts as acceptable, and the worked example pins down allowed values with enum, lists both fields in required, and blocks undefined fields with additionalProperties: false. Two easy mistakes: writing a field under properties does not make it mandatory, and extra fields are only rejected if you say so explicitly.
The more important point is the separation of shape from meaning. A reply matching every rule can still carry the wrong category, so the guide lays out a staged path: can it be read as JSON, does it match the schema, is the basis for the classification sound or does a person need to check, and only then does routing happen. It also warns that AI services differ in how much of JSON Schema they accept, and that specifying output on the model side is a different job from validating in the application.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
altspark Inc., a Pittsburgh-based startup, launched a hosted platform that connects apps, databases and docume…
ASUS announced the XA P8N-E2X at NVIDIA GTC Washington, D.C

Ruining He and co-authors at Google Research proposed RealFormer, which adds residual connections to attention…

Ben's Bites compares today's AI adoption to learning to Google in 1998 — it took about ten years for search ha…

In McKinsey's August 2026 survey, 40% of respondents at organizations with more than $1 billion in annual reve…

Cisco's Outshift released open-source tools ACCORD, CONCORD, SCOPE, and MAS-Lab
