Skip to content
All posts

By Mateusz Wojczal

Generative UI in ULAMS: from a source document to a standards-compliant course

How ULAMS uses declarative generative UI: the model composes a validated document from approved components, the author approves, and every block cites its source.

  • Generative UI
  • Course generation
Two minutes: how a source document and a design system become a course. English narration; the Polish version of this post has a Polish-narrated clip.

Last time I wrote that I want to explore generative UI on a live product. Here is the first concrete result: two minutes of film about how a document becomes a course.

Generative UI comes in three levels: controlled, declarative and open-ended. ULAMS uses the first two. A sandbox for code written by the model is planned, not built.

The model does not write the page's code. It composes a JSON document out of approved components and themes (the design system has 53 components). A component it does not know turns into plain, safe text. Then checks look at the citations, at whether quiz answers are backed by the source, and at the heading structure.

The whole run:

  • the source (PDF, Markdown or DOCX)
  • an interview of 12 questions
  • an outline the author approves
  • components and checks
  • publication

Two real courses came out of this process, no mock-ups:

  • microdosing, from a Scientific Reports article (2021)
  • stablecoins, from a PWG report (November 2021)

Each has 2 modules, 3 lessons, 9 questions, 100% of the content cited, and about 30 minutes of learning. AI cost: $0.49 and $0.52. The stablecoin course has 19 blocks that cite 14 passages of the source. The microdosing run raised 3 heading warnings, which the author acknowledged.

AI proposes, the author approves. That is why brand, accessibility and standards (H5P, GIFT) come from the construction instead of being added at the end.

Both courses, with a screenshot of every step, are on the course generation page. ULAMS is open source (MIT) and you can run it yourself.

The steps, in screenshots

These are the screens of the microdosing course. The stablecoin course went through the same steps.

The interview: the audience question
The interview: twelve short questions about audience, level, duration, tone, assessments and theme.
The proposed outline
The outline the author approves before a single lesson is written.
Generation in progress
Generation: the model composes the course out of the approved components.
The checks before publishing
The checks: citations, quiz answers backed by the source, heading structure.
The published course page
The course page the learner sees.
A lesson with citations
A lesson. Every block points at the passage it came from.

Related