Build Custom AI Agent with LangChain & Gemini (Self-Hosted)
Build Custom AI Agent with LangChain & Gemini (Self-Hosted)
Manual
Medium
9
Nodes
Manual
Trigger
Medium
Complexity
7/22/2025
Added
Workflow Overview
Total Nodes
9
Node Types
5
Node Types
chat Trigger
When chat message received
1 node
lm Chat Google Gemini
Google Gemini Chat Model
1 node
sticky Note
Sticky Note, Sticky Note1, Sticky Note2, Sticky Note3, Sticky Note4
5 nodes
memory Buffer Window
Store conversation history
1 node
code
Construct & Execute LLM Prompt
1 node
Workflow JSON
8.26 KB
{
"id": "yCIEiv9QUHP8pNfR",
"meta": {
"instanceId": "f29695a436689357fd2dcb55d528b0b528d2419f53613c68c6bf909a92493614",
"templateCredsSetupCompleted": true
},
"name": "Build Custom AI Agent with LangChain & Gemini (Self-Hosted)",
"tags": [
{
"id": "7M5ZpGl3oWuorKpL",
"name": "share",
"createdAt": "2025-03-26T01:17:15.342Z",
"updatedAt": "2025-03-26T01:17:15.342Z"
}
],
"nodes": [
{
"id": "8bd5382d-f302-4e58-b377-7fc5a22ef994",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-220,
0
],
"webhookId": "b8a5d72c-4172-40e8-b429-d19c2cd6ce54",
"parameters": {
"public": true,
"options": {
"responseMode": "lastNode",
"allowedOrigins": "*",
"loadPreviousSession": "memory"
},
"initialMessages": ""
},
"typeVersion": 1.1
},
{
"id": "6ae8a247-4077-4...Showing first 1000 characters. Click "Expand" to view the full JSON.