All plays › Local trades and home services

Local trades and home servicesChatGPT

File subcontractor invoices automatically with a ChatGPT-built script

Picked and checked by Olga Pearson, host of The Practical AI Show · Published

What was the result?

vendor-reported

Saves 5 to 6 hours a week

A general contractor had ChatGPT write a script that pulls subcontractor invoices from his email, matches each to a job and files it in the right folder.

Who did this?

Morgan SterlingBeach Cities BuilderOpenAI Academy · May 2026

How do I try it?

  1. List your active jobs and their folder names
  2. Ask ChatGPT to write a script that collects invoice emails
  3. Have it read each invoice and match it to a job
  4. Test it on a week of old invoices before going live
  5. Check what it filed every week
Copy-paste prompt
I'm a general contractor with about 30 active jobs. Subcontractors email me invoices as PDFs every day. I keep one Google Drive folder per job, named by street address. Write me a simple Google Apps Script, with step-by-step setup instructions for a non-programmer, that: (1) finds new Gmail messages with PDF invoices attached; (2) reads the job address or project name from each invoice; (3) matches it to the right job folder; (4) saves the PDF there; (5) puts anything it can't match in a folder called 'Needs Review' and emails me a daily list of those. Explain how to run it on a schedule and how to test it safely first.

Make it run every week

A play works once. Turn it into a routine in three small steps:

  1. Run it once and check the result yourself.
  2. Give your AI a schedule. Tell it when to run this play (every week, or every month) and to message you with what it found before you act.
  3. Keep a log. One line per run: what was checked, anything flagged, what you did.

See how owners turn plays into systems →

What should I watch out for?

This story is published by OpenAI, the tool maker, and the time saving is the owner's own estimate. A script that touches your email needs testing on old messages first, and someone should still check what it files.

Did it work for you?

PageMotor keeps this site free.