Instructor flow: from invoice text to a validated draft

Scroll or pinch to zoom, drag to move, double-click to zoom in 100% SVG PNG Back to the post
Instructor flow in five steps: invoice text with lines, tax and due date is combined with an Invoice schema in a request; the model replies with JSON for that schema; Pydantic validates it, for example that line totals add up; a valid reply becomes a typed object, while an invalid one is retried with the error message; and the object is saved as an ERP draft for human review.