Turn new files in Google Drive into clean invoice records in Airtable. The flow finds new invoices, pulls out line items, and saves everything without manual typing. It is great for finance teams that receive invoices in a shared folder.
Here is how it works. A Google Drive trigger watches a chosen folder and starts when a file is added. n8n downloads the file and sends it to LlamaParse with a webhook callback. The webhook returns parsed text. A prompt guides OpenAI to extract vendor data, totals, taxes, and a list of line items. A small code step builds a structured array, cleans numbers, and links each item to its invoice. Then the flow creates an invoice in Airtable and adds each line item to a linked table.
You need a Google Drive folder for invoices, an Airtable base with Invoices and Line Items tables, and API keys for LlamaParse and OpenAI. Once set up, most invoices go from upload to database in a few minutes, cutting data entry time and mistakes. Use it for accounts payable, spend tracking, and vendor reporting.