Reply to LINE customer chats with Google Gemini and log to Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 8 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.
- Parse LINE Event (Code): runs custom JavaScript code
- Is Text Message (If): checks a condition and branches into true / false
- Set Bot Persona (Edit Fields (Set)): sets 2 fields: brandName, persona
- Answer with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- Reply to LINE (HTTP Request): calls api.line.me (POST)
- Log Conversation (Google Sheets): append
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 (8)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow turns a LINE Official Account into an AI chat assistant by receiving customer messages via a webhook, generating a reply with Google Gemini, sending the response through the LINE Messaging API, and logging each conversation to…