← All N8N workflows
AI & researchAgentCodeGoogle SheetsHTTP RequestLM Chat Google Gemini

(G) LineChatBot + Google Sheets (as a memory)

Configured with Agent, Google Sheets, HTTP Request, LM Chat Google Gemini, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWebhookWebhookAI & modelsAI AgentAgentAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiTransformEdit FieldsEdit FieldsWeb / APIHTTP RequestHTTP RequestData storeGet HistoryGoogle SheetsTransformPrepare PromptEdit FieldsData storeSave HistoryGoogle SheetsCodeSplit HistoryCode

Node categories in this workflow

  • Trigger
  • AI & models
  • Transform
  • Web / API
  • Data store
  • Code

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
WebhookTriggerWebhookSee node parameters
AI AgentAI & modelsAgentSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
Edit FieldsTransformEdit FieldsSee node parameters
HTTP RequestWeb / APIHTTP RequestPOST
Get HistoryData storeGoogle SheetsSee node parameters
Prepare PromptTransformEdit FieldsSee node parameters
Save HistoryData storeGoogle SheetsappendOrUpdate
Split HistoryCodeCodeSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googlePalmApi
  • googleSheetsOAuth2Api

Workflow notes

Sticky Note1

Prepare the data

Sticky Note2

Retrieve chat history

Sticky Note3

Give our AI previous chat history

Sticky Note4

Get input with this command. "{{ $json.Prompt }}"

Sticky Note5

Split history into small chunks (data cleaning)

Sticky Note6

Save to Google Sheets

Sticky Note7

Send it back to Line

(G) LineChatBot + Google Sheets (as a memory)

(G) LineChatBot + Google Sheets (as a memory)

Purpose and structure

This folder contains the (G) LineChatBot + Google Sheets (as a memory) workflow. Its executable nodes use agent, code, googleSheets, httpRequest, lmChatGoogleGemini, set, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Webhook

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1789_Code_Webhook_Automate_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Connect to Line Official Account's API

More in AI & research