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

353 lines
7.3 KiB
JSON

{
"name": "Unpaid Invoice Reminder",
"nodes": [
{
"parameters": {
"content": "Placeholder for Unpaid Invoice Reminder",
"height": 530,
"width": 1100,
"color": 5
},
"id": "38637b48-7d7d-4c0d-ae2d-7cb9049435f0",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-480,
-240
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "unpaid-invoice-reminder"
},
"id": "c105161c-2c3f-4167-859c-63a03f8e2dfc",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-300,
0
]
},
{
"parameters": {
"chunkSize": 400,
"chunkOverlap": 40
},
"id": "2089eb99-b5f6-4c05-aff4-d9542c42657f",
"name": "Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
"typeVersion": 1,
"position": [
-130,
0
]
},
{
"parameters": {
"model": "embed-english-v3.0",
"options": {}
},
"id": "c5937246-c89c-4972-965d-4e8896b02679",
"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": "unpaid_invoice_reminder"
},
"id": "d64450ce-5760-4160-9074-580eb285342c",
"name": "Weaviate Insert",
"type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate",
"typeVersion": 1,
"position": [
270,
0
],
"credentials": {
"weaviateApi": {
"id": "WEAVIATE_API",
"name": "Weaviate account"
}
}
},
{
"parameters": {
"indexName": "unpaid_invoice_reminder"
},
"id": "0c5c8d79-8348-41d6-bf34-45ea812fa19e",
"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": "6c05df42-540f-410e-a3ac-938d6babf6b6",
"name": "Vector Tool",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"typeVersion": 1,
"position": [
450,
-180
]
},
{
"parameters": {},
"id": "238d800d-1c62-4d7b-bf8e-a58985c7365a",
"name": "Window Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
450,
-40
]
},
{
"parameters": {
"options": {}
},
"id": "5461d55e-4235-45fd-b392-7abdfa189fac",
"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 Unpaid Invoice Reminder"
}
},
"id": "86a7198b-5a78-4801-9e4e-70d8a69856fe",
"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": "Unpaid Invoice Reminder"
},
"sheetName": {
"__rl": true,
"value": "Log",
"mode": "list",
"cachedResultName": "Log"
},
"columns": {
"mappingMode": "defineBelow",
"value": "Status",
"schema": []
}
},
"id": "dc0da3ae-a80c-4d70-afbc-d48094d6a80c",
"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": "Unpaid Invoice Reminder error: {$json.error.message}"
},
"id": "00c44887-0061-4fc1-afe3-21a150cb4c04",
"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
}