n8n-free-templates/Manufacturing/packaging_waste_calculator.json

299 lines
5.9 KiB
JSON
Raw Normal View History

2025-05-19 01:08:15 -05:00
{
"name": "Packaging Waste Calculator",
"nodes": [
{
"parameters": {
"content": "## Packaging Waste Calculator",
"height": 520,
"width": 1100
},
"id": "88e3435d-f3fb-4c59-8d58-9b77e3be201a",
"name": "Sticky",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-500,
-250
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "packaging_waste_calculator"
},
"id": "0ad8c1ff-f8c3-4f5f-b478-520d16b80a52",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "7b704aa1-fae7-47f3-a349-69816e88955b",
"name": "Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-100,
0
]
},
{
"parameters": {
"model": "default"
},
"id": "4ea8a51d-11e1-468d-873b-49c1388dc62a",
"name": "Embeddings",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1,
"position": [
100,
0
],
"credentials": {
"openAiApi": {
"id": "OPENAI_API",
"name": "OpenAI"
}
}
},
{
"parameters": {
"mode": "insert",
"indexName": "packaging_waste_calculator"
},
"id": "c6262742-2db3-4867-a7b2-2da95e864ab6",
"name": "Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreRedis",
"typeVersion": 1,
"position": [
300,
0
],
"credentials": {
"redisApi": {
"id": "REDIS_API",
"name": "Redis account"
}
}
},
{
"parameters": {
"indexName": "packaging_waste_calculator"
},
"id": "4abcef2c-3080-43d4-b263-b851c675f519",
"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": "6a8f2151-9319-4e77-b763-2c305e569d62",
"name": "Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
480,
-180
]
},
{
"parameters": {},
"id": "0e86b5c8-3448-444e-997e-3daa84164744",
"name": "Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
480,
-40
]
},
{
"parameters": {},
"id": "4b4b54de-3c2d-494d-a5bd-0f3a6f776526",
"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": "deee5056-77f7-4e3a-919c-82f3ac955f90",
"name": "Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
760,
-40
]
},
{
"parameters": {
"operation": "append",
"documentId": "SHEET_ID",
"sheetName": "Log"
},
"id": "d474b14f-19f5-476c-b6a7-d3991067091f",
"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"
}
}