πŸ’¬ Line chatbot with Google Sheets memory and Gemini AI

⚑ 5,162 views Β· πŸ’¬ Support Chatbots

Description

Main Use Case

This workflow enables automated, AI-assisted replies to users messaging a LINE Official Account, while storing and referencing chat history from Google Sheets to maintain context. Ideal for businesses or support teams that want to provide smart, personalized customer interactions using AI with memory.

How It Works (Step-by-Step)

  1. Connect to LINE Official Account’s API
  1. Prepare the Data
  1. Retrieve Chat History
  1. Prepare Prompt
  1. AI Agent: Google Gemini
  1. Split & Clean History
  1. Save Chat History
  1. Send Reply to LINE

How to Set Up

Prerequisites:

Step-by-Step:

  1. Create a Webhook on LINE:
  1. Design Your Google Sheet:
  1. Set Up Modules in Automation Platform:
  1. Test Your Workflow:
  1. Deploy & Monitor:

πŸ“¦ Benefits

πŸ”— Nodes Used

Google Sheets, HTTP Request, Webhook, AI Agent, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup