{
"category": "HARM_CATEGORY_HATE_SPEECH"
}
]
}
}
},
"id": "e90b31b1-0532-46c8-b346-6650110d980b",
"name": "Google Gemini Chat Model3",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
540,
740
],
"credentials": {
"googlePalmApi": {
"id": "fnlq6vD4eRPI1t8K",
"name": "Google Gemini(PaLM) Api account"
}
}
},
{
"parameters": {},
"id": "8596a235-075a-4655-8e74-5f63b0539a20",
"name": "Window Buffer Memory3",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
760,
820
],
"notesInFlow": true
},
{
"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": "5eb83547-ae02-44ef-9bb0-3d0378aa31b8",
"name": "Code1",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
880,
500
],
"alwaysOutputData": true,
"executeOnce": true,
"retryOnFail": true,
"notesInFlow": true
},
{
"parameters": {
"jsCode": "// This node can only generate code for data transformation tasks.\n// The provided prompt does not contain a valid task for data transformation.\n// Therefore, this node will return the input data as it is.\nreturn $input.all();\n"
},
"id": "07cd61f8-5bed-4bc6-9aef-54cd5f47e554",
"name": "AI Transform1",
"type": "n8n-nodes-base.aiTransform",
"typeVersion": 1,
"position": [
1100,
500
],
"alwaysOutputData": true,
"executeOnce": true,
"retryOnFail": true,
"notesInFlow": true
},
{
"parameters": {
"agent": "conversationalAgent",
"hasOutputParser": true,
"options": {}
},
"id": "1d0706d5-db05-4bb4-998c-d8bb7fb2f771",
"name": "AI Agent4",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
1240,
520
]
},
{
"parameters": {
"modelName": "models/gemini-1.5-flash-8b-latest",
"options": {
"maxOutputTokens": 2048,
"safetySettings": {
"values": [
{
"category": "HARM_CATEGORY_HATE_SPEECH"
}
]
}
}
},
"id": "65537885-0acc-439e-9c07-7a34b5182dcb",
"name": "Google Gemini Chat Model4",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
1280,
760
],
"credentials": {
"googlePalmApi": {
"id": "fnlq6vD4eRPI1t8K",
"name": "Google Gemini(PaLM) Api account"
}
}
},
{