Extract structured data fields from messy emails or PDF text dumps.
Legacy systems output unstructured text logs or emails that need to be parsed into a database.
Use a strict JSON-mode prompt to extract specific fields (Date, Amount, Vendor, ID) and return a valid JSON object for your API to consume.
When creating the route, ensure you select a model that supports JSON mode (like gpt-3.5-turbo-1106 or later) and instruct it to output 'valid JSON only'.

Provide a clear example of the desired JSON structure in the user prompt to guide the model.
