It took several iterations to reach satisfying results with these assistants. Initially, we structured data as CSV, but this led to inconsistencies. Fields weren’t always aligned properly, and validation results sometimes contradicted rejection reasons. We transitioned to JSON for greater structure and clarity (at the cost of more tokens), and later adopted OpenAI’s
Structured Outputs feature, which enforces strict schema validation. We also integrated
Zod to catch edge cases, improving consistency and eliminating unexpected AI behaviors.