Log LINE invoice photos to Google Sheets with OCR.space and Gemini AI — n8n Workflow
Overview
Who is this for
Freelancers, small business owners, and accounting teams in Japan who receive invoices and want to eliminate manual data entry into spreadsheets.
What this workflow does
Send an invoice photo to your LINE bot and the rest is automatic. The workflow fetches the image via LINE Messaging API, runs it through OCR.space to extract raw text, then passes that text to a Gemini AI Agent to parse the key fields — invoice number, date, due date, vendor name, subtotal, tax, and total. The
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a webhook trigger.
- 2
Process
Data flows through 15 nodes, connecting agent, code, googlesheets.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (15)
Google Sheets
googleSheets
HTTP Request
httpRequest
Code
code
AI Agent
n8n-nodes-langchain.agent
Google Gemini Chat Model
n8n-nodes-langchain.lmChatGoogleGemini
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
log-line-invoice-photos-to-google-sheets-with-ocrspace-and-gemini-aifile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Ryo Sayama
@sayama
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →