Last active
September 24, 2026 07:10
-
-
Save kunxin-chor/2bb4b8a5735e18dde9dd7345206b823b to your computer and use it in GitHub Desktop.
Starter n8n Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": { | |
| "systemMessage": "You are helpful assistant. Use the available tools to answer the user's queries. ", | |
| "returnIntermediateSteps": false, | |
| "enableStreaming": true | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 3.1, | |
| "position": [ | |
| 112, | |
| 32 | |
| ], | |
| "id": "36036b71-592a-4897-be84-eb28b95f4475", | |
| "name": "AI Agent" | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini", | |
| "typeVersion": 1.1, | |
| "position": [ | |
| 56, | |
| 264 | |
| ], | |
| "id": "8b5db969-ebee-4e60-b68e-79ed4ff7cbc0", | |
| "name": "Google Gemini Chat Model1", | |
| "credentials": { | |
| "googlePalmApi": { | |
| "id": "YElByYFatIsvNlV2", | |
| "name": "Google Gemini(PaLM) Api account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": {}, | |
| "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", | |
| "typeVersion": 1.4, | |
| "position": [ | |
| 184, | |
| 264 | |
| ], | |
| "id": "ea208f5c-cce9-41d3-a850-640bf3d2812e", | |
| "name": "Simple Memory" | |
| }, | |
| { | |
| "parameters": { | |
| "description": "Call this tool to get the current date and time. Use this tool if the user uses a subjective date or time, such as \"today\", \"tomorrow\" or \"this month\" to get a reference date.", | |
| "jsCode": "const now = new Date();\n\nreturn JSON.stringify({\n current_datetime: now.toISOString(),\n current_timestamp: now.getTime(),\n timezone: \"UTC\"\n});" | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.toolCode", | |
| "typeVersion": 1.3, | |
| "position": [ | |
| 312, | |
| 264 | |
| ], | |
| "id": "a30e4974-fbab-40bc-bee7-f07663e7c448", | |
| "name": "Get Current Date and Time" | |
| }, | |
| { | |
| "parameters": { | |
| "message": "={{ $json.output }}\n", | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.chat", | |
| "typeVersion": 1.3, | |
| "position": [ | |
| 512, | |
| 32 | |
| ], | |
| "id": "24c613ca-8f2d-4b19-9a38-f73e3d453fb8", | |
| "name": "Chat", | |
| "webhookId": "af3b6847-6043-434d-93e2-90ae2d9de8ff" | |
| }, | |
| { | |
| "parameters": { | |
| "public": true, | |
| "options": { | |
| "responseMode": "responseNodes" | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.chatTrigger", | |
| "typeVersion": 1.4, | |
| "position": [ | |
| -176, | |
| 32 | |
| ], | |
| "id": "99c71760-f363-4a88-b297-021d6b9380b3", | |
| "name": "When chat message received", | |
| "webhookId": "839ca126-e9ad-49c5-882e-e0c868f7bd46" | |
| } | |
| ], | |
| "connections": { | |
| "AI Agent": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Chat", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Google Gemini Chat Model1": { | |
| "ai_languageModel": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_languageModel", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Simple Memory": { | |
| "ai_memory": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_memory", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Get Current Date and Time": { | |
| "ai_tool": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_tool", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "When chat message received": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "pinData": {}, | |
| "meta": { | |
| "instanceId": "068efba74d43791014e18af24f41db35d308b24a1c4e7463a7242dc358721574" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment