Log LINE invoice photos to Google Sheets with OCR.space and Gemini AI
Ready for 3.0What 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.
- Return 200 OK to LINE (Respond to Webhook): sends the response back to the webhook caller
- Variables (API Key Management) (Edit Fields (Set)): sets 5 fields: LINE_CHANNEL_ACCESS_TOKEN, LINE_MESSAGE_ID, SPREADSHEET_ID…
- Check Image Message (If): checks a condition and branches into true / false
- Fetch Image from LINE (HTTP Request): calls an HTTP API
- LINE Reply - Not an Image (HTTP Request): calls api.line.me (POST)
- Convert Image to Base (Code): runs custom JavaScript code
- OCR - Extract Text from Image (HTTP Request): calls an HTTP API (POST)
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model
- Parse & Format JSON (Code): runs custom JavaScript code
- Error Check (If): checks a condition and branches into true / false
…plus 3 more steps. See the full node list below.
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other LINE + Google Sheets templates (33) · Other LINE + Google Gemini templates (25)
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)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets
n8n-nodes-base.googleSheets
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…