Skip to content
TriedPrompts

More in Money, Bills & Taxes.

Generate bank statement parsers and reports for a shared Ledger household budget with Gemini

Gemini generated bank statement parsers, reports and a dashboard so a couple can share a plain-text Ledger budget without manual entry.

Result: WorkedTool: GeminiLevel: Everyday

Copy the prompt

Outcome

George Supreeth finds bookkeeping a pain and needs to share household finances with a spouse. The couple had moved from Ledger to Homebank and then to Google Sheets, because converting bank statement CSVs into the right format each month became too much. Supreeth returned to the plain-text accounting tool Ledger and used Google's Gemini to generate helpers: bank statement parsers and a CSV importer that turns statements into Ledger transactions, recognizing payees and expense types from a rules file; functions for balance assertions, closing balances and temporarily balancing unbalanced accounts; reports run from org-mode blocks and exported as HTML; and a one-page dashboard with charts. Supreeth no longer enters each transaction by hand and can email the spouse financial reports and a money to-do list from Emacs. The post doesn't say how long the setup took.

Evidence: Described by posterThe person describes what happened in words, without screenshots or video.

WorkedEvidence: Described by posterPosted Last checked

Level: Everyday. You need: An AI chat app. Some cases need an account, a paid plan or a file of your own.

How to use this

  1. Tap Copy prompt.
  2. Open Gemini.
  3. Paste it into the message box.
  4. Replace anything in [CAPITAL LETTERS IN BRACKETS] with your own details.
  5. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

I keep our household accounts in Ledger plain-text format. Here's a sample of my bank's CSV export with account numbers removed: [SAMPLE ROWS]. Write a script that converts it to Ledger transactions, assigns payees and expense accounts from a rules file I can edit, and flags anything it can't match. Explain how to run it and how to add a new rule.

Try this in:

This prompt has blanks to fill in, like [SAMPLE ROWS]. We'll copy it instead of filling it in, so you can edit it before you send.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Before you start, ask me 1–3 short questions about the details below and wait for my answers. Once I've answered, confirm the plan in one line and run the whole task start to finish.

Goal: Bank statements that flow into our shared plain-text budget without typing every transaction.

Questions to ask me first:
- Which banks and export formats do you use?
- How do you want expenses categorized?
- Which reports do you and your partner want to see?

Inputs (fill in or confirm):
- Bank exports: [CSV OR PDF SAMPLES WITH NUMBERS REMOVED]
- Account names: [LEDGER ACCOUNTS]
- Categorization rules: [PAYEE TO ACCOUNT LIST]
- Reports wanted: [MONTHLY SPENDING, BALANCES]

Rules:
- Never include real account numbers in code or examples.
- Put matching rules in a separate file I can edit.
- Flag unmatched transactions instead of guessing.
- Keep reports reproducible from the plain-text file.

Checkpoint: Show me the converted output for the sample rows before writing the full importer.

If you get stuck: If a CSV column is ambiguous, ask what it means.

Verify before you finish: Check that converted totals match the bank statement's totals.

Output: An importer script, a rules file, a monthly report and setup instructions.

Done when: Each month's statements import cleanly and the report matches the bank.

AI tool

Gemini

Source

Posted
by George Supreeth
Last checked
Method:
How we verify

https://georgesupreeth.com/web/blog/blog_geo_260208_back_to_ledger/

Context: Personal blog post; date from the post. The author doesn't share prompts; ours is recreated.

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Money, Bills & Taxes

More in PersonalRandom case in Personal