← Back to document 500

AI review — page 2

claude-opus-4-8 · prompt v7 · 2026-09-03T09:32:22+00:00 · applied: yes · changed: yes

Screenshot sent to the model (reading-order tags burned on)

Annotated page 2

Instructions (system prompt)

The screenshot has annotations burned onto it that are NOT part of the document:
- a small red numbered tag at the top-left corner of each item, showing that item's position in the OCR-determined reading order (the same order the items appear in the json data);
- a red-and-white dotted outline around each item, showing the area the OCR detected for that content block.
Use the tags and outlines to see the detected reading order and item boundaries directly on the page, and judge that sequence against how a human would naturally read it. Ignore the annotations when checking text fidelity — they overlay the content, they are not content.

For the given screenshot of a PDF's page and the attached json data, I want you to perform the following tasks in order...

Review the reading order set out in the json data and compare to what a natural reading order for that of a human would be by looking at the screenshot. Decide on any changes and re-arrange the items for the most logical reading order.
Look at all text for each item and correct any extraction errors like missing words, spelling mistakes etc.
Look at each item in the JSON and ensure that the OCR process has identified the item as the correct type: text, list item etc.
Look for any text that duplicates: if two items next to each other contain the exact same text but the text only appears once on the screenshot, one of them is an extraction error — keep the item whose box matches where the text is visible and flag the other for removal.
Make amendments as you proceed through the items and list of instructions.
Reading Order Advice: If there is columns with headings and text, I wouldnt expect the reading order to jump from one heading straight to another if there is text associated with that heading.

Return format: Give me the json data back only, with the amendments you make.

Mechanical notes (so your answer can be applied automatically):
- Each item has an `id` — keep every item and its `id` exactly as given; never invent, drop or duplicate ids. Re-arranging means changing the position of items (and their nesting) in the arrays.
- Never move text (or a type) from one item to another: each item's coordinates travel with its id, so to change reading order you must move the whole item object, and text amendments must be in-place corrections of that item's own text.
- To flag a duplicate item, keep it in the array and add `"remove": "duplicate"` to it — never just delete it (deleted items are restored automatically).
- ids are opaque labels, not sequence numbers: never renumber them. After a removal or re-arrangement, every remaining item keeps the exact id it came with, even if the ids no longer look sequential.
- Text may contain `[pN.M…]` placeholders marking where an inline formula belongs — treat them as part of the text and leave them exactly where they are.
- `box` is [left, top, right, bottom] as percentages of the page from the top-left corner; return it unchanged.
- Respond with raw JSON only: no code fences, no commentary, same shape as the input (`{"items": [...]}`).

User message (json data sent)

Page 2 json data:

{"items":[{"id":"p2.1","type":"text","box":[9,9,92,14],"text":"We acknowledge that if this Instruction for Collection has not been received by you within the timeframe specified in your Credit Protection Policy (60 days past the due date of the oldest invoice or 120 days past the oldest invoice date, whichever is the soonest) then this may delay or invalidate any Credit Protection Payment due."},{"id":"p2.2","type":"text","box":[6,15,91,18],"text":"We acknowledge that if this Instruction for Collection has any of the following documents missing or incomplete, then any Credit Protection payment due may be delayed or invalidated."},{"id":"p2.3","type":"heading","box":[5,21,38,22],"text":"All of the following documents are attached"},{"id":"p2.4","type":"list","box":[5,24,73,41],"text":"","children":[{"id":"p2.4.1","type":"list_item","box":[5,24,22,25],"text":"Customer Statement"},{"id":"p2.4.2","type":"list_item","box":[5,26,40,27],"text":"- Copy Orders and any Sales Acknowledgements"},{"id":"p2.4.3","type":"list_item","box":[5,28,58,29],"text":"- Copy Invoices and Credit Notes, if any, covering the full outstanding debt"},{"id":"p2.4.4","type":"list_item","box":[5,29,58,31],"text":"Signed Delivery Notes/Timesheets or other Proof of Contract Completion"},{"id":"p2.4.5","type":"list_item","box":[5,31,44,33],"text":"- Copy of Final Demand Letter and Assignment Notice"},{"id":"p2.4.6","type":"list_item","box":[5,33,25,35],"text":"• Collections Activity Notes"},{"id":"p2.4.7","type":"list_item","box":[5,35,73,37],"text":"Copies of any relevant correspondence with the customer and contractual terms and conditions"},{"id":"p2.4.8","type":"list_item","box":[5,37,23,39],"text":"Details of any disputes"},{"id":"p2.4.9","type":"list_item","box":[5,40,60,41],"text":"We also confirm that an account has been opened for the above customer online."}]},{"id":"p2.5","type":"heading","box":[5,42,15,44],"text":"Please select:"},{"id":"p2.6","type":"text","box":[6,44,90,47],"text":"We can confirm that we have Retention of Title rights (ROT) under the contract of sale to recover goods delivered to the customer which are unsold and not paid for."},{"id":"p2.7","type":"text","box":[5,48,92,51],"text":"We can confirm that we do not have Retention of Title rights (ROT) under the contract of sale to recover goods delivered to the customer which are unsold and not paid for."},{"id":"p2.8","type":"heading","box":[5,52,20,54],"text":"We also confirm that:"},{"id":"p2.9","type":"list","box":[5,55,87,63],"text":"","children":[{"id":"p2.9.1","type":"list_item","box":[5,55,87,58],"text":"If, within 5 working days, we have not received a confirmation message electronically acknowledging receipt of this instruction, we will contact our appointed client controller."},{"id":"p2.9.2","type":"list_item","box":[5,58,85,61],"text":"We will not send out any further statements and should we receive any subsequent payments, returned goods or correspondence from the customer, we will refer it to you immediately."},{"id":"p2.9.3","type":"list_item","box":[5,62,82,63],"text":"We are aware that if the account is passed to your Solicitors, we can view progress of the case electronically."}]},{"id":"p2.10","type":"heading","box":[5,67,13,68],"text":"Signature:"},{"id":"p2.11","type":"list","box":[5,72,36,73],"text":"","children":[{"id":"p2.11.1","type":"list_item","box":[6,72,36,73],"text":"Date:"},{"id":"p2.11.2","type":"list_item","box":[5,72,10,73],"text":"D D M M Y Y Y Y"}]},{"id":"p2.12","type":"text","box":[14,71,37,74],"text":"<div style=\"text-align: center;\"><img src=\"imgs/img_in_image_box_25_27_581_98.jpg\" alt=\"Image\" width=\"91%\" /></div>"},{"id":"p2.13","type":"footer","box":[5,89,94,91],"text":"Issued by HSBC Invoice Finance (UK) Ltd. Registered in England and Wales (company number: 759657). Registered Office: 1 Centenary Square, Birmingham, B1 1HQ."},{"id":"p2.14","type":"footer","box":[5,91,93,94],"text":"HSBC Invoice Finance (UK) Ltd is a member of UK Finance and abides by the Invoice Finance and Asset Based Lending (IFABL) Standards Framework, the Invoice Finance and Asset Based Lending Code (2018 Edition) and the independent Complaints Process, each of which can be accessed and viewed at the UK Finance website: ukfinance.org.uk.","children":[{"id":"p2.14.1","type":"link","box":[6,93,15,94],"text":"ukfinance.org.uk. Finance (UK) Ltd is a member of UK Finance and abides by the Invoice Finance and Asset Based Lending (IF..."}]},{"id":"p2.15","type":"footer","box":[5,95,39,96],"text":"CMBLIT165-02 10/22 ©HSBC Group 2022. All Rights Reserved."}]}

Model response

{"items":[{"id":"p2.1","type":"text","box":[9,9,92,14],"text":"We acknowledge that if this Instruction for Collection has not been received by you within the timeframe specified in your Credit Protection Policy (60 days past the due date of the oldest invoice or 120 days past the oldest invoice date, whichever is the soonest) then this may delay or invalidate any Credit Protection Payment due."},{"id":"p2.2","type":"text","box":[6,15,91,18],"text":"We acknowledge that if this Instruction for Collection has any of the following documents missing or incomplete, then any Credit Protection payment due may be delayed or invalidated."},{"id":"p2.3","type":"heading","box":[5,21,38,22],"text":"All of the following documents are attached"},{"id":"p2.4","type":"list","box":[5,24,73,41],"text":"","children":[{"id":"p2.4.1","type":"list_item","box":[5,24,22,25],"text":"Customer Statement"},{"id":"p2.4.2","type":"list_item","box":[5,26,40,27],"text":"Copy Orders and any Sales Acknowledgements"},{"id":"p2.4.3","type":"list_item","box":[5,28,58,29],"text":"Copy Invoices and Credit Notes, if any, covering the full outstanding debt"},{"id":"p2.4.4","type":"list_item","box":[5,29,58,31],"text":"Signed Delivery Notes/Timesheets or other Proof of Contract Completion"},{"id":"p2.4.5","type":"list_item","box":[5,31,44,33],"text":"Copy of Final Demand Letter and Assignment Notice"},{"id":"p2.4.6","type":"list_item","box":[5,33,25,35],"text":"Collections Activity Notes"},{"id":"p2.4.7","type":"list_item","box":[5,35,73,37],"text":"Copies of any relevant correspondence with the customer and contractual terms and conditions"},{"id":"p2.4.8","type":"list_item","box":[5,37,23,39],"text":"Details of any disputes"},{"id":"p2.4.9","type":"list_item","box":[5,40,60,41],"text":"We also confirm that an account has been opened for the above customer online."}]},{"id":"p2.5","type":"heading","box":[5,42,15,44],"text":"Please select:"},{"id":"p2.6","type":"text","box":[6,44,90,47],"text":"We can confirm that we have Retention of Title rights (ROT) under the contract of sale to recover goods delivered to the customer which are unsold and not paid for."},{"id":"p2.7","type":"text","box":[5,48,92,51],"text":"We can confirm that we do not have Retention of Title rights (ROT) under the contract of sale to recover goods delivered to the customer which are unsold and not paid for."},{"id":"p2.8","type":"heading","box":[5,52,20,54],"text":"We also confirm that:"},{"id":"p2.9","type":"list","box":[5,55,87,63],"text":"","children":[{"id":"p2.9.1","type":"list_item","box":[5,55,87,58],"text":"If, within 5 working days, we have not received a confirmation message electronically acknowledging receipt of this instruction, we will contact our appointed client controller."},{"id":"p2.9.2","type":"list_item","box":[5,58,85,61],"text":"We will not send out any further statements and should we receive any subsequent payments, returned goods or correspondence from the customer, we will refer it to you immediately."},{"id":"p2.9.3","type":"list_item","box":[5,62,82,63],"text":"We are aware that if the account is passed to your Solicitors, we can view progress of the case electronically."}]},{"id":"p2.10","type":"heading","box":[5,67,13,68],"text":"Signature:"},{"id":"p2.12","type":"text","box":[14,71,37,74],"text":"<div style=\"text-align: center;\"><img src=\"imgs/img_in_image_box_25_27_581_98.jpg\" alt=\"Image\" width=\"91%\" /></div>"},{"id":"p2.11","type":"list","box":[5,72,36,73],"text":"","children":[{"id":"p2.11.1","type":"list_item","box":[6,72,36,73],"text":"Date:"},{"id":"p2.11.2","type":"list_item","box":[5,72,10,73],"text":"D D M M Y Y Y Y"}]},{"id":"p2.13","type":"footer","box":[5,89,94,91],"text":"Issued by HSBC Invoice Finance (UK) Ltd. Registered in England and Wales (company number: 759657). Registered Office: 1 Centenary Square, Birmingham, B1 1HQ."},{"id":"p2.14","type":"footer","box":[5,91,93,94],"text":"HSBC Invoice Finance (UK) Ltd is a member of UK Finance and abides by the Invoice Finance and Asset Based Lending (IFABL) Standards Framework, the Invoice Finance and Asset Based Lending Code (2018 Edition) and the independent Complaints Process, each of which can be accessed and viewed at the UK Finance website: ukfinance.org.uk.","children":[{"id":"p2.14.1","type":"link","box":[6,93,15,94],"text":"ukfinance.org.uk. Finance (UK) Ltd is a member of UK Finance and abides by the Invoice Finance and Asset Based Lending (IF..."}]},{"id":"p2.15","type":"footer","box":[5,95,39,96],"text":"CMBLIT165-02 10/22 ©HSBC Group 2022. All Rights Reserved."}]}