n8n-free-templates/Finance_Accounting/transaction_logs_backup.json
2025-05-19 00:56:45 -05:00

353 lines
7.3 KiB
JSON

{
"name": "Transaction Logs Backup",
"nodes": [
{
"parameters": {
"content": "Placeholder for Transaction Logs Backup",
"height": 530,
"width": 1100,
"color": 5
},
"id": "9bc96e9b-a90d-4467-8844-c0d49825c7bb",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-480,
-240
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "transaction-logs-backup"
},
"id": "654ee7d9-bd77-47eb-af47-5afb9b1f3023",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "fbb3ef99-38e6-4ee3-a317-71af8cb06801",
"name": "Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-130,
0
]
},
{
"parameters": {
"model": "embed-english-v3.0",
"options": {}
},
"id": "cfb733fc-6bb8-427b-ad37-926693691ed8",
"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": "transaction_logs_backup"
},
"id": "86365712-95aa-407f-b156-877d6ee5b412",
"name": "Supabase Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
"typeVersion": 1,
"position": [
270,
0
],
"credentials": {
"supabaseApi": {
"id": "SUPABASE_API",
"name": "Supabase account"
}
}
},
{
"parameters": {
"indexName": "transaction_logs_backup"
},
"id": "a1085404-bc57-46c0-9ffb-375a66ebfb92",
"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": "1442d4f0-eefb-4beb-862a-6569b22b7ef3",
"name": "Vector Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
450,
-180
]
},
{
"parameters": {},
"id": "4d59d819-e2d1-4cfb-997a-04e6cc18b15c",
"name": "Window Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
450,
-40
]
},
{
"parameters": {
"options": {}
},
"id": "bc9f2e77-61d1-4fd1-9069-fc07906f004f",
"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": "Handle data",
"options": {
"systemMessage": "You are an assistant for Transaction Logs Backup"
}
},
"id": "94397527-356c-43da-9827-265d1e38c4d4",
"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": "Transaction Logs Backup"
},
"sheetName": {
"__rl": true,
"value": "Log",
"mode": "list",
"cachedResultName": "Log"
},
"columns": {
"mappingMode": "defineBelow",
"value": "Status",
"schema": []
}
},
"id": "015110f6-d107-4061-9de1-4f7e77248256",
"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": "Transaction Logs Backup error: {$json.error.message}"
},
"id": "22011e33-1522-40c5-b752-6e1a6b8f5372",
"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
}