๐ฌ Send advice from three AI personas via LINE, Gemini, and Google Sheets
โก 100 views ยท ๐ฌ Support Chatbots
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_historyand 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
Google Sheets, HTTP Request, Webhook, Basic LLM Chain, Google Gemini Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File