{ "name": "Assignment SMS Reminder", "nodes": [ { "parameters": { "content": "Automated workflow: Assignment SMS Reminder", "height": 530, "width": 1100, "color": 5 }, "id": "a7910b7c-92e9-415c-8754-fbed9c8c594f", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -480, -240 ] }, { "parameters": { "httpMethod": "POST", "path": "assignment-sms-reminder" }, "id": "cf018e3d-4c4e-4977-abc3-8b30defc78ef", "name": "Webhook Trigger", "type": "n8n-nodes-base.webhook", "typeVersion": 1, "position": [ -300, 0 ] }, { "parameters": { "chunkSize": 400, "chunkOverlap": 40 }, "id": "a701aa19-bd4f-4380-9271-2054007eade2", "name": "Text Splitter", "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", "typeVersion": 1, "position": [ -130, 0 ] }, { "parameters": { "model": "embed-english-v3.0", "options": {} }, "id": "209bfd2d-d15c-4906-aaa3-9c47c36ab605", "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": "assignment_sms_reminder" }, "id": "510ebe4d-a02e-40d9-808e-ac83d2299936", "name": "Weaviate Insert", "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", "typeVersion": 1, "position": [ 270, 0 ], "credentials": { "weaviateApi": { "id": "WEAVIATE_API", "name": "Weaviate account" } } }, { "parameters": { "indexName": "assignment_sms_reminder" }, "id": "8fa4a854-9cdf-43f0-97c6-06e491066a27", "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": "c5db775c-afc6-4b76-bacc-d592aed4008e", "name": "Vector Tool", "type": "@n8n/n8n-nodes-langchain.toolVectorStore", "typeVersion": 1, "position": [ 450, -180 ] }, { "parameters": {}, "id": "b42a0cf0-8115-4af7-8de8-68168e7399ae", "name": "Window Memory", "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", "typeVersion": 1.3, "position": [ 450, -40 ] }, { "parameters": { "options": {} }, "id": "abab42b5-179b-4929-a876-4664c2fb3869", "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 'Assignment SMS Reminder':\n\n{{ $json }}", "options": { "systemMessage": "You are an assistant for Assignment SMS Reminder" } }, "id": "4773cc72-a7f7-49b5-907b-40c5f726dec9", "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": "Assignment SMS Reminder" }, "sheetName": { "__rl": true, "value": "Log", "mode": "list", "cachedResultName": "Log" }, "columns": { "mappingMode": "defineBelow", "value": { "Status": "={{$json[\"RAG Agent\"].text}}" }, "schema": [] } }, "id": "b3084b31-648f-4736-8d1b-7ee0de4ebf10", "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": "Assignment SMS Reminder error: {$json.error.message}" }, "id": "c1059c41-d2d0-47fa-a146-95481e40850f", "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 }