Prompt Engineering · Workshop · Prompt methods & quality

JSON Schema for Maths Content: A Workshop on Structured AI Outputs

Get exercises, solutions and hints out of the model as reliable data rather than prose, with schemas that represent formulas, units and tolerances cleanly and make every response checkable.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Workshop
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–12 participants
Level
Intermediate
Language
German or English

Tools: JSON Schema · OpenAI API · Anthropic API · Gemini API · Python · SymPy

Once a learning app or editorial system processes AI outputs further, polished prose is no longer enough: the answer has to sit in its own field, the method in numbered steps and the unit separate from the value. JSON Schema for maths content makes that structure binding. In the workshop you design schemas for exercises, solutions, hint levels and assessments, use the structured output modes of common model APIs and build validation that checks the maths as well. Broken formulas, missing fields and wrong results stop slipping unnoticed into your product.

Who the structured outputs workshop is for

Developers, content engineers and prompt owners at edtech companies, publishers and university projects who process AI outputs automatically. Basic knowledge of JSON and one programming language is assumed.

What you'll walk away with

  • Design schemas for exercises, solutions, hint levels and assessments with suitable types, required fields and enumerations
  • Model answer types such as numbers with tolerance, expressions, intervals, sets and quantities with units unambiguously
  • Encode LaTeX formulas correctly in JSON and avoid typical problems with backslashes and special characters
  • Request structured outputs through different providers' APIs and validate responses automatically
  • Add content checks that go beyond the schema, such as recomputing the answer with SymPy

Typical scenarios

  1. An exercise generator returns each item with answer, solution steps, difficulty and competence tag as JSON that imports into the exercise database without manual clean-up.
  2. An AI tutor returns hints at three levels in separate fields, so the app can show them one after another and evaluate each level on its own.
  3. A marking aid scores student answers with points, the detected error type and a reason; responses with missing fields are requested again automatically.

Does this fit your team?

Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.

Request dates

What the structured outputs workshop covers

  1. Why prose is not enoughTypical breaks between AI output and downstream processing: missing fields, mixed-up units, mangled formulas.
  2. Schema design for mathsExercise, answer, steps, answer types, units and tolerances as a schema, with required fields, enumerations and clear descriptions.
  3. Formulas and special charactersLaTeX and MathML inside JSON strings, escaping, character encoding and tests that catch broken formulas early.
  4. Requesting structured outputsSchema-bound outputs and tool calls with different providers, the limits of each mode and sensible retries.
  5. Validation beyond the schemaRecompute answers with SymPy, check that numbers fall within plausible ranges and log failures traceably.
  6. Maintaining and versioning schemasSchema changes, backward compatibility and tests, so that prompts and product can evolve together.

Before the structured outputs workshop: prerequisites

  • Basic knowledge of JSON and of Python or JavaScript
  • Access to at least one model API or a test environment of your product
  • Examples of content you currently generate as prose and will need in structured form

Materials you keep

  • Schemas for exercises, solutions, hints and assessments as a starting point
  • A validation script with schema checks and mathematical recomputation
  • A checklist for LaTeX in JSON and for robust structured outputs

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the structured outputs workshop

Does a schema ensure that the content is correct?

No. A schema secures the form: fields, types and allowed values. It does not check whether the answer is right or the hint makes sense pedagogically. That is why the workshop adds content checks and shows which cases a person should still look at.

Which models and providers are covered?

We show the approach with several common APIs and compare neutrally which schema features each of them supports. Because details change frequently, we point to the official documentation for specifics and build validation that works regardless of provider.

Is this worthwhile without an app of our own?

Yes, as soon as you move AI outputs into spreadsheets, databases, Moodle imports or typesetting software. Structured outputs then save manual copying and expose errors before they reach your material. For pure chat use with no further processing, the workshop is less suitable.

Is the workshop held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.