Spreadsheets and data
AI invoice processing from inbox to accounting
Invoices arrive as PDFs in email and folders, and someone retypes them. MegaBrain finds them in Gmail or Outlook, extracts the fields into a sheet, checks them against purchase orders, and can enter them in your accounting system through its screen, stopping before anything is approved or paid.
Prompts to try
Copy one into MegaBrain and change the bracketed parts.
Collect invoices from Gmail
Prompt
Find emails in Gmail from the last 7 days with PDF invoices attached. Save each PDF to Finance/Invoices/Inbox and list them in Finance/invoices-week.xlsx with vendor, invoice number, date, due date, net, tax and total.
Match to purchase orders
Prompt
Match each invoice in Finance/invoices-week.xlsx to Finance/open-POs.xlsx by vendor and PO number. On a new sheet, mark matches, amount differences over 2% and invoices with no PO. Change nothing else.
Draft bills in Xero
Prompt
Open Xero in my browser (I am signed in). For each matched invoice in Finance/invoices-week.xlsx, create a draft bill with the vendor, dates, amount and account code from the sheet. Save them as drafts only and show me a list at the end.
Vendor statement check
Prompt
Compare Finance/Statements/[vendor]-november.pdf with the bills from [vendor] in Finance/invoices-2026.xlsx. List invoices on the statement that we do not have, and payments we made that the statement does not show.
Weekly payables summary
Prompt
Summarize the invoices received this week from Finance/invoices-2026.xlsx: count, total, the ones due next week and any without approval. Save it as Finance/AP/summary-[date].docx.
What it does
Finds invoices where they land
Gmail and Outlook through the Apps connector, or any folder on your Mac.
Extracts the fields
Vendor, number, dates, totals and tax into a sheet you can check.
Enters them for you
With computer use it creates draft bills in QuickBooks Online, Xero or BILL in your browser.
Leaves payment to you
It saves drafts and stops; approving and paying stay with a person.
How it works
Step 1
Connect the inbox
Turn on Gmail or Outlook in the Apps connector, or point it at the invoice folder.
Step 2
Extract and check
It builds the sheet and flags mismatches with your purchase orders.
Step 3
Approve the drafts
Review the draft bills in your accounting system and approve them yourself.
It works in apps with no API through their screen: how computer use works.
AI employees who do this
Works in
Questions
Can it pay invoices?
No. The prompts stop at draft bills; you approve and pay in your accounting system. Keep money movements with a person.
Which accounting systems does it work with?
Any it can open: QuickBooks Online, Xero, BILL, NetSuite and others, in your browser, through the screen with computer use. It needs no integration with them.
Can it read invoices in the email body?
Yes. It reads the email text as well as PDF attachments, and marks invoices where a field is missing.
What about duplicate invoices?
Ask it to check each new invoice against your invoice sheet by vendor, number and amount, and it flags likely duplicates before anything is entered.
Try it on your own files
Download MegaBrain, point it at a folder and paste a prompt. Free to start, paying for models from your credits; Pro, Plus and Max include frontier models and MegaBrain Core.
For Macs with Apple silicon. Windows is coming: leave your email on the download page to hear when it is ready.