mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-17 15:36:52 +00:00
353 lines
7.3 KiB
JSON
353 lines
7.3 KiB
JSON
{
|
|
"name": "OCR Receipts to Notion",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"content": "Placeholder for OCR Receipts to Notion",
|
|
"height": 530,
|
|
"width": 1100,
|
|
"color": 5
|
|
},
|
|
"id": "c04dfa5c-bb11-4b59-afff-6186fc96a740",
|
|
"name": "Sticky Note",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-480,
|
|
-240
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "ocr-receipts-to-notion"
|
|
},
|
|
"id": "59a9fd15-53ab-4c11-ac79-d2a41441cf2f",
|
|
"name": "Webhook Trigger",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-300,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"chunkSize": 400,
|
|
"chunkOverlap": 40
|
|
},
|
|
"id": "17092410-c43e-411d-9c9f-26e049276ae0",
|
|
"name": "Text Splitter",
|
|
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-130,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"model": "text-embedding-3-small",
|
|
"options": {}
|
|
},
|
|
"id": "60598051-e62a-4be1-8868-f5c19ea8978e",
|
|
"name": "Embeddings",
|
|
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
70,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"openAiApi": {
|
|
"id": "OPENAI_API",
|
|
"name": "OpenAI"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "insert",
|
|
"options": {},
|
|
"indexName": "ocr_receipts_to_notion"
|
|
},
|
|
"id": "4645c3ee-90cb-4320-86f3-d7c3f712a036",
|
|
"name": "Supabase Insert",
|
|
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
270,
|
|
0
|
|
],
|
|
"credentials": {
|
|
"supabaseApi": {
|
|
"id": "SUPABASE_API",
|
|
"name": "Supabase account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"indexName": "ocr_receipts_to_notion"
|
|
},
|
|
"id": "6387ad1d-32fb-4575-9dfc-dfc90d2cb25c",
|
|
"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": "fef3c58b-321a-44d2-a9ba-86a7bc58acf7",
|
|
"name": "Vector Tool",
|
|
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
450,
|
|
-180
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "7bdab29d-ad62-4e40-87e7-fd13cd2cec3e",
|
|
"name": "Window Memory",
|
|
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
|
"typeVersion": 1.3,
|
|
"position": [
|
|
450,
|
|
-40
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"id": "30f1d449-b35d-45a9-80c2-ba136b48a93e",
|
|
"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 OCR Receipts to Notion"
|
|
}
|
|
},
|
|
"id": "d5adb725-61aa-4ecd-83ed-ada1ab0f9669",
|
|
"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": "OCR Receipts to Notion"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "Log",
|
|
"mode": "list",
|
|
"cachedResultName": "Log"
|
|
},
|
|
"columns": {
|
|
"mappingMode": "defineBelow",
|
|
"value": "Status",
|
|
"schema": []
|
|
}
|
|
},
|
|
"id": "696adffa-2c85-461d-876a-dd880b9b38e3",
|
|
"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": "OCR Receipts to Notion error: {$json.error.message}"
|
|
},
|
|
"id": "efc8ed2e-3e85-4bf4-b1e8-cab2a3e2135f",
|
|
"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
|
|
} |