Send advice from three AI personas via LINE, Gemini, and Google Sheets
Ready for 3.0What 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 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.
- Set config (Edit Fields (Set)): sets 3 fields: LINE_CHANNEL_ACCESS_TOKEN, SHEET_ID, HISTORY_SHEET_NAME
- Parse LINE event (Code): runs custom JavaScript code
- Skip if no text event (If): checks a condition and branches into true / false
- Respond OK (skip) (Respond to Webhook): sends the response back to the webhook caller
- Build context (Code): runs custom JavaScript code
- Generate advice with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- Parse Gemini response (Code): runs custom JavaScript code
- Save advice to Sheets (Google Sheets): append
- Send Flex Message to LINE (HTTP Request): calls api.line.me (POST)
- Respond OK (Respond to Webhook): sends the response back to the webhook caller
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest
From the author
Who is this for Anyone who wants a fun and practical AI chatbot on LINE. Great for people who enjoy getting advice from multiple angles — whether they face work stress, personal dilemmas, or everyday decisions. What this workflow does When a user sends a text…