mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-17 15:36:52 +00:00
299 lines
5.9 KiB
JSON
299 lines
5.9 KiB
JSON
{
|
|
"name": "Edge Device Log Compressor",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"content": "## Edge Device Log Compressor",
|
|
"height": 520,
|
|
"width": 1100
|
|
},
|
|
"id": "21a7ee40-e9a9-4f5d-a642-a4ca0bcd2173",
|
|
"name": "Sticky",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-500,
|
|
-250
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "edge_device_log_compressor"
|
|
},
|
|
"id": "71b01e81-30c5-41a2-ade1-17d6f5d801ac",
|
|
"name": "Webhook",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-300,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"chunkSize": 400,
|
|
"chunkOverlap": 40
|
|
},
|
|
"id": "fb59524e-9794-4ce5-9344-48f41f93791f",
|
|
"name": "Splitter",
|
|
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-100,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"model": "default"
|
|
},
|
|
"id": "6bc51683-3627-43ba-b92d-80f431f18471",
|
|
"name": "Embeddings",
|
|
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"cohereApi": {
|
|
"id": "COHERE_API",
|
|
"name": "Cohere"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "insert",
|
|
"indexName": "edge_device_log_compressor"
|
|
},
|
|
"id": "8c1ef0c2-1c1a-4dfb-a108-191146a74718",
|
|
"name": "Insert",
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreRedis",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"redisApi": {
|
|
"id": "REDIS_API",
|
|
"name": "Redis account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"indexName": "edge_device_log_compressor"
|
|
},
|
|
"id": "0ebd5f21-b97f-4f2e-aefc-8b5bbe80f2b9",
|
|
"name": "Query",
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreRedis",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
-180
|
|
],
|
|
"credentials": {
|
|
"redisApi": {
|
|
"id": "REDIS_API",
|
|
"name": "Redis account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"name": "Redis"
|
|
},
|
|
"id": "1fd3ed50-a888-40db-a2f7-1e7f3969ed11",
|
|
"name": "Tool",
|
|
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
480,
|
|
-180
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "dca087fe-c0c8-49d6-a6ba-cac29c1a705b",
|
|
"name": "Memory",
|
|
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
|
"typeVersion": 1.3,
|
|
"position": [
|
|
480,
|
|
-40
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "7b812666-e822-4f6e-9096-fe03376736a7",
|
|
"name": "Chat",
|
|
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
480,
|
|
-340
|
|
],
|
|
"credentials": {
|
|
"anthropicApi": {
|
|
"id": "ANTHROPIC_API",
|
|
"name": "Anthropic"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"promptType": "define",
|
|
"text": "={{ $json }}"
|
|
},
|
|
"id": "160f7edf-c21b-4e16-9ece-288aed8f04f1",
|
|
"name": "Agent",
|
|
"type": "@n8n/n8n-nodes-langchain.agent",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
760,
|
|
-40
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "append",
|
|
"documentId": "SHEET_ID",
|
|
"sheetName": "Log"
|
|
},
|
|
"id": "77e495a4-073e-4594-b624-cedd0cf335e4",
|
|
"name": "Sheet",
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4,
|
|
"position": [
|
|
960,
|
|
-40
|
|
],
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "SHEETS_API",
|
|
"name": "Sheets"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"Webhook": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Splitter",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Memory",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Splitter": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Embeddings",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
],
|
|
"ai_textSplitter": [
|
|
[
|
|
{
|
|
"node": "Insert",
|
|
"type": "ai_textSplitter",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Embeddings": {
|
|
"ai_embedding": [
|
|
[
|
|
{
|
|
"node": "Insert",
|
|
"type": "ai_embedding",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Query",
|
|
"type": "ai_embedding",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Insert": {
|
|
"ai_document": [
|
|
[]
|
|
]
|
|
},
|
|
"Query": {
|
|
"ai_vectorStore": [
|
|
[
|
|
{
|
|
"node": "Tool",
|
|
"type": "ai_vectorStore",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Tool": {
|
|
"ai_tool": [
|
|
[
|
|
{
|
|
"node": "Agent",
|
|
"type": "ai_tool",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Memory": {
|
|
"ai_memory": [
|
|
[
|
|
{
|
|
"node": "Agent",
|
|
"type": "ai_memory",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Chat": {
|
|
"ai_languageModel": [
|
|
[
|
|
{
|
|
"node": "Agent",
|
|
"type": "ai_languageModel",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Agent": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
}
|
|
} |