I built a script with AI that gathers my expense invoices from Gmail
In one evening with AI he built a script that scans his Gmail for known senders and downloads invoice PDFs. If a supplier sent no PDF, it saves the email itself as a PDF, puts everything together for the office, and logs what it downloaded and sent so nothing goes twice.
How it works
- Builds the script with AI in one evening
- It scans Gmail by known senders and downloads the PDFs
- When no invoice is attached, it saves the email as a PDF
- It puts everything together for the office
- It runs on three commands and logs what it downloaded and sent
Why it’s worth knowing
The script does the whole chase by itself, even turning a plain email into the invoice PDF when a supplier forgot to attach one, and it keeps a log so nothing is ever sent twice.
Where it’s from
Summarized from a public post on bsky.app. See the original ↗