This template automates invoice processing for teams that currently copy data from PDFs into spreadsheets by hand. It is ideal for small businesses, back-office teams, accounting, and operations who want to reduce manual entry, avoid human error, and never miss a payment deadline. The workflow watches a structured Google Drive folder, performs OCR, converts the text into clean structured JSON with an LLM, and appends one row per invoice into Google Sheets. It preserves a link back to the original file for easy review and audit.
The workflow runs on a schedule, scans your Drive folder hierarchy, OCRs the PDFs/images, cleans the text, extracts key fields with an LLM, and appends a row to Google Sheets per invoice. Each step is modular so you can swap services or tweak prompts without breaking the flow.
Before you start, make sure you have access to the required services and that your Drive is organized into monthly subfolders so the workflow can find the right files.
<your_ocr_api_key>).<your_openai_credential_name>).Import the workflow, replace placeholder credentials and IDs with your own, and enable the schedule. You can also run it manually for testing. The parent-folder query and sheet ID must reflect your environment.
<your_google_drive_credential_id> and <your_google_drive_credential_name> with your Google Drive Credential.<your_google_sheet_id> with your spreadsheet ID.<your_openai_credential_name> is selected.<your_ocr_api_key>.This workflow is easily extensible. You can adapt folder naming rules, enrich the spreadsheet schema, and expand the AI prompt to extract custom fields specific to your company. It also works beyond invoices, covering receipts, quotes, or purchase orders with minor changes.
{{$now.setZone("Asia/Tokyo").format("yyyy年MM月")}}分 to match your convention.