mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-29 16:14:46 +00:00
355 lines
7.4 KiB
JSON
355 lines
7.4 KiB
JSON
|
|
{
|
||
|
|
"name": "Return Ticket Assignment",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"content": "Automated workflow: Return Ticket Assignment",
|
||
|
|
"height": 530,
|
||
|
|
"width": 1100,
|
||
|
|
"color": 5
|
||
|
|
},
|
||
|
|
"id": "cbf21ee8-16ca-407f-a884-b0526e4a2eb1",
|
||
|
|
"name": "Sticky Note",
|
||
|
|
"type": "n8n-nodes-base.stickyNote",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-480,
|
||
|
|
-240
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"httpMethod": "POST",
|
||
|
|
"path": "return-ticket-assignment"
|
||
|
|
},
|
||
|
|
"id": "7c5bb0f6-8671-4667-836c-1500b9ce84fc",
|
||
|
|
"name": "Webhook Trigger",
|
||
|
|
"type": "n8n-nodes-base.webhook",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-300,
|
||
|
|
0
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"chunkSize": 400,
|
||
|
|
"chunkOverlap": 40
|
||
|
|
},
|
||
|
|
"id": "0de0f19b-17ba-486a-a671-12112ba4de71",
|
||
|
|
"name": "Text Splitter",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-130,
|
||
|
|
0
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"model": "embed-english-v3.0",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"id": "ab8bfdd4-5f61-41a9-bed3-ffdf8f5d5db1",
|
||
|
|
"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": "return_ticket_assignment"
|
||
|
|
},
|
||
|
|
"id": "368b46e7-74fe-416b-9777-16cf44229b82",
|
||
|
|
"name": "Supabase Insert",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
270,
|
||
|
|
0
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"supabaseApi": {
|
||
|
|
"id": "SUPABASE_API",
|
||
|
|
"name": "Supabase account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"indexName": "return_ticket_assignment"
|
||
|
|
},
|
||
|
|
"id": "a8bd3df3-542b-45cd-b8f0-ec90890e6fec",
|
||
|
|
"name": "Supabase Query",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
270,
|
||
|
|
-180
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"supabaseApi": {
|
||
|
|
"id": "SUPABASE_API",
|
||
|
|
"name": "Supabase account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"name": "Supabase",
|
||
|
|
"description": "Vector context"
|
||
|
|
},
|
||
|
|
"id": "aaacc9b7-0890-45a6-8fed-5536818481e1",
|
||
|
|
"name": "Vector Tool",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
450,
|
||
|
|
-180
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {},
|
||
|
|
"id": "ec45d993-1d63-4f02-87b6-69463dad4993",
|
||
|
|
"name": "Window Memory",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
||
|
|
"typeVersion": 1.3,
|
||
|
|
"position": [
|
||
|
|
450,
|
||
|
|
-40
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"id": "0a9ff85c-45c7-444d-a5a3-746727f1ca74",
|
||
|
|
"name": "Chat Model",
|
||
|
|
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
450,
|
||
|
|
-340
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"openAiApi": {
|
||
|
|
"id": "OPENAI_API",
|
||
|
|
"name": "OpenAI"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"promptType": "define",
|
||
|
|
"text": "Process the following data for task 'Return Ticket Assignment':\n\n{{ $json }}",
|
||
|
|
"options": {
|
||
|
|
"systemMessage": "You are an assistant for Return Ticket Assignment"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"id": "f00a1845-2a8f-4e61-859b-dfd99c63fa83",
|
||
|
|
"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": "Return Ticket Assignment"
|
||
|
|
},
|
||
|
|
"sheetName": {
|
||
|
|
"__rl": true,
|
||
|
|
"value": "Log",
|
||
|
|
"mode": "list",
|
||
|
|
"cachedResultName": "Log"
|
||
|
|
},
|
||
|
|
"columns": {
|
||
|
|
"mappingMode": "defineBelow",
|
||
|
|
"value": {
|
||
|
|
"Status": "={{$json[\"RAG Agent\"].text}}"
|
||
|
|
},
|
||
|
|
"schema": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"id": "e9883d8f-0e72-4eeb-b27b-e337525028e4",
|
||
|
|
"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": "Return Ticket Assignment error: {$json.error.message}"
|
||
|
|
},
|
||
|
|
"id": "26cf514c-271c-48ca-aa4d-07b5ce29bbdf",
|
||
|
|
"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": "Supabase Insert",
|
||
|
|
"type": "ai_textSplitter",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Embeddings": {
|
||
|
|
"ai_embedding": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Supabase Insert",
|
||
|
|
"type": "ai_embedding",
|
||
|
|
"index": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"node": "Supabase Query",
|
||
|
|
"type": "ai_embedding",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Supabase Insert": {
|
||
|
|
"ai_document": [
|
||
|
|
[]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Supabase 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
|
||
|
|
}
|