mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-29 16:14:46 +00:00
353 lines
7.3 KiB
JSON
353 lines
7.3 KiB
JSON
|
|
{
|
||
|
|
"name": "Summarize Customer Emails",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"content": "Placeholder for Summarize Customer Emails",
|
||
|
|
"height": 530,
|
||
|
|
"width": 1100,
|
||
|
|
"color": 5
|
||
|
|
},
|
||
|
|
"id": "94ad1eec-70e2-4db2-b80b-385e07a22f66",
|
||
|
|
"name": "Sticky Note",
|
||
|
|
"type": "n8n-nodes-base.stickyNote",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-480,
|
||
|
|
-240
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"httpMethod": "POST",
|
||
|
|
"path": "summarize-customer-emails"
|
||
|
|
},
|
||
|
|
"id": "be284d5c-5194-4e36-8b98-92f89a0b69e7",
|
||
|
|
"name": "Webhook Trigger",
|
||
|
|
"type": "n8n-nodes-base.webhook",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-300,
|
||
|
|
0
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"chunkSize": 400,
|
||
|
|
"chunkOverlap": 40
|
||
|
|
},
|
||
|
|
"id": "e74ee421-b363-4e81-9878-d358db8b7f91",
|
||
|
|
"name": "Text Splitter",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-130,
|
||
|
|
0
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"model": "embed-english-v3.0",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"id": "c6fa5ebc-8de0-422e-af77-32f485e41649",
|
||
|
|
"name": "Embeddings",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
70,
|
||
|
|
0
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"cohereApi": {
|
||
|
|
"id": "COHERE_API",
|
||
|
|
"name": "Cohere"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"mode": "insert",
|
||
|
|
"options": {},
|
||
|
|
"indexName": "summarize_customer_emails"
|
||
|
|
},
|
||
|
|
"id": "316539a7-288b-492f-8f01-e326e9aa6ac5",
|
||
|
|
"name": "Weaviate Insert",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
270,
|
||
|
|
0
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"weaviateApi": {
|
||
|
|
"id": "WEAVIATE_API",
|
||
|
|
"name": "Weaviate account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"indexName": "summarize_customer_emails"
|
||
|
|
},
|
||
|
|
"id": "f9073360-07bb-4a7e-924e-6f4fcec030d7",
|
||
|
|
"name": "Weaviate Query",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
270,
|
||
|
|
-180
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"weaviateApi": {
|
||
|
|
"id": "WEAVIATE_API",
|
||
|
|
"name": "Weaviate account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"name": "Weaviate",
|
||
|
|
"description": "Vector context"
|
||
|
|
},
|
||
|
|
"id": "45a669cd-6731-4c59-b3be-8e53b00d85a7",
|
||
|
|
"name": "Vector Tool",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
450,
|
||
|
|
-180
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {},
|
||
|
|
"id": "643506d8-f0d8-4565-b90f-26fb9de64cfe",
|
||
|
|
"name": "Window Memory",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
||
|
|
"typeVersion": 1.3,
|
||
|
|
"position": [
|
||
|
|
450,
|
||
|
|
-40
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"id": "34a740ac-8797-43e1-952a-cf5548b7baf8",
|
||
|
|
"name": "Chat Model",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
450,
|
||
|
|
-340
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"anthropicApi": {
|
||
|
|
"id": "ANTHROPIC_API",
|
||
|
|
"name": "Anthropic"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"promptType": "define",
|
||
|
|
"text": "Handle data",
|
||
|
|
"options": {
|
||
|
|
"systemMessage": "You are an assistant for Summarize Customer Emails"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"id": "383e0a40-ddb2-4cf0-9ecb-01fa21c82ae3",
|
||
|
|
"name": "RAG Agent",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.agent",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
720,
|
||
|
|
-40
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"operation": "append",
|
||
|
|
"documentId": {
|
||
|
|
"__rl": true,
|
||
|
|
"value": "SHEET_ID",
|
||
|
|
"mode": "list",
|
||
|
|
"cachedResultName": "Summarize Customer Emails"
|
||
|
|
},
|
||
|
|
"sheetName": {
|
||
|
|
"__rl": true,
|
||
|
|
"value": "Log",
|
||
|
|
"mode": "list",
|
||
|
|
"cachedResultName": "Log"
|
||
|
|
},
|
||
|
|
"columns": {
|
||
|
|
"mappingMode": "defineBelow",
|
||
|
|
"value": "Status",
|
||
|
|
"schema": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"id": "0c486ca7-802a-4769-9164-8206e2029d1d",
|
||
|
|
"name": "Append Sheet",
|
||
|
|
"type": "n8n-nodes-base.googleSheets",
|
||
|
|
"typeVersion": 4,
|
||
|
|
"position": [
|
||
|
|
930,
|
||
|
|
-40
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"googleSheetsOAuth2Api": {
|
||
|
|
"id": "SHEETS_API",
|
||
|
|
"name": "Google Sheets account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"channel": "#alerts",
|
||
|
|
"text": "Summarize Customer Emails error: {$json.error.message}"
|
||
|
|
},
|
||
|
|
"id": "9dc4dcc0-580e-44b3-ac10-f97b173ae1c0",
|
||
|
|
"name": "Slack Alert",
|
||
|
|
"type": "n8n-nodes-base.slack",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
930,
|
||
|
|
120
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"slackApi": {
|
||
|
|
"id": "SLACK_API",
|
||
|
|
"name": "Slack"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"connections": {
|
||
|
|
"Webhook Trigger": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Text Splitter",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"node": "Window Memory",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Text Splitter": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Embeddings",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"ai_textSplitter": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Weaviate Insert",
|
||
|
|
"type": "ai_textSplitter",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Embeddings": {
|
||
|
|
"ai_embedding": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Weaviate Insert",
|
||
|
|
"type": "ai_embedding",
|
||
|
|
"index": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"node": "Weaviate Query",
|
||
|
|
"type": "ai_embedding",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Weaviate Insert": {
|
||
|
|
"ai_document": [
|
||
|
|
[]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Weaviate Query": {
|
||
|
|
"ai_vectorStore": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Vector Tool",
|
||
|
|
"type": "ai_vectorStore",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Vector Tool": {
|
||
|
|
"ai_tool": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "RAG Agent",
|
||
|
|
"type": "ai_tool",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Window Memory": {
|
||
|
|
"ai_memory": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "RAG Agent",
|
||
|
|
"type": "ai_memory",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Chat Model": {
|
||
|
|
"ai_languageModel": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "RAG Agent",
|
||
|
|
"type": "ai_languageModel",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"RAG Agent": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Append Sheet",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"onError": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Slack Alert",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"settings": {
|
||
|
|
"executionOrder": "v1"
|
||
|
|
},
|
||
|
|
"triggerCount": 1
|
||
|
|
}
|