Worked exampleAI in finance work
Prompt patterns for reconciliations and variance notes
Four prompt patterns turn a vague request to an AI tool into a checkable draft; here they explain a supplier statement difference of EGP 33,500 in two lines that tie.
- Written by Mahmoud Sabry
- Published
- Last updated
- Reading time 6 min read
- Checks Check lines recalculated by script Editorial policy
The problem: a vague request and an answer nobody can check
An accounts payable accountant at a paint manufacturer in Egypt must reconcile the main resin supplier's statement before the month-end payment run. The ledger shows EGP 452,800 owed; the supplier's statement shows 486,300.
She pastes both lists into the company's approved AI tool and types "reconcile these". The answer is confident and long, and it does not say which items explain the difference or whether they add up.
Four prompt patterns that make the answer checkable
Each pattern answers a question a good manager would answer when briefing a new colleague. Use all four, in this order:
- Context: who the work is for and what it is. "I am reconciling our ledger with a supplier's statement for the month-end payment run."
- Data and rule: paste both lists and state how items match. "Match on invoice number; where there is none, match on amount and a date within 5 days."
- Fixed output: say exactly what to return. "Return a table: ledger balance, each reconciling item with its document number, and the statement balance. The items must add up to the difference."
- Gaps: ask for what it could not do. "List every item you could not match and every assumption you made."
Pattern 2 also covers what not to paste: only the two lists, without bank details or personal data.
Why these four work: each one removes a guess. Without context the tool guesses the purpose. Without a rule it guesses how items match. Without a fixed output it chooses its own layout, which you then have to search. Without a request for gaps it hides what it could not do inside fluent sentences.
A good brief to a new colleague removes the same four guesses.
The worked example: EGP 33,500 explained in two lines
With the four patterns, the tool returned two reconciling items, both with document numbers the accountant could look up.
Table 1
Two items explain the EGP 33,500 difference between the ledger and the statement
EGP, supplier reconciliation at month end, hypothetical company
| Item | EGP |
|---|---|
| Ledger balance owed | 452,800 |
| Add: invoice received, still in approval | 41,000 |
| Less: supplier credit note, not yet recorded by us | (7,500) |
| Supplier statement balance | 486,300 |
Source: Illustrative calculation from hypothetical data.
The invoice for EGP 41,000 had been received by the warehouse and was still waiting for approval, so it was not yet in the ledger. The supplier issued a credit note for 7,500 for damaged drums returned in the last week of the month, and it had not yet reached the ledger.
For each reconciling item, ask which side has recorded it, and take the sign from that. The supplier has recorded both items and we have recorded neither, so the invoice makes their balance higher than ours and the credit note makes it lower. A sum that ties does not prove the signs are right.
The gaps list was empty apart from one assumption: that the statement date and the ledger date were the same. The accountant confirmed it.
The same patterns write a variance note
The patterns work for commentary too. Electricity for the quarter was budgeted at EGP 1,250 thousand and came in at 1,425 thousand.
Exhibit 1
The patterned prompt returns a 175 thousand note with a driver and an owner
The same request before and after the four patterns
Before
| A | B | |
|---|---|---|
| 1 | Part | Text |
| 2 | Prompt | Write a comment on electricity. |
| 3 | Reply | Electricity costs were higher than expected due to various factors. |
After
| A | B | |
|---|---|---|
| 1 | Part | Text |
| 2 | Prompt | Quarterly cost commentary for the CFO. Budget 1,250, actual 1,425, EGP thousand. The utility raised the tariff from the second month. Give driver, size and action. List any gap. |
| 3 | Reply | 175 thousand (14%) over: the tariff rose in the second month. Permanent. Owner: plant manager. |
| 4 | Gaps | The split between tariff and usage was not provided. |
Source: Illustrative example from hypothetical data.
View data table
| Before 2 | Prompt | Write a comment on electricity. |
|---|---|
| Before 3 | Reply | Electricity costs were higher than expected due to various factors. |
| After 2 | Prompt | Quarterly cost commentary for the CFO. Budget 1,250, actual 1,425, EGP thousand. The utility raised the tariff from the second month. Give driver, size and action. List any gap. |
| After 3 | Reply | 175 thousand (14%) over: the tariff rose in the second month. Permanent. Owner: plant manager. |
| After 4 | Gaps | The split between tariff and usage was not provided. |
The gap the tool listed is the useful part. Without the split between tariff and usage, the note is a draft, and the analyst gets that split from the plant before the note is sent.
The check that stays with you
The patterns make the answer checkable; they do not check it. Before using the reconciliation, the accountant opened both documents and added the two items: 452,800 + 41,000 - 7,500 = 486,300. That check takes two minutes, and it is hers.
Common errors
- "Reconcile these" with no rule: the answer cannot be checked. Correction: state the matching rule and the output table.
- No request for gaps: unmatched items stay hidden inside a fluent answer. Correction: always ask what it could not match.
- Using the result without adding it up: a wrong item goes into the ledger. Correction: tie the items to the difference yourself.
How to check your work
- Confirm the prompt has all four patterns: context, data and rule, fixed output, gaps.
- Confirm the items add up:
452800 + 41000 - 7500 = 486300. - Confirm each item has a document you have opened.
- Confirm the gaps list has been answered before the work is sent.
Limits of the method
The patterns improve the draft; they do not make it correct. Long lists can exceed what the tool reads reliably in one request, so reconcile large suppliers in parts and tie each part.
Frequently asked questions
Should I keep my prompts?
Yes. Save the ones that work as templates for the team, with the matching rule written in.
Does the tool need the whole ledger?
No. Give it only the lines for the supplier and the period, which is also safer.
Can the patterns be used in Arabic?
Yes. The four parts work in any language; keep document numbers and figures exactly as they appear in the source.
Terms in this article
| English | Arabic | Meaning |
|---|---|---|
| Prompt | نص الطلب | The instruction given to an AI tool, including the context, data and expected output |
| Supplier statement reconciliation | مطابقة كشف حساب المورد | Explaining every difference between the ledger balance and the supplier's statement |
| Reconciling item | بند التسوية | One item that explains part of the difference between two balances |
Related lessons
- TECH-C3Prompt patterns for finance
- TECH-C14Agents for variance commentary
- TECH-C5Checking AI output with controls
Read next
Sources and notes
Figures and companies in the examples are illustrative and hypothetical, and do not refer to any real organisation.
Amounts are in EGP unless stated as thousands.
Educational content, not financial, tax or investment advice. Check the standards and rules in force before applying anything.
Share this article
Four prompt patterns that turn a vague request into a draft you can check. A supplier reconciliation in EGP: