<< Home | Work
Automated manual data entry of PDF invoices
| Area | Work |
| AI used | Any |
| Source | r/automation |
| Posted | 2026-11-05 |
The move
Use an LLM to extract invoice data from PDFs into a structured JSON format for your spreadsheet.Steps
- Create a Gmail filter to label incoming supplier invoices.
- Use Google Apps Script to save attachments to a specific Drive folder.
- Send the PDF text or image to an LLM with a prompt to return JSON data.
- Validate the extracted data and append it as a new row in your spreadsheet.
- Compare the spreadsheet data against your bank CSV to flag discrepancies.
Prompt for your AI
Extract the following fields from this invoice text: [date, supplier name, invoice number, total amount]. Return the output strictly as a JSON object with these keys.
What happened
The user was manually typing invoice details from PDF attachments into Google Sheets. They implemented a system using Gmail filters and Google Apps Script to automatically save attachments to Drive. An LLM then processes the PDFs to extract specific fields like date, supplier, and amount into a spreadsheet.Watch out
LLMs may occasionally misinterpret numbers or dates, and supplier PDF layouts can change unexpectedly.Give it to your agent
Read https://howtheyuse.ai/p/automated-manual-data-entry-of-pdf-invoices.md and help me do this.