All free resources

Bookkeeping with AI: Receipt to Expense Summary

Four prompts from a pile of receipts to a summary you can paste into a report. Then the advanced move: hand an agent the goal and the rules, and let it read, categorise, flag the anomalies and come back once.

Prompt language

A stack of receipts photographed and then forgotten in your phone until month end. This routine breaks bookkeeping into four steps — upload, extract, tabulate, summarise — each with a prompt you can paste as-is. Then a more advanced move: stop directing each step, and hand the AI a goal and a set of rules to work through on its own.

🧾 The four steps

① Upload — Photos or PDFs, all of them at once.

② Extract — Date, merchant, category, amount — only what is actually on the receipt.

③ Tabulate — One row per entry, your columns, as CSV straight into a spreadsheet.

④ Summarise — Total, category shares, the five largest — ready to paste into a monthly report.

① Upload the receipts

Photos, PDFs and screenshots all work. No tidying required, but a few things decide how accurate everything after this will be:

  • Shoot the whole receipt, all four corners — crop off the total and every number after it is wrong
  • Even light, with no shadow or glare sitting across the figures
  • Flatten folds and creases; thermal paper is the worst offender
  • Upload a whole month together rather than in batches — anomalies only show up when the month is seen at once

② Extract the fields

This step is not about speed, it is about not guessing. A blurry photo, a merchant name in tiny print, a total sitting under a crease — the model is perfectly capable of smoothing all of that over for you, and that is exactly the danger. Every rule in the prompt exists to make it leave a gap and flag it, instead of handing you a number that merely looks right.

Prompt 1 — Extract the fields
I've uploaded receipts (photos or PDFs). Extract these fields from each one, one block per receipt:
- date (YYYY-MM-DD)
- merchant
- category (meals / transport / office supplies / software / marketing / professional services / travel / other)
- amount and currency
- payment method (only if it's on the receipt)
- receipt number (only if it's on the receipt)

Rules:
1. Read only what is actually visible on the receipt. If you can't read it, write "unclear" — do not guess.
2. Take the total printed on the receipt as the amount. If the line items don't add up to that total, give me both numbers and flag the mismatch.
3. List service charge, tip and tax separately. Don't fold them in as ordinary spending.
4. When you're done, list the fields you were unsure about, so I can check them myself.

③ Turn it into a table

The format is yours to choose. The prompt below uses one that works out of the box: date | merchant | category | amount | currency | payment method | receipt number | notes. Want a project or client column? Change one line.

Prompt 2 — One row per entry
Turn those receipts into a table, one row per entry, with these columns in this order:

date | merchant | category | amount | currency | payment method | receipt number | notes

Rules:
1. Dates always YYYY-MM-DD, so they sort properly.
2. Amounts as digits only — no currency symbols, no thousands separators (e.g. 1280.50). Currency goes in its own column.
3. Use only the categories I listed. Don't invent new ones. If something genuinely fits none of them, write "other" and explain in the notes column.
4. Leave a field blank if you couldn't read it. Don't write "N/A", and don't guess.
5. Output as CSV so I can paste it straight into Google Sheets or Excel.
6. No totals row at the bottom — I'll calculate that in the spreadsheet.

Two things catch people out: keep currency symbols out of the amount column (a spreadsheet reads them as text and refuses to add up), and don’t let it append a totals row — the first time you sort, it ends up in the middle.

④ The expense summary

A summary is only worth having once the table exists, because every figure in it can be recomputed. This step is not asking the AI for its impressions — it is asking it to calculate the total, the category shares and the five largest expenses from the table, in a form you can paste into a monthly report.

Prompt 3 — Expense summary
Using the table above, write an expense summary I can paste straight into a spreadsheet or a monthly report:
1. Total spend for the period, by currency
2. Each category's amount and share, largest first
3. The five largest individual expenses, with dates and merchants
4. If I've given you last period's figures, compare: which categories rose, and by what percentage
5. One closing line: the single thing most worth noticing this period

Rules: every number must be calculated from the table. Don't add anything that isn't in it, and don't state a conclusion stronger than the data supports.

⑤ Generate an interactive HTML dashboard

A summary is a paragraph. A dashboard is a page you can click, filter and drag. This prompt runs the whole thing — read the receipts, categorise, check anomalies, analyse — and hands you a single .html file at the end: four KPI cards, a category bar chart, anomaly alert cards, a searchable sortable transactions table, and three savings sliders. Entirely self-contained, no CDN, no internet, opens on a double click.

Prompt 5 — Interactive HTML dashboard
Goal:
From all the invoices / receipts I've uploaded, extract the spending, categorise it, check for anomalies, analyse it, and then generate a downloadable, interactive, self-contained HTML dashboard.

Do the whole thing in one pass. Don't check in with me step by step.

====================
A. Read every receipt
====================

Extract these fields from each one:

- date
- merchant
- category
- amount
- currency
- payment method (only if it's on the receipt)
- receipt number (only if it's on the receipt)
- line-item amounts
- tax
- service charge
- tip
- notes

Reading rules:

1. Use only what is actually visible on the receipt.
2. Leave a field blank if it's unreadable, absent, or uncertain. Don't guess.
3. Dates always YYYY-MM-DD.
4. Take the printed total as the amount.
5. If the line items don't add up to the total:
   - keep the total
   - compute the sum of the line items
   - compute the difference
   - flag it as "line items don't reconcile"
6. Record tax, service charge and tip separately. Don't treat them as ordinary items.
7. If one PDF contains several receipts, split it into separate transactions.
8. Any receipt you cannot read reliably goes into "needs input from me".

====================
B. Categorise
====================

Use only these 8 categories:

- meals
- transport
- office supplies
- software subscriptions
- marketing
- professional services
- travel
- other

Do not add categories.

If you can't decide reliably:
- categorise as "other"
- write the reason in the notes

====================
C. Anomaly checks
====================

Check every transaction for:

1. The same merchant charging repeatedly in a short window
   - flag similar amounts on the same day or very close together especially

2. An amount more than 50% above the average for its category
   - only calculate this if the category has at least 2 valid transactions
   - show:
     - the amount
     - the category average
     - the percentage above it

3. A merchant appearing for the first time this month
   - only judge this if I've also given you previous months
   - with no history, don't assume it's the first time

4. A receipt total that doesn't match its line items

5. A merchant that clearly doesn't fit its category
   - flag only where there is enough evidence
   - don't guess

Every anomaly must name:
- date
- merchant
- amount
- receipt number
- why it was flagged

====================
D. Analyse
====================

Calculate:

1. Total spend
   - separated by currency
   - do not convert between currencies yourself

2. For each category:
   - amount
   - share of total spend
   - sorted largest to smallest

3. Top 5 largest expenses:
   - date
   - merchant
   - category
   - amount

4. Recurring vs one-off costs

Call something "recurring" only where there is evidence, such as:
- an explicit subscription
- a recurring monthly fee
- appearing across several months

If you only have this month:
- software subscriptions may be marked "possibly recurring"
- but don't claim it definitely repeats monthly

5. Identify:
- the largest spending category
- the largest single expense
- the anomaly most worth checking
- where spending is most concentrated

Every conclusion must be supported by actual transaction figures.

====================
E. Generate the interactive HTML dashboard
====================

When the analysis is done, generate a complete HTML file.

The HTML must be:

- self-contained
- a single .html file
- CSS and JavaScript all inline
- no external libraries
- no CDN
- no internet required
- openable directly in a browser
- mobile responsive
- dark premium SaaS dashboard styling
- visually clean, avoiding long blocks of text
- using colour hierarchy for the important numbers

Colour meaning:

Purple:
- totals
- the primary KPI

Green:
- normal items
- potential savings
- positive / healthy indicators

Amber:
- large expenses
- worth noticing but not necessarily wrong

Red:
- anomalies
- duplicated charges
- mismatches
- anything needing a human to check

====================
F. Dashboard layout
====================

Four KPI cards along the top:

1. Total Spend
2. Largest Category
3. Largest Transaction
4. Flags to Review

Each card:
- one big number
- a short label
- one line of supporting info
- not much text

Then:

SECTION 1
"Category breakdown"

A horizontal bar chart showing:
- category
- amount
- %
- highest first

No external chart library.
Plain HTML/CSS bars.

SECTION 2
"Anomalies / worth checking"

Each anomaly as a coloured alert card:

Red:
- duplicate charges
- mismatches

Amber:
- more than 50% above the category average

Green:
- checked and normal

Plus a button:

"Show / hide anomalies"

====================
G. Key takeaways
====================

No long paragraph.

Use coloured pills / chips for at most 4–6 key insights, for example:

- Top 3: professional services → travel → marketing
- the largest single expense is XX% of total spend
- X anomalies need checking
- one category is XX% of total spend
- one set of line items is off by HKD XX

Keep them short.

====================
H. Interactive savings simulator
====================

From the three largest categories that could plausibly be adjusted, generate three sliders.

For example:

Cut professional services:
0–30%

Cut travel:
0–40%

Cut marketing:
0–30%

If the actual largest categories are not those three, use whichever real categories are largest and reasonably adjustable.

For example:
- meals
- software subscriptions
- office supplies

As a slider moves, recalculate live:

1. Estimated savings
2. New monthly spending
3. Total spending reduction %

This must update live in JavaScript.

Note:
This is only a scenario simulator.

State on the dashboard:

"Scenario modelling based on current spending only. Not a projection of actual savings."

====================
I. Interactive transactions table
====================

List every transaction in full.

Columns:

date
merchant
category
amount
currency
payment method
receipt number

With these interactive controls:

1. Search
   - merchant
   - invoice number

2. Category filter

3. Sort:
   - date newest → oldest
   - date oldest → newest
   - amount high → low
   - amount low → high

4. An "anomalies only" button

5. A reset button

6. A counter:
   "Showing X of Y transactions"

7. Clicking any transaction:
   expands the details below it

Showing:
- merchant
- date
- category
- amount
- payment method
- receipt number
- why it was flagged (if it was)

====================
J. Recommendations
====================

Produce at most 5 specific recommendations.

Each one needs:

1. a short title
2. one line of action
3. supporting evidence

Format:

Recommendation:
"Review professional service scope"

Action:
"Revisit the quote, the scope, or what is being delivered."

Evidence:
"Freelance Designer HKD 1,800 + Consultant HKD 400 = HKD 2,200, which is 48.1% of total spend."

Important:

Do not invent recommendations to reach five.

If the data only supports 2–3 sound ones:
give 2–3.

Do not offer:
- investment advice
- tax advice
- legal advice

Only cost control and what the spending data itself shows.

====================
K. Evidence requirement
====================

Every significant conclusion must be traceable back to transactions.

For example:

Don't just write:

"Professional services are too high."

Write:

"Professional services HKD 2,200, from:
- Freelancer HKD 1,800
- Consultant HKD 400

Together 48.1% of total spend this period."

Every percentage must be calculated from the actual figures.

Don't make numbers up.

====================
L. Needs input from me
====================

At the bottom of the dashboard, add:

"Needs input from me"

Listing everything that was:

- unreadable
- missing a date
- missing a merchant
- missing an amount
- missing a currency
- impossible to confirm as a duplicate
- impossible to confirm as a first-time merchant, for lack of history
- impossible to confirm as a recurring pattern, for lack of history

If there is none:
show "Nothing needs adding at the moment."

====================
M. Fake/demo data rule
====================

If I ask for a demo and some of the data is invented:

Label it clearly:

DEMO DATA

And state:
"Invented transactions are shown only to demonstrate the dashboard, and do not represent a real financial position."

If these are real invoices:
add no fake data at all.

====================
N. Final output
====================

At the end, simply:

1. finish the analysis
2. generate the HTML file
3. confirm the HTML opens standalone
4. confirm every button / filter / slider actually has a working JavaScript function
5. confirm there are no external dependencies
6. give me a download link for the HTML

Do not ask me first:
"Shall I generate it?"
or
"What style would you like?"

Just do it.

If a little data is missing:
do the rest of the analysis anyway and put the gaps under "needs input from me".

Treat a receipt as incomplete only when the transaction amount is genuinely unknowable.

Most important:
accurate numbers beat impressive visuals.
Never fill a gap with a guess.

It is a long prompt, and the temptation is to cut it down to "build me a dashboard". Most of that length is closing the gaps where the model would otherwise invent: leave unreadable fields blank, compute every percentage from real figures, tie each conclusion to a transaction, and never call a merchant "new this month" without history to prove it. Cut those and you get a beautiful dashboard whose numbers you cannot trust.

The bookkeeping floor: What the AI produces is a copy, not evidence — keep the original receipts. Before anything goes into the books, spot-check the totals and the dates: get those wrong and the whole table has to be redone.

🤖 Going further: an AI agent for financial planning

In the first four steps you direct each move. The advanced version inverts that: you state the goal and the rules clearly, and the AI works through the whole routine before it replies. With several dozen receipts a month, discussing them one at a time is unbearable — this is where the time actually comes back.

  • Read — Date, merchant, amount and currency from each receipt.
  • Categorise — From a fixed list, with no inventing new ones.
  • Find anomalies — Repeat charges, above-average amounts, new merchants, totals that don’t reconcile, miscategorised merchants.
  • Analyse — Which categories dominate? What recurs monthly, what was a one-off?
  • Summarise — One page: total, category breakdown, top 5, the anomaly list.
  • Recommend — Three specific savings, each pointing at the expenses behind it.

If you don’t define "anomaly", the model will define it for you. So the prompt pins it down: what percentage counts as high, what window counts as a repeat, what counts as the wrong category.

Prompt 4 — Financial planning agent
Goal: from this month's spending, identify the major expenses, the anomalies, and anything worth my attention.

I'm giving you every receipt for the month at once. Work through this whole routine yourself — don't check in at each step:

1. Read: extract date, merchant, category, amount and currency from each receipt.
2. Categorise: use only these fixed categories — meals / transport / office supplies / software / marketing / professional services / travel / other.
3. Find anomalies: flag anything matching one of these —
   - the same merchant charging more than once in a short window
   - an amount more than 50% above the average for its category
   - a merchant appearing for the first time this month
   - a receipt total that doesn't match its line items
   - a merchant that doesn't belong in the category it landed in
4. Analyse: which categories dominate? Which costs recur every month, and which were one-offs?
5. Summarise: one page or less — total, category breakdown, top 5 expenses, the anomaly list.
6. Recommend: three specific ways to spend less, each pointing at the actual expenses that support it.

Rules:
- Every conclusion must name the receipt or the line it came from. Don't tell me anything I can't trace back.
- Anything you couldn't read, or that's missing data, goes in a "needs input from me" list. Don't fill it in yourself.
- No investment or tax advice. Only what the numbers themselves show.
- Work through all six steps, then reply once.

The load-bearing rule is the one requiring every conclusion to name the receipt behind it. With it, you can pull a few and check them. Without it, you get a page that reads convincingly and cannot be verified.

One last thing: This saves you the data entry, not the accounting judgement. How to file, and what is deductible, is a question for your accountant — what the AI is genuinely good at is having the numbers in order before they reach anyone.

📲 Next step · Free app

Turn these prompts into a daily AI habit.

Applied AI Academy is a 30-day AI challenge in your pocket: about 10 minutes a day of guided, hands-on practice built for working professionals. Start free on iPhone or Android.

  • 10-minute daily lessons you actually finish
  • Practise on real work tasks, not toy examples
  • Earn a certificate when you complete the challenge
Download on the App StoreGet it on Google Play
Free community

Get the next prompt before it’s public

New prompts, practical techniques and workshop news go to the WhatsApp community first. Free to join, and you can leave any time.

Join Hong Kong parents and professionals learning AI together.

Join the WhatsApp community