Templates / Log LINE invoice photos to Google Sheets with OCR.space and Gemini AI

Log LINE invoice photos to Google Sheets with OCR.space and Gemini AI

Ready for 3.0

by Ryo Sayama ✓ · 123 views · created 2026-03-21 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model and Google Sheets. It also calls api.line.me over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Return 200 OK to LINE (Respond to Webhook): sends the response back to the webhook caller
  2. Variables (API Key Management) (Edit Fields (Set)): sets 5 fields: LINE_CHANNEL_ACCESS_TOKEN, LINE_MESSAGE_ID, SPREADSHEET_ID…
  3. Check Image Message (If): checks a condition and branches into true / false
  4. Fetch Image from LINE (HTTP Request): calls an HTTP API
  5. LINE Reply - Not an Image (HTTP Request): calls api.line.me (POST)
  6. Convert Image to Base (Code): runs custom JavaScript code
  7. OCR - Extract Text from Image (HTTP Request): calls an HTTP API (POST)
  8. AI Agent: runs an AI agent, with model: Google Gemini Chat Model
  9. Parse & Format JSON (Code): runs custom JavaScript code
  10. Error Check (If): checks a condition and branches into true / false

…plus 3 more steps. See the full node list below.

Services it uses

Google Gemini Chat ModelGoogle Sheets

HTTP calls to: api.line.me

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

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…

Excerpt from Ryo Sayama's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.