Save time on invoice admin by pulling bills from email, reading the data, and storing clean records. This setup watches a Gmail inbox, unpacks invoice files, and builds a searchable log in Google Sheets while saving PDFs to Google Drive. It suits personal finance and small finance teams that receive electronic invoices by email, including formats used in Colombia.
Every 30 minutes, a Gmail trigger looks for new messages with zip attachments. The flow unzips the files, keeps only PDF and XML, and extracts text from both. An AI model reads the content and returns structured fields like invoice number, date, NIT, totals, and CUFE, using a schema to keep the format steady. A calculator confirms that subtotal plus tax equals total, then the PDF is uploaded to Google Drive, renamed with date and invoice number, and the invoice row is added or updated in Google Sheets with a unique key to avoid duplicates.
You need Gmail, Google Drive, Google Sheets, and OpenAI access to run it. Point the Drive node to a folder and set the target sheet. Expect faster month end close, fewer copy paste mistakes, and a clean archive you can search by date or number.