Skip to content
All work
No. I AI + automation · 2026

Controlled Close Automation

Python scripts, built with AI, for more than 20 recurring month-end close tasks, and a desktop invoicing tool a coworker can run. Built in my current role at a marketplace company.

In monthly use
Fig. I The workflow in generalized form. No company data is shown.
The frame
Question
How can recurring close work be automated so every number can be checked and someone else can run it?
Data
The monthly source exports each task already uses, and the totals those systems report.
Method
Write each calculation as a script that runs the same way every month, check the inputs before building anything, stop on anything that fails, and leave review and posting to a person.
Signal
The value is not one script; it is the same checks on every script, so each one can be trusted and handed off.
Why it matters
It is the work I do every month, and it puts accounting judgment and software built with AI in the same place.

The problem

In most finance teams, recurring close work starts as a collection of spreadsheets, exports, and manual journal entries. Each task depends on memory: which file to use, which period to pick, who reviews the result, and where the evidence lives.

A marketplace makes this harder. Its revenue arrives as tens of thousands of transactions, not a handful of invoices, so close work has to be checked by rule, not by eye.

The scripts

I have built Python scripts with AI for more than 20 of my recurring close tasks, from journal entries and invoices to account reconciliations. I use them in my close every month. AI writes the code. The code does the arithmetic, so the same files give the same answer every time, and I review the result before anything is posted.

In September 2026 I took over a monthly revenue process from a colleague. Before running a close on it, I had AI rebuild the workbook’s calculations in Python and checked the rebuild against a year of past months; the totals tied in every one. It has run beside the workbook as a cross-check on each close since.

The invoicing tool

One monthly invoicing process needed to be something a coworker could run, not only me. I built it as a desktop tool: a small window that opens with a double-click and needs only Python, with no other installs and no admin rights.

  1. Check — pick the month and run a read-only check of the source files. Anything that must be fixed is listed, and the final file is not built until it is fixed.
  2. Review — the tool builds a review package: the invoice workbook, a billing review, and a list of source exceptions. It deliberately contains no import file.
  3. Confirm — once the review is right, the tool creates the import file. If any source file changed after the review, it refuses and asks for a new review.
  4. Import — a person imports the file. The tool never posts anything itself.

Every run is saved in its own folder with a record of its input files, totals, and outputs. A failed run is set aside so it can’t be mistaken for a good one. The tests include a full month’s tie-out and a failed run.

Teaching it

I lead the monthly AI sessions for my company’s accounting and finance team, and in November 2026 I presented this method at a company-wide AI session.

Where the AI belongs

AI writes the code and finds the data. It does not do the arithmetic and it does not post. Any step with one right answer, such as a total, a balance, or a match, is done by code that gives the same answer every time, and a person approves what goes into the books. The method page has the full version.

Alex Schulz

Get in touch

Want to see any of this run? Write to me.

I'm happy to walk through how any of these were built. For Item2 or the trip app, email is the fastest way to reach me.