T1 starter · every office job: the first example with
infer.schema:. The model doesn’t get to answer in prose. It returns
the JSON shape you declared, or the engine rejects it.
The job
The meeting ended an hour ago and nobody remembers who owns what. The transcript is sitting in a file. This workflow extracts every action item as{owner, task, due}: typed, validated, importable by whatever
tracker you use.
The shape
The file
meeting-actions.nika.yaml
How it works
1
A required, typed input
transcript_path is declared with type: string · required: true:
the engine validates inputs before any task runs, and the workflow
becomes callable with a real contract.2
The schema IS the contract
infer.schema: is standard JSON Schema. The model must return a
matching object. On violation the engine rejects (and may retry).
Downstream tasks index into it directly: ${{ tasks.extract.output.actions }}.3
Two consumers, no extra ceremony
save writes the JSON, trace logs a human-readable line. Both
depend on extract, both run in parallel.Constructs you just used
Make it yours
- Add
dueto therequired:list if your team always sets deadlines. - Chain a
nika:notifytask that posts each owner their items. - Swap the transcript file for a
nika:fetchof your meeting tool’s export API. The schema doesn’t change.
Next · Price watch
The next starter has zero model calls: pure tools, bindings and one
CEL comparison.