Prompt Engineering · Workshop · Actuarial, finance & OR

Extracting Financial Metrics with Structured Outputs: A Workshop on JSON Schema and Validation Rules

Turn figures from annual reports, quarterly statements and claims reports into reliable records, with schemas that enforce units and validation rules that catch arithmetic errors.

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

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

A language model reads an annual report and names revenue, equity and net income, but whether a figure is in thousands or millions, which sign applies and which table it came from often stays unclear. Capturing financial metrics with structured outputs settles these questions in advance: a JSON Schema requires value, unit, scale, period, source location and a status for missing information. In this workshop you design such schemas and prompts, extract figures from sample reports and check the results with sum checks and balance sheet identities. Ratios and other derived figures are then calculated by code, not by the model.

Who the financial metrics workshop is for

Analysts, credit and risk teams, controlling, research and developers in business units who capture figures from documents with language models or design tools to do so.

What you'll walk away with

  • Design a JSON Schema for financial metrics with value, unit, scale, period, source location and status
  • Write prompts that distinguish cleanly between a missing value, zero and not applicable
  • Check extractions automatically with sum checks, balance sheet identities and comparisons with the prior period
  • Calculate derived ratios consistently in code instead of letting the model estimate them
  • Route cases with uncertainty or contradictions to human review

Typical scenarios

  1. A credit team captures figures from the financial statements of mid-sized corporate clients; a validation rule flags every balance sheet where total assets and total equity and liabilities do not match.
  2. A research team records quarterly statements from several insurers consistently, with the schema enforcing the scale and preventing a mix of figures in thousands and millions.
  3. A controlling team extracts figures from subsidiary reports and passes only the flagged deviations from the prior period to manual review.

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 financial metrics workshop covers

  1. Why free text is not enough for figuresTypical errors with units, signs, periods and table assignment, shown on real report extracts.
  2. The schema as a contractFields, data types, required values, enumerations for units and a status for missing or unclear values.
  3. Prompts for extractionInstructions on source locations, scale and footnotes, tested on several report formats.
  4. Validation rules after extractionSum checks, balance sheet identities, prior-period comparison and calculating derived ratios in code.
  5. Human in the loopCriteria for passing cases to experts, logging and a small test set for future changes.

Before the financial metrics workshop: prerequisites

  • Experience with financial reports or the metrics used in your field
  • A basic understanding of JSON; programming skills help but are not essential
  • Access to a language model with structured outputs that your organisation has approved

Materials you keep

  • A sample schema for financial metrics with units, scale and source locations
  • Prompt templates for extraction and flagging uncertainty
  • A catalogue of validation rules for balance sheet, income statement and ratio data

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 financial metrics workshop

Does this work with scanned reports?

In principle yes, if the model handles images or text recognition runs first. Errors become more likely, though, especially with tables spread across several pages. That makes validation rules and targeted human review all the more important.

Do we need an API, or is a chat assistant enough?

A chat assistant is enough for first experiments. Extraction becomes reliable and repeatable with an API that supports schema-based structured outputs. We show the principles for both routes so that you can move from one to the other later without starting over.

How does this relate to the JSON Schema workshop for maths content?

Both build on structured outputs. This workshop focuses on financial reports, units, scale and balance sheet logic, the other on exercises, solutions and formulas in learning material. If you look after both areas, the schemas can be compared side by side.

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.