The Scenario
A finance ops team receives vendor invoices in the body of emails (often messy, unstructured text). They want to use an LLM to read the email and extract the Vendor Name, Total Amount, and Date into a strict JSON format so it can be sent to their database via API.
The Brief
Write a prompt that takes an unstructured email and guarantees the output is *only* a valid JSON object, with no conversational filler like "Here is your JSON:".
Deliverables
- The extraction prompt
- The JSON schema/structure you are instructing the AI to use
- A technique used in the prompt to prevent "chatty" preamble (e.g., forcing it to start with `{`)
Submission Guidance
If an LLM outputs "Sure, here is the JSON: { ... }", it breaks the API. Your prompt must use aggressive constraints to forbid all text outside the JSON block. Providing a TypeScript interface or exact JSON template in the prompt helps immensely.
Submit Your Work
Your submission is graded against the rubric on the right. If you pass, you get a public Badge URL you can share on LinkedIn. There is no draft save, so work offline first and paste your finished response here.