Send advice from three AI personas via LINE, Gemini, and Google Sheets
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
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments