Send advice from three AI personas via LINE, Gemini, and Google Sheets

Go to Workflow
0 views
Built by Ryo Sayama Ryo Sayama
Created on June 07, 2026

Description

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 message to the LINE bot, the workflow:

Parses the incoming LINE Webhook event
Passes the message to Google Gemini via Basic LLM Chain
Gemini replies as three distinct personas in a single structured response
The advice is logged to Google Sheets for history tracking
A Flex Message carousel is sent back to the user — one card per persona, each color-coded

The three personas:
🔮 Fortune Teller — mystical, fate-driven advice
💼 Business Coach — logical, action-oriented guidance
😊 Best Friend — casual, empathetic encouragement

How to set up

Create a LINE Messaging API channel and copy the Channel Access Token
Set your n8n webhook URL as the LINE Webhook URL
Create a Google Sheets spreadsheet with a sheet named advice_history and these headers in row 1: Timestamp, User ID, Message, Fortune Teller, Business Coach, Best Friend
Open the Set config node and paste your LINE token and Sheet ID
Connect your Google Gemini credential to the Google Gemini Chat Model node
Connect your Google Sheets credential to the Save advice to Sheets node
Activate the workflow and send a message to your LINE bot

Requirements

LINE Messaging API channel (free)
Google Gemini API key (free tier available at aistudio.google.com)
Google Sheets (any Google account)

How to customize

Change the three personas in the Generate advice with Gemini prompt to fit your use case (e.g. therapist, investor, comedian)
Adjust the Flex Message card colors in Send Flex Message to LINE
Add extra columns to Google Sheets to track additional metadata

Nodes Used (5)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest