{"id": "[CENSORED]", "name": "(G) LineChatBot + Google Sheets (as a memory)", "nodes": [{"id": "[CENSORED]", "name": "Webhook", "type": "n8n-nodes-base.webhook", "position": [560, -500], "webhookId": "[CENSORED]", "parameters": {"path": "guitarpa", "options": {}, "httpMethod": "POST"}, "typeVersion": 2}, {"id": "[CENSORED]", "name": "AI Agent", "type": "@n8n/n8n-nodes-langchain.agent", "position": [460, -220], "parameters": {"text": "={{ $json.Prompt }}", "options": {"systemMessage": "=You are a helpful assistant. Your name is \"ลลิตา\". You will help me in everything I need. You will answer based on user language. You are an AI Agent operating in the Thailand time zone (Asia/Bangkok, UTC+7). Today is {{ $now }}."}, "promptType": "define", "hasOutputParser": true}, "typeVersion": 1.8}, {"id": "[CENSORED]", "name": "Google Gemini Chat Model", "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini", "position": [460, -20], "parameters": {"options": {}, "modelName": "models/gemini-2.0-flash-001"}, "credentials": {"googlePalmApi": {"id": "[CENSORED]", "name": "Guitar's Gemini ([CENSORED_EMAIL])"}}, "typeVersion": 1}, {"id": "[CENSORED]", "name": "Edit Fields", "type": "n8n-nodes-base.set", "position": [780, -500], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "[CENSORED]", "name": "body.events[0].message.text", "type": "string", "value": "={{ $('Webhook').item.json.body.events[0].message.text }}"}, {"id": "[CENSORED]", "name": "body.events[0].replyToken", "type": "string", "value": "={{ $('Webhook').item.json.body.events[0].replyToken }}"}, {"id": "[CENSORED]", "name": "body.events[0].source.userId", "type": "string", "value": "={{ $json.body.events[0].source.userId }}"}]}}, "typeVersion": 3.4}, {"id": "[CENSORED]", "name": "HTTP Request", "type": "n8n-nodes-base.httpRequest", "position": [1276, -220], "parameters": {"url": "https://api.line.me/v2/bot/message/reply", "method": "POST", "options": {}, "jsonBody": "={\n \"replyToken\": \"{{ $('Edit Fields').item.json.body.events[0].replyToken }}\",\n \"messages\": [\n {\n \"type\": \"text\",\n \"text\": \"{{ $('AI Agent').item.json.output.replaceAll('\\t', ' ').replaceAll('\\\"', '\\\\\\\"').replaceAll('\\n', '\\\\n').trim()