Prompt engineering & agent instructions

Structured Outputs and JSON Schema for Agent Pipelines

Free text breaks integrations. Learn to make agents deliver validated, versioned data that downstream systems can process without surprises.

Format
Training
Duration
1 day
Mode
Live online or on-site
Group size
6–12 participants
Level
Intermediate
  • Workshops & trainings since 2014
  • Taught by AI Code Engineers
  • German or English

Structured outputs training at a glance

As soon as an agent's result flows into an ERP, CRM or workflow system, free text becomes a liability: a missing field, an invented category or a reformatted amount breaks the integration or, worse, slips through. After this training your engineers can make agents deliver data your systems can trust. You design JSON Schemas that carry business meaning, use the structured output features of current model APIs correctly, validate results with Pydantic or Zod, handle refusals, unknown values and partial answers explicitly, and build bounded repair loops. Versioned output contracts and tests make sure a prompt or model change never silently breaks a downstream system.

Who the structured outputs training is for

Engineers and prompt engineers whose agents feed ERP, CRM or workflow systems and who need machine-readable results instead of free text that has to be parsed.

What you'll walk away with

After the structured outputs training, you can:

  • Design JSON Schemas that encode business rules and meaning
  • Use provider structured output features correctly
  • Validate and repair outputs in Python or TypeScript
  • Handle refusals, unknown values and partial results explicitly
  • Version output contracts and test them like APIs

Use cases for the structured outputs training

  1. An invoice extraction agent delivers amounts as text with varying separators. A schema with typed fields and semantic checks rejects implausible totals before they reach the ERP.
  2. A triage agent invents a category that the ticket system does not know. An enumeration in the schema and a validation step make that impossible.
  3. A model upgrade changes how dates are returned. Contract tests on the versioned schema catch the change before the release, not after the first failed import.

Run it with your team

Pick dates in the request form. We reply within one business day with a confirmed date and an agenda proposal.

Request dates

What the structured outputs training covers

  1. Why structure matters

    Failure cases from free-text parsing and what structured outputs guarantee and what they do not.

  2. Schema design

    Types, enums, required fields, descriptions and modelling uncertainty with explicit fields.

  3. Provider features

    Using structured output and tool-call modes in current model APIs, and their limitations.

  4. Validation and repair

    Pydantic and Zod validation, semantic checks and bounded repair attempts.

  5. Contracts and versioning

    Versioned schemas, compatibility rules and regression tests for downstream systems.

Prerequisites

  • Programming experience in Python or TypeScript
  • Basic experience calling an LLM API

Materials you keep

  • Schema design guidelines for agent outputs
  • Validation and repair code templates
  • Contract test examples for downstream integrations

Related offers: AI agent development

Request this course

Pick one or more dates that suit you. We confirm within one business day and send an agenda tailored to your team. Non-binding.

Proposed dates (about two weeks from now, times in CET/CEST)

Non-bindingReply within one business day

Request dates

How it works

  1. Request

    Send the form with your preferred dates or a period that suits you.

  2. Short call

    We talk briefly about your goals, your team's prior knowledge and your systems.

  3. Tailored agenda

    You receive an agenda tailored to your team and a confirmed date.

  4. Workshop and materials

    We run the session live online or on-site, and you keep the materials and templates.

Why train with us

Experience

We have offered workshops and trainings since 2014. The topics have moved with the technology; today our focus is agentic coding, AI coding tools and prompt engineering for responsible AI agents.

Hands-on, not slides

You work on realistic examples from your domain, or on your own code, prompts and processes if your security rules allow it.

Your format, your language

Live online, on-site at your location or hybrid, in German or English.

Certified through jocapps GmbH

kalAIDoCreate is a venture of jocapps GmbH, which is ISO 27001 and ISO 9001 certified.

Questions about the structured outputs training

If the API guarantees valid JSON, why validate?

Valid syntax is not valid business data. Amounts can be wrong, dates implausible and categories mismatched. Semantic validation catches what syntax guarantees cannot.

Which libraries do you use?

Pydantic for Python and Zod for TypeScript, because both are widely used and map well to JSON Schema. Other validators work the same way.

Is this useful for document extraction?

Very. Extracting fields from invoices, forms or contracts is one of the main exercises, including how to represent missing or uncertain values.

Can the course run online or on-site, and in which language?

Both. We deliver it live online or on-site at your location, in German or English. For distributed teams a hybrid setup is possible as well.

Can you tailor the content to our organisation?

Yes. Every course starts with a short call about goals and prior knowledge. We adapt examples, exercises and depth to your processes, systems, approved tools and security rules, and we work on your real use cases if your data protection rules allow it.

Free intro call

Tell us which task an AI agent should take responsibility for. We show how our platform, AI Code Engineers and operations plug into your stack.

  • 30 minutes, no obligation
  • Honest feasibility check
  • Concrete next step
Rather talk now? 24/7 call support in English and German+49 761 519 751 50