All ideasMore in Money

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

  1. Builds the script with AI in one evening
  2. It scans Gmail by known senders and downloads the PDFs
  3. When no invoice is attached, it saves the email as a PDF
  4. It puts everything together for the office
  5. 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 ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.