Templates / Extract pay slip data with Line Chatbot and Gemini to Google Sheets

Extract pay slip data with Line Chatbot and Gemini to Google Sheets

Needs changes

by Sirisak Chantanate · 3,515 views · created 2025-03-06 · Document Extraction, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

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

How it runs

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

  1. Message Type (Edit Fields (Set)): sets 4 fields: body.events[0].message.text, body.events[0].message.id, body.events[0].source.userId…
  2. Message Classification (Switch): routes items into 3 branches
  3. Text Message Processing (AI Agent): runs an AI agent, with model: Google Gemini for Text; memory: Window Buffer Memory
  4. Line: Get Image (HTTP Request): calls an HTTP API
  5. Line: Text Response to User (HTTP Request): calls api.line.me (POST)
  6. Image Message Processing (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini for Image
  7. Line: Response to User (HTTP Request): calls api.line.me (POST)
  8. Text from Slip Result (Google Sheets): append

Services it uses

Google SheetsGoogle Gemini Chat Model

HTTP calls to: api.line.me

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Text Message Processing (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Text Message Processing (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

Workflow Overview: Extract text from image using AI is worth because you need no code. It incorporates Google Gemini 2.0 Flash model for important text extraction from image. If you code without AI, you have to use multiple condition and may cause a lot of…

Excerpt from Sirisak Chantanate'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.