OCR receipts from Google Drive to Google Sheets
This n8n workflow reads receipts and invoices dropped into a Google Drive folder with OCR and saves the extracted data as structured rows in Google Sheets. It is for bookkeepers and small businesses that want paper receipts turned into data without typing them in.
What it does
A Drive trigger watches the folder, files already processed are skipped, and each new file is downloaded and sent to the OakPDF OCR API. A code step unserializes the JSON response and the result is written into Google Sheets.
How to use it
Get an OakPDF OCR API key, try your documents in the author's OCR playground, then connect Google Drive and Google Sheets.
Requirements and limits
The API says it recognizes medical, financial and legal formats; other formats can be requested from the author.
More in Google Drive and the n8n workflow library.
Full text
Front matter
name: OCR receipts from Google Drive
description: Triggered manually or by an app event. Connects Code, Google Drive, Google Sheets, HTTP request. # Recognize invoices and convert them into structured JSON ## Video Demo {{ $env.WEBHOOK_URL }} ## Quick OCR playground ### 1. Get your OakPDF OCR API key here: {{ $env.API_BASE_URL }} ### 2. Poceed to the OCR Playground and upload your document or use example files: {{ $env.WEBHOOK_URL }} **The API can recognize any document format: medical, financial, legal -- let me know which format you want to try and I will be happy to add it to the Playground!** ## Running the n8n Workflow This work
category: Automation
kind: Workflow
software: Code|Google Drive|Google Sheets|HTTP requestOCR receipts from Google Drive
Triggered manually or by an app event. Connects Code, Google Drive, Google Sheets, HTTP request. # Recognize invoices and convert them into structured JSON
Video Demo
{{ $env.WEBHOOK_URL }}
Quick OCR playground
1. Get your OakPDF OCR API key here:
{{ $env.API_BASE_URL }}
2. Poceed to the OCR Playground and upload your document or use example files:
{{ $env.WEBHOOK_URL }}
The API can recognize any document format: medical, financial, legal -- let me know which format you want to try and I will be happy to add it to the Playground!
Running the n8n Workflow
This work
Steps
- When clicking ‘Test workflow’ (manualTrigger)
- Sticky Note (stickyNote)
- OCR recognize (httpRequest)
- Unserialize response JSON (code)
- On new file in Google Drive (googleDriveTrigger)
- Load files from Google Drive folder (googleDrive)
- Filter processed files (merge)
- Download file for OCR (googleDrive)
- Save OCR result into Sheets (googleSheets)
- Get already processed rows from Sheets (googleSheets)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1839_Code_Manual_Automation_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Attachments Gmail to drive and google sheets
- LINE BOT - Google Sheets Record Receipt
- Extract text from PDF and image using Vertex AI (Gemini) into CSV
- OpenAI Assistant workflow: uploa file, create an Assistant, chat with it!
- Code Workflow: Outlook, Excel and Code
- Stickynote Workflow: Condition, Google Drive and Google Sheets
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.