Skip to main content

Scan receipt images from Google Drive with Gemini and log to Google Sheets

Workflow preview

Workflow preview
100%
Scan receipt images from Google Drive with Gemini and log to Google Sheets preview
Open on n8n.io

1. Workflow Overview

Who is this for Freelancers, small business owners, and accountants who want to automate receipt management without manual data entry. What this workflow does This workflow monitors a Google Drive ...

Best for

  • Invoice Processing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.if, n8n-nodes-base.googledrive, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yanagita Yusuke.

Original n8n.io source

1.1 Workflow description

Title
Scan receipt images from Google Drive with Gemini and log to Google Sheets
Workflow name
Scan receipt images from Google Drive with Gemini and log to Google Sheets

Who is this for

Freelancers, small business owners, and accountants who want to automate receipt management without manual data entry.

What this workflow does

This workflow monitors a Google Drive folder for new receipt images or PDFs. When a file is detected, it downloads and sends it to the Gemini AI API for OCR processing. Gemini extracts key details — date, store name, total amount, tax, payment method, and expense category — as structured JSON. The parsed data is appended to a Google Sheets spreadsheet, and the processed file is automatically moved to a separate folder. If more files remain, the workflow loops until all receipts are processed.

How to set up

  1. Create two folders in Google Drive: one for unprocessed receipts and one for processed files
  2. Create a spreadsheet with columns: date, store_name, total_amount, tax_amount, payment_method, category, source_file, original_file_id
  3. Add your Gemini API key in n8n Settings → Variables as GEMINI_API_KEY
  4. Connect Google Drive and Google Sheets OAuth2 credentials
  5. Set folder IDs in the Watch Drive Folder, Check Remaining Files, and Move to Processed nodes
  6. Set your spreadsheet ID in the Append to Sheet node

Requirements

  • Google account with Drive and Sheets access
  • Gemini API key (free tier available at Google AI Studio)

How to customize

  • Edit the prompt in the Gemini OCR node to add or change extracted fields
  • Adjust the polling interval in the Watch Drive Folder node
  • Modify expense categories in the prompt to match your accounting needs

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Watch Drive Folder

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 7 - Filter Image or PDF

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 8 - Download File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 9 - Convert to Base64

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Gemini OCR

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Parse JSON Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Append to Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 13 - Move to Processed

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 14 - Check Remaining Files

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Has More Files?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 16 - Wait 30s

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 17 - Get Next File

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Scan receipt images from Google Drive with Gemini and log to Google Sheets
Complexity advanced
Nodes 17
Categories Invoice Processing, AI Summarization
Author Yanagita Yusuke
Published 16 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15758/15758.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Scan receipt images from Google Drive with Gemini and log to Google Sheets do?

Who is this for Freelancers, small business owners, and accountants who want to automate receipt management without manual data entry. What this workflow does This workflow monitors a Google Drive ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.