Use these prompts to turn purchase orders, receipt records and invoices into decisions that someone can audit. They suit operations and procurement staff who need to stop unsupported invoices reaching approval, while giving suppliers a specific route to resolve genuine mismatches.
Start with the records, not the invoice total. A valid three-way match usually needs a purchase order, evidence that the goods or service were received, and an invoice that identifies the same commitment.
Key point
Match the evidence, not the narrative
An invoice can look correct and still lack an authorised PO, a receipt, or support for an extra charge.
Choose the right prompt
| If you have | Use | What you get |
|---|---|---|
| One invoice and its supporting records | Single invoice three-way match | A line-by-line decision and next owner |
| A payment-run export or several supplier invoices | Batch exception register | A prioritised list of exceptions |
| An approved tolerance policy | Tolerance policy review | Decisions tied to the written rule |
| A confirmed discrepancy to send outside the business | Supplier invoice query | A focused request for correction or evidence |
| Findings ready for an internal approver | Approval and rejection summary | A decision register and payment-run actions |
Do not use the supplier query before you have checked your own PO and receipt records. A query based on an internal data-entry error wastes time and makes the supplier less likely to treat later requests seriously.
Prepare the records
- Export or copy the PO lines, not just the PO header. Include the PO number, supplier, currency, line number, quantity, unit price, tax and any agreed delivery charge.
- Add the goods-received record. For physical goods, include receipt number, date, accepted quantity and rejected quantity. For services, use the approved acceptance record if that is your process.
- Copy the invoice fields exactly as billed. Keep invoice number, invoice date, descriptions, quantities, prices, tax, charges, total and payment terms.
- Remove information that is not needed for matching, such as bank details or personal contact data. Keep the reference numbers needed to trace the result back to the source documents.
- Paste the records into the selected prompt under the named headings. Do not merge values from different documents into one rewritten summary.
Watch out
Do not fill blanks from memory
A missing receipt number or line reference is an exception, not an invitation to guess which delivery it represents.
For a batch, retain the source row or line number in the pasted data. This makes the resulting exception ID useful when accounts payable must locate the original record. If your data contains different currencies, keep them separate. Comparing a PO value in one currency with an invoice value in another creates a false variance unless an approved conversion rule is supplied.
Read the decision fields
The prompts use four actions. Keep their meanings consistent across the payment run:
- Approve means the supplied evidence supports payment under the PO and your stated policy.
- Reject means the invoice should not be paid in its present form, for example where it has no valid PO or is a duplicate risk.
- Hold for evidence means a decision cannot yet be supported. It is not an approval delayed by habit.
- Supplier follow-up means the supplier needs to provide a correction, credit note or confirmation. Keep the invoice out of payment until your process allows it to proceed.
A tolerance policy only helps if it is pasted in full. If the policy is unclear about freight, tax, partial deliveries or service acceptance, the result should identify the gap rather than applying an imagined rule. Product behaviour and available features can vary, so check the relevant guidance in the xAI documentation overview when you need to confirm how you are providing records.
Check the exception list before using it
Check three things against the source documents. First, select a few rows from each decision group and verify the PO number, invoice number and line values character for character. Second, recalculate at least one stated variance from the source values. Third, inspect every row marked Approve and confirm that it has both an authorised PO and receipt or acceptance evidence.
Check
A usable result is traceable
Every decision should point to a PO, invoice and receipt reference, or explicitly say which reference is missing.
The output is wrong or incomplete if it does any of the following:
- Treats a supplier name match as proof that a specific PO line matches.
- Adds quantities across different items or receipt dates without saying so.
- Marks a missing receipt as approved because the invoice is below the PO total.
- Calculates a percentage variance where either comparison value is absent.
- States that a charge is within tolerance when no applicable policy rule was supplied.
- Recommends rejection without identifying the document field that conflicts.
If you find one of these faults, correct the source data or use the single-invoice prompt for the affected record. Do not edit the decision label alone. The evidence and the decision need to change together.
Keep the audit trail
Save the final register alongside the payment-run evidence. Record the reviewer, review date, PO number, invoice number, action and the document that closed each exception. For supplier queries, retain the sent email and the supplier response with the original invoice record.
Note
Separate review from approval
The prompt can organise evidence and draft a decision record. Your authorised approver remains responsible for the approval decision.
When the prompts do not work
Stop and split the work if the data is too mixed to identify reliable pairs of records. Run the batch prompt first to find unclear matches, then review those invoices one at a time. If the output repeatedly cannot match PO lines to invoice lines, improve the export by adding line numbers, item descriptions and receipt references. Where documents conflict, keep the action as Hold for evidence until the record owner or supplier supplies the missing proof.
Stop
Do not force an approval to clear a payment run
An unresolved match should stay visible with an owner and required evidence, rather than being relabelled as a minor variance.