spb/note-spboucher-ai
Public
1{2 "id": "document_analysis",3 "category": "Document analysis",4 "grader": "json",5 "max_tokens": 4000,6 "schema": {7 "name": "invoice",8 "schema": {9 "type": "object",10 "properties": {11 "invoice_number": {12 "type": "string"13 },14 "due_date": {15 "type": "string"16 },17 "total_due": {18 "type": "number"19 },20 "purchase_order": {21 "type": "string"22 },23 "line_item_count": {24 "type": "integer"25 },26 "late_fee_percent_per_month": {27 "type": "number"28 },29 "serial_numbers": {30 "type": "array",31 "items": {32 "type": "string"33 }34 }35 },36 "required": [37 "invoice_number",38 "due_date",39 "total_due",40 "purchase_order",41 "line_item_count",42 "late_fee_percent_per_month",43 "serial_numbers"44 ],45 "additionalProperties": false46 }47 },48 "prompt": "Extract the requested fields from the invoice below as JSON (dates ISO YYYY-MM-DD, amounts as plain numbers).\n\n<document>\nINVOICE\nInvoice number: INV-2026-04471\nIssued by: Laurentide Systèmes Inc., 1200 boul. de la Carrière, Gatineau (Québec) J8Y 6W1\nBilled to: Université du Québec en Outaouais, Département des sciences administratives\nIssue date: 2026-09-14\nDue date: 2026-10-14\nPurchase order: PO-88213-UQO\n\nLine items\n1. Mac Studio M4 Max 16-core / 64 GB / 1 TB — quantity 2 — unit price 4 299,00 $ — 8 598,00 $\n2. Thunderbolt 5 cable 1 m — quantity 4 — unit price 89,00 $ — 356,00 $\n3. On-site installation and network configuration (6 h at 145,00 $/h) — 870,00 $\n4. Extended warranty 3 years — quantity 2 — unit price 349,00 $ — 698,00 $\n\nSubtotal: 10 522,00 $\nGST (5 %): 526,10 $\nQST (9,975 %): 1 049,57 $\nTotal due: 12 097,67 $\n\nTerms: Net 30 days. A late fee of 1,5 % per month applies after the due date. Payment by wire transfer to account ending in 4471 or by cheque payable to Laurentide Systèmes Inc.\nContact: facturation@laurentide-systemes.example (Marie-Ève Tremblay, ext. 212)\nNotes: Equipment delivered 2026-09-12 to room B-2140, Pavillon Lucien-Brault. Serial numbers: JX0PHFQHF1, LY5Q6FD2PL.\n</document>",49 "expect_json": {50 "invoice_number": "INV-2026-04471",51 "due_date": "2026-10-14",52 "total_due": 12097.67,53 "purchase_order": "PO-88213-UQO",54 "line_item_count": 4,55 "late_fee_percent_per_month": 1.5,56 "serial_numbers": [57 "JX0PHFQHF1",58 "LY5Q6FD2PL"59 ]60 }61}