Skip to main content

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

Workflow preview

Workflow preview
100%
Send advice from three AI personas via LINE, Gemini, and Google Sheets preview
Open on n8n.io

1. Workflow Overview

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 everyd...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ryo Sayama.

Original n8n.io source

1.1 Workflow description

Title
Send advice from three AI personas via LINE, Gemini, and Google Sheets
Workflow name
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:

  1. Parses the incoming LINE Webhook event
  2. Passes the message to Google Gemini via Basic LLM Chain
  3. Gemini replies as three distinct personas in a single structured response
  4. The advice is logged to Google Sheets for history tracking
  5. 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

  1. Create a LINE Messaging API channel and copy the Channel Access Token
  2. Set your n8n webhook URL as the LINE Webhook URL
  3. 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
  4. Open the Set config node and paste your LINE token and Sheet ID
  5. Connect your Google Gemini credential to the Google Gemini Chat Model node
  6. Connect your Google Sheets credential to the Save advice to Sheets node
  7. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note — Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note — Section 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note — Section 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note — Section 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note — Section 4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Receive LINE message

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 7 - Set config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Parse LINE event

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Skip if no text event

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 10 - Respond OK (skip)

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1

Block 11 - Build context

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Generate advice with Gemini

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.9

Block 13 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 14 - Parse Gemini response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Save advice to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 16 - Send Flex Message to LINE

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Respond OK

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1

3. Summary Table

Workflow Send advice from three AI personas via LINE, Gemini, and Google Sheets
Complexity advanced
Nodes 17
Categories Support Chatbot, AI Chatbot
Author Ryo Sayama
Published 25 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14308/14308.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send advice from three AI personas via LINE, Gemini, and Google Sheets do?

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 everyd...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.