Betalive Ai "name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
540,
420
],
"webhookId": "6245e2f5-5dfc-4549-b26e-3da045c8e862"
},
{
"parameters": {
"agent": "conversationalAgent",
"hasOutputParser": true,
"options": {}
},
"id": "0c2afc5a-585b-44ad-b013-ee57f962648b",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
860,
380
]
},
{
"parameters": {
"modelName": "models/gemini-1.5-flash-8b-latest",
"options": {
"maxOutputTokens": 2048,
"safetySettings": {
"values": [
{
"category": "HARM_CATEGORY_HATE_SPEECH"
}
]
}
}
},
"id": "ff89d300-ce8a-4be9-b653-6bddb56530d1",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
900,
620
],
"credentials": {
"googlePalmApi": {
"id": "fnlq6vD4eRPI1t8K",
"name": "Google Gemini(PaLM) Api account"
}
}
},
{
"parameters": {},
"id": "ca86beec-4140-41e7-b59b-c32b07d09fcc",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
1120,
700
]
},
{
"parameters": {
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.myNewField = 1;\n}\n\nreturn $input.all();"
},
"id": "56a66fd7-9a48-46b5-bbd4-89157bdcf19e",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1240,
380
],
"alwaysOutputData": true,
"executeOnce": true,
"retryOnFail": true,
"notesInFlow": true
},
{