Skip to main content

Support student questions via LINE using Gemini, Google Drive, and Slack

Workflow preview

Workflow preview
100%
Support student questions via LINE using Gemini, Google Drive, and Slack preview
Open on n8n.io

1. Workflow Overview

Who is this for This workflow is built for tutoring schools, cram schools, and independent teachers who want to offer students 24/7 Q&A support via LINE — Japan's most widely used messaging app. No...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.toolworkflow

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
Support student questions via LINE using Gemini, Google Drive, and Slack
Workflow name
Support student questions via LINE using Gemini, Google Drive, and Slack

Who is this for

This workflow is built for tutoring schools, cram schools, and independent teachers who want to offer students 24/7 Q&A support via LINE — Japan's most widely used messaging app. No coding knowledge is required to set it up.

What this workflow does

When a student sends a question on LINE, an AI Agent (powered by Gemini) reads the conversation history stored in Google Sheets, searches your teaching materials in Google Drive, and replies with a clear explanation directly in LINE. If the agent cannot find a confident answer — for example, the topic is not covered in the materials or the question is too complex — it automatically sends an escalation alert to a designated Slack channel so a teacher can follow up personally. The agent also logs every question and its resolution status to Google Sheets, giving teachers a running record of each student's weak points and question frequency.

How to set up

  1. Connect your LINE Messaging API credentials in n8n.
  2. Create a Google Sheet with columns: student ID, timestamp, question, answer, resolved (yes/no).
  3. Upload your teaching materials (PDF or text files) to a Google Drive folder.
  4. Set the Drive folder ID and Sheet ID in the Set Fields node.
  5. Add your Slack webhook URL for teacher escalation notifications.
  6. Activate the workflow and share the LINE bot link with students.

Requirements

LINE Messaging API channel (free tier works) Google Drive folder with study materials (PDF or .txt) Google Sheets spreadsheet for conversation history and progress tracking Slack incoming webhook URL Gemini API key (free tier available)

How to customize

You can swap Google Drive for a different file source, adjust the Gemini prompt in the AI Agent node to change the explanation style (e.g., simpler language for younger students), or add more Slack channels to route questions by subject. The escalation threshold can be tuned by editing the condition in the If node.

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 - LINE Receiver

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

Block 2 - Acknowledge LINE

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

Block 3 - Set Config

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

Block 4 - Load Chat History

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

Block 5 - Aggregate History

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

Block 6 - Study Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 7 - Gemini Model

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

Block 8 - Search Materials Tool

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2

Block 9 - Reply via LINE

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

Block 10 - Sticky Note — Overview

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

Block 11 - Sticky Note — Input

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

Block 12 - Sticky Note — Config

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

Block 13 - Sticky Note — History

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

Block 14 - Sticky Note — Agent

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

Block 15 - Sticky Note — Tools

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

Block 16 - Sticky Note — Reply

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

3. Summary Table

Workflow Support student questions via LINE using Gemini, Google Drive, and Slack
Complexity advanced
Nodes 16
Categories Support Chatbot, AI RAG
Author Ryo Sayama
Published 29 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14427/14427.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 Support student questions via LINE using Gemini, Google Drive, and Slack do?

Who is this for This workflow is built for tutoring schools, cram schools, and independent teachers who want to offer students 24/7 Q&A support via LINE — Japan's most widely used messaging app. No...

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 RAG use case.