diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..68586da Binary files /dev/null and b/.DS_Store differ diff --git a/AI_ML/README.md b/AI_ML/README.md new file mode 100644 index 0000000..b30fefc --- /dev/null +++ b/AI_ML/README.md @@ -0,0 +1,12 @@ +# AI_ML Templates + +- **summarize_customer_emails.json** – Uses Anthropic Claude, Cohere Embeddings +- **daily_content_ideas.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector +- **translate_form_submissions.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **resume_screening.json** – Uses Cohere Embeddings, OpenAI Chat +- **auto-tag_blog_posts.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **customer_sentiment_analysis.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **image_captioning.json** – Uses Anthropic Claude, OpenAI Embeddings +- **ticket_urgency_classification.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **product_description_generator.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **voice_note_transcription.json** – Uses Cohere Embeddings, OpenAI Chat \ No newline at end of file diff --git a/AI_ML/auto-tag_blog_posts.json b/AI_ML/auto-tag_blog_posts.json new file mode 100644 index 0000000..30cbbd8 --- /dev/null +++ b/AI_ML/auto-tag_blog_posts.json @@ -0,0 +1,353 @@ +{ + "name": "Auto-tag Blog Posts", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Auto-tag Blog Posts", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "84e22aae-0a0b-4bc9-94d9-aec2d9a07826", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "auto-tag-blog-posts" + }, + "id": "e83f725c-c083-4c9d-9623-d9c092bbad2a", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "95ca42a5-e984-4245-b770-ef64b6495ec9", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "e515e8bb-c532-4428-a593-29f5d71ba000", + "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": "auto-tag_blog_posts" + }, + "id": "1aa98ca1-c389-4a1a-8f0c-58fcc64e08b4", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "auto-tag_blog_posts" + }, + "id": "53510366-3cdd-40ec-a22b-d344bbbe434f", + "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": "1693f5ae-6022-4fea-8e94-ebd59d4cbd31", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "fff55186-78c9-4196-829c-0416c8c7d547", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "ddbd622f-6ec7-499d-a48d-613db67e5f2b", + "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 Auto-tag Blog Posts" + } + }, + "id": "b12856e2-bed9-41ff-bdbd-4b4a2fd98aa2", + "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": "Auto-tag Blog Posts" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "a8f14a3c-3865-4097-b1ee-0265ac6ffa47", + "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": "Auto-tag Blog Posts error: {$json.error.message}" + }, + "id": "54b60e92-3672-4042-94c7-df1b6d28c221", + "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 +} \ No newline at end of file diff --git a/AI_ML/customer_sentiment_analysis.json b/AI_ML/customer_sentiment_analysis.json new file mode 100644 index 0000000..7c9887e --- /dev/null +++ b/AI_ML/customer_sentiment_analysis.json @@ -0,0 +1,363 @@ +{ + "name": "Customer Sentiment Analysis", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Customer Sentiment Analysis", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9432cbf3-839c-415b-bbad-164cacd8f761", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "customer-sentiment-analysis" + }, + "id": "deec2c7d-52f6-41d1-b6c9-f2f68cc2db9e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "c999cc42-bc54-402b-8a6d-e8c924c27332", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "9c230e35-adf4-49a7-a98e-c13dfa1c4e3d", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "customer_sentiment_analysis", + "mode": "list", + "cachedResultName": "customer_sentiment_analysis" + } + }, + "id": "4b1cbbe7-ae91-4cbc-9b7d-106e8def867f", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "customer_sentiment_analysis", + "mode": "list", + "cachedResultName": "customer_sentiment_analysis" + } + }, + "id": "2051fbc6-2275-4529-bcc4-7ef84d05beed", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "24603a00-5522-415e-b4c8-d80889678355", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "e22fb094-3cc2-492f-95f7-608b93e89409", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "3116ece9-b801-47f1-82fb-192574cedea1", + "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 Customer Sentiment Analysis" + } + }, + "id": "f94f99f3-4f7b-49d4-8432-b156ca31d831", + "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": "Customer Sentiment Analysis" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "50ab5f32-d0a4-49e3-a3e3-a896b94ec7a0", + "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": "Customer Sentiment Analysis error: {$json.error.message}" + }, + "id": "59c37726-aac9-49be-a899-ed4dc6563e33", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/AI_ML/daily_content_ideas.json b/AI_ML/daily_content_ideas.json new file mode 100644 index 0000000..5529331 --- /dev/null +++ b/AI_ML/daily_content_ideas.json @@ -0,0 +1,353 @@ +{ + "name": "Daily Content Ideas", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Daily Content Ideas", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "ca5f06fc-6dec-4477-bce5-e79c88a25e7d", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "daily-content-ideas" + }, + "id": "07884fea-1b21-4c07-9cc1-0f8c9546154d", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "cddbaad6-33bf-4933-8a99-018c63325ad8", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "ba875ce2-e150-47e1-8036-72573e1e142d", + "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": "daily_content_ideas" + }, + "id": "5b7779c8-04ec-41ab-abf5-4f2a2d8405fd", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "daily_content_ideas" + }, + "id": "9a6dab96-b119-484f-aa5f-6a50b470fecd", + "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": "9c83b97b-8ffc-4739-b045-27c982cae0dd", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "c38b7694-050b-4e8d-97cd-876b30fcccab", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "1b3d208d-2707-4bda-a5da-de6b5b52e811", + "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 Daily Content Ideas" + } + }, + "id": "f10af89a-34ee-416a-9e15-b4e44eb9a6ba", + "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": "Daily Content Ideas" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "05153aa5-3e62-4cde-a050-7bfba1ac9895", + "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": "Daily Content Ideas error: {$json.error.message}" + }, + "id": "4838e13d-2475-4bb1-9c74-bde4b5d4123a", + "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 +} \ No newline at end of file diff --git a/AI_ML/image_captioning.json b/AI_ML/image_captioning.json new file mode 100644 index 0000000..151cd9d --- /dev/null +++ b/AI_ML/image_captioning.json @@ -0,0 +1,353 @@ +{ + "name": "Image Captioning", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Image Captioning", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9a206202-bc5e-4588-9adb-e4ca5d48e1a6", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "image-captioning" + }, + "id": "bff18d10-12e1-45f2-b39a-df5d164fd3d4", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "3076023c-1a26-420d-864b-e14f5091d527", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "6acf18f8-c2ba-4df5-a60d-75c172c5b08b", + "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": "image_captioning" + }, + "id": "8ec51a4a-d020-4361-9060-bca80e88dd06", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "image_captioning" + }, + "id": "1a627070-4508-484d-b764-17d209de934f", + "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": "4bcad010-f1e4-4ac2-a626-25977d81b7ab", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f74b32f7-9f59-47bd-b835-cfa567c04ec3", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "fe00cb21-88c5-4c7a-b187-54db43d4de59", + "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 Image Captioning" + } + }, + "id": "7b519ec6-fe9e-4b09-a9bf-57d09c9291b1", + "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": "Image Captioning" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "cb192434-f133-499e-a037-bba25d80497b", + "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": "Image Captioning error: {$json.error.message}" + }, + "id": "d5093cf2-db1e-40c7-8d41-819f2b68d2fc", + "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 +} \ No newline at end of file diff --git a/AI_ML/product_description_generator.json b/AI_ML/product_description_generator.json new file mode 100644 index 0000000..8270ea0 --- /dev/null +++ b/AI_ML/product_description_generator.json @@ -0,0 +1,363 @@ +{ + "name": "Product Description Generator", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Product Description Generator", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "aba83af6-dd68-4125-bd8b-55630f59b564", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "product-description-generator" + }, + "id": "f851373d-dd54-4bce-972a-1398968ca069", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "d1531f49-ac87-48e1-a688-f69bb10a73e6", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "0ad45ad5-8974-40f1-86f5-59421210ff3f", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "product_description_generator", + "mode": "list", + "cachedResultName": "product_description_generator" + } + }, + "id": "31f8ea33-08ab-48bf-9ba8-128fcca18cd0", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "product_description_generator", + "mode": "list", + "cachedResultName": "product_description_generator" + } + }, + "id": "08367e69-f4a4-4356-8e68-177579d2c37f", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "e9fb324e-9a9f-4bc2-a3d7-19750231e9ca", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "6837df12-dca6-471e-854b-f5c0453740b7", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "70715d0b-bbab-4c95-9f02-a37039e9fdd9", + "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 Product Description Generator" + } + }, + "id": "568f37df-7293-45bc-8f19-868573918e67", + "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": "Product Description Generator" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "f40e613e-385f-4b63-b310-de69a545f867", + "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": "Product Description Generator error: {$json.error.message}" + }, + "id": "7e503aa0-7396-4f92-bf33-04189d66dee2", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/AI_ML/resume_screening.json b/AI_ML/resume_screening.json new file mode 100644 index 0000000..2f14022 --- /dev/null +++ b/AI_ML/resume_screening.json @@ -0,0 +1,353 @@ +{ + "name": "Resume Screening", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Resume Screening", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "455a0de7-e191-4f27-984b-0b1a975ac992", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "resume-screening" + }, + "id": "fa622ed4-da7a-405b-9693-61cd99da403c", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "8bdf1d37-3aad-47ee-a8be-2be289d836cd", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "641c4206-18f5-4e08-86f3-9c26a0402c7b", + "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": "resume_screening" + }, + "id": "52b412d1-1506-4155-955c-8bd5953d6f09", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "resume_screening" + }, + "id": "445aad1e-d096-48a7-87d7-b39db9996de7", + "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": "cff6fd8b-a78f-42e0-a09e-74b977034192", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ac885270-4c08-4a07-99f4-b86bac40185c", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a6391bfe-14c5-4cc7-a761-7458a767a9bc", + "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 Resume Screening" + } + }, + "id": "90eb9ea4-b1b8-4ed3-8096-7c9eb9bcb671", + "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": "Resume Screening" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "c0268a1a-0980-428a-8c1a-dc65e55e1431", + "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": "Resume Screening error: {$json.error.message}" + }, + "id": "a8a14ee5-f2ab-4032-bd5b-51205733be67", + "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 +} \ No newline at end of file diff --git a/AI_ML/summarize_customer_emails.json b/AI_ML/summarize_customer_emails.json new file mode 100644 index 0000000..2a6875f --- /dev/null +++ b/AI_ML/summarize_customer_emails.json @@ -0,0 +1,353 @@ +{ + "name": "Summarize Customer Emails", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Summarize Customer Emails", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "94ad1eec-70e2-4db2-b80b-385e07a22f66", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "summarize-customer-emails" + }, + "id": "be284d5c-5194-4e36-8b98-92f89a0b69e7", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "e74ee421-b363-4e81-9878-d358db8b7f91", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "c6fa5ebc-8de0-422e-af77-32f485e41649", + "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": "summarize_customer_emails" + }, + "id": "316539a7-288b-492f-8f01-e326e9aa6ac5", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "summarize_customer_emails" + }, + "id": "f9073360-07bb-4a7e-924e-6f4fcec030d7", + "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": "45a669cd-6731-4c59-b3be-8e53b00d85a7", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "643506d8-f0d8-4565-b90f-26fb9de64cfe", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "34a740ac-8797-43e1-952a-cf5548b7baf8", + "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 Summarize Customer Emails" + } + }, + "id": "383e0a40-ddb2-4cf0-9ecb-01fa21c82ae3", + "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": "Summarize Customer Emails" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "0c486ca7-802a-4769-9164-8206e2029d1d", + "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": "Summarize Customer Emails error: {$json.error.message}" + }, + "id": "9dc4dcc0-580e-44b3-ac10-f97b173ae1c0", + "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 +} \ No newline at end of file diff --git a/AI_ML/ticket_urgency_classification.json b/AI_ML/ticket_urgency_classification.json new file mode 100644 index 0000000..c700b10 --- /dev/null +++ b/AI_ML/ticket_urgency_classification.json @@ -0,0 +1,363 @@ +{ + "name": "Ticket Urgency Classification", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Ticket Urgency Classification", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "38027751-0f0a-4d20-a473-d97aff8830e6", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "ticket-urgency-classification" + }, + "id": "a6a7d7a0-659c-4dc7-b9ce-2ff29fde896a", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "895175a6-a438-49f8-be28-5a542c2d2c94", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "9f624f5d-8120-46bf-9767-38d532b83000", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "ticket_urgency_classification", + "mode": "list", + "cachedResultName": "ticket_urgency_classification" + } + }, + "id": "fa749b3b-94f3-4ee4-ad85-2318a43d59bd", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "ticket_urgency_classification", + "mode": "list", + "cachedResultName": "ticket_urgency_classification" + } + }, + "id": "3e18cd1c-1148-4e2a-ae6a-def03f79d9de", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "92e69e5d-1b9c-4af3-b433-457fe4faff0b", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f0a2f5b6-017a-4db6-b8d1-ba21801e0e33", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a5183aa7-be9c-4a86-9043-a7527ba88f1b", + "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 Ticket Urgency Classification" + } + }, + "id": "6efa4835-772a-4e03-b1c6-6e421be8204d", + "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": "Ticket Urgency Classification" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "fb391e22-5723-4584-8c4d-be5f57c434dd", + "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": "Ticket Urgency Classification error: {$json.error.message}" + }, + "id": "eed1960f-7cee-4a70-b3e5-726c1655352e", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/AI_ML/translate_form_submissions.json b/AI_ML/translate_form_submissions.json new file mode 100644 index 0000000..e8b64ec --- /dev/null +++ b/AI_ML/translate_form_submissions.json @@ -0,0 +1,353 @@ +{ + "name": "Translate Form Submissions", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Translate Form Submissions", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "98af88ae-c2f2-41c7-a99f-9cfbdad8844e", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "translate-form-submissions" + }, + "id": "2816edde-baf3-4f2b-bcd2-a557bbd2e10a", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "8dce3eb3-ad7c-4ec9-8708-3f7b1710c2f8", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "eb1916e6-5f10-4275-b733-70d61eec092c", + "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": "translate_form_submissions" + }, + "id": "b0b4e4a9-0cbd-4c46-9ef0-e1045662f9a2", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "translate_form_submissions" + }, + "id": "b69c0fb8-ee02-4b55-bbac-0c4ecfcf4eb1", + "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": "9cca05b4-8a97-40aa-bc15-9b14af78573a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "2094421c-c3dc-4ad6-a6b7-a9087968478a", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "9c862dea-b290-472f-9439-7aa16fc4b6fa", + "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 Translate Form Submissions" + } + }, + "id": "ab57b64b-8b33-49cb-b928-f8cff0036a17", + "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": "Translate Form Submissions" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "c855c2fe-e653-440a-9b00-76a40e5ecb4e", + "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": "Translate Form Submissions error: {$json.error.message}" + }, + "id": "543f94c6-7265-4aa5-83e7-de11085aa10d", + "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 +} \ No newline at end of file diff --git a/AI_ML/voice_note_transcription.json b/AI_ML/voice_note_transcription.json new file mode 100644 index 0000000..8463c18 --- /dev/null +++ b/AI_ML/voice_note_transcription.json @@ -0,0 +1,353 @@ +{ + "name": "Voice Note Transcription", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Voice Note Transcription", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "69424bcd-c308-40f9-8d9a-9477dd3c0ecb", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "voice-note-transcription" + }, + "id": "6752cb1f-3bcc-4bff-bbb5-2e825c981c5d", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "5d2b0243-fe4d-47b8-877d-dee5d0ad6eed", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "eb8d139e-8e63-4102-b081-7b1aa4f2d579", + "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": "voice_note_transcription" + }, + "id": "a2f1a360-1043-483b-bded-c2ef7dcb1b8c", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "voice_note_transcription" + }, + "id": "40d491f7-15e2-4b49-b2a0-2b1c7c696256", + "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": "36b1328c-786c-4df4-bbe7-8f8fe51d92e4", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "2f81164b-02d8-4b4e-98cf-bd5777e116c1", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "d7840e39-4fd8-4447-bbee-2534d892ed33", + "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 Voice Note Transcription" + } + }, + "id": "3b22937f-1cc4-4352-b413-489fa5cbdcb3", + "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": "Voice Note Transcription" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "e6564402-60d5-4c7b-8490-adf593207f08", + "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": "Voice Note Transcription error: {$json.error.message}" + }, + "id": "4072a697-14c3-48c0-81ef-c9553af1d4d8", + "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 +} \ No newline at end of file diff --git a/Creative_Content/README.md b/Creative_Content/README.md new file mode 100644 index 0000000..d34819a --- /dev/null +++ b/Creative_Content/README.md @@ -0,0 +1,3 @@ +# Creative_Content Templates + +- **youtube_transcript_to_blog.json** – Uses Anthropic Claude, OpenAI Embeddings, Pinecone \ No newline at end of file diff --git a/Creative_Content/youtube_transcript_to_blog.json b/Creative_Content/youtube_transcript_to_blog.json new file mode 100644 index 0000000..6ad5da2 --- /dev/null +++ b/Creative_Content/youtube_transcript_to_blog.json @@ -0,0 +1,365 @@ +{ + "name": "YouTube Transcript to Blog", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: YouTube Transcript to Blog", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "bd0e0586-b4e8-4da9-8d93-57602a5219de", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "youtube-transcript-to-blog" + }, + "id": "fe1b58d8-2bdc-4ce8-bcf8-95c9b0b6477d", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "ceba2716-6fe1-48de-9bad-512e27bac9c1", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "20c8a22e-bf48-44b4-ac45-74b80231e773", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "youtube_transcript_to_blog", + "mode": "list", + "cachedResultName": "youtube_transcript_to_blog" + } + }, + "id": "d5bd2477-053c-4954-b46a-607df0a23935", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "youtube_transcript_to_blog", + "mode": "list", + "cachedResultName": "youtube_transcript_to_blog" + } + }, + "id": "d5b8f51f-8904-4039-ab7f-d4cffd717b14", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "42485b1f-2381-4e86-91af-ddbb3b687689", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "5fccb006-c66d-407a-b010-a9f7ca49c0d7", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "1454b8d0-0703-45e1-b51c-2f9396b4e4d1", + "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": "Process the following data for task 'YouTube Transcript to Blog':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for YouTube Transcript to Blog" + } + }, + "id": "a8c23beb-eeb0-45bb-bee8-7d841bf39330", + "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": "YouTube Transcript to Blog" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "333c30d3-f292-497e-af3d-fffa5575fd75", + "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": "YouTube Transcript to Blog error: {$json.error.message}" + }, + "id": "f84bd864-69d2-4c78-a3df-e0d4bdaf36c0", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Data_Analytics/README.md b/Data_Analytics/README.md new file mode 100644 index 0000000..799df91 --- /dev/null +++ b/Data_Analytics/README.md @@ -0,0 +1,3 @@ +# Data_Analytics Templates + +- **competitor_price_scraper.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector \ No newline at end of file diff --git a/Data_Analytics/competitor_price_scraper.json b/Data_Analytics/competitor_price_scraper.json new file mode 100644 index 0000000..d1e173b --- /dev/null +++ b/Data_Analytics/competitor_price_scraper.json @@ -0,0 +1,355 @@ +{ + "name": "Competitor Price Scraper", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Competitor Price Scraper", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "3658f18f-6ed3-4c14-b12d-9ec7fadc03f9", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "competitor-price-scraper" + }, + "id": "9b5a4057-4b5f-44f7-aea9-847d23a8f821", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "3b015342-843e-40e8-8164-734611f2c7aa", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "3b77afdb-828a-48bf-ab39-5600c4ac8512", + "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": "competitor_price_scraper" + }, + "id": "217480ed-2ad6-407d-80fa-0d5284905815", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "competitor_price_scraper" + }, + "id": "90ed9d12-3239-48b0-b5a5-23fb2a0172ea", + "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": "68bc4d4a-293e-4252-8a88-486aa3e3cb5f", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "3d31e91e-ad51-4967-903f-7ae2c598a870", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "af6568a4-96a6-4b41-8be0-730fb7c0b328", + "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": "Process the following data for task 'Competitor Price Scraper':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Competitor Price Scraper" + } + }, + "id": "c0a57592-08d8-4b83-80bf-73b63a29966f", + "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": "Competitor Price Scraper" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "ff81c3bb-35e8-428d-9ad9-491707d7ee15", + "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": "Competitor Price Scraper error: {$json.error.message}" + }, + "id": "9f49421e-8263-4127-ad94-e063318685fb", + "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 +} \ No newline at end of file diff --git a/DevOps/README.md b/DevOps/README.md new file mode 100644 index 0000000..31725e5 --- /dev/null +++ b/DevOps/README.md @@ -0,0 +1,3 @@ +# DevOps Templates + +- **github_commit_jenkins.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector \ No newline at end of file diff --git a/DevOps/github_commit_jenkins.json b/DevOps/github_commit_jenkins.json new file mode 100644 index 0000000..4d8d75c --- /dev/null +++ b/DevOps/github_commit_jenkins.json @@ -0,0 +1,355 @@ +{ + "name": "GitHub Commit Jenkins", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: GitHub Commit Jenkins", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "5e656fa4-c9ef-419c-b8e5-93b4dd837c81", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "github-commit-jenkins" + }, + "id": "faa3187e-7313-474f-b54a-a25790101607", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "c5119e77-1c04-4245-9cd2-2f9538fbb8d0", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "fa72e972-a6f0-4352-a738-37f9167c5294", + "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": "github_commit_jenkins" + }, + "id": "8cdecff9-3760-4347-b0db-d24928bae5b4", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "github_commit_jenkins" + }, + "id": "fe3e81f7-097a-4322-84a0-e7d24f7db8e8", + "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": "6f4c86c2-e1bd-4ecf-83cb-b2ceb4b73e6a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "dace1819-1ddc-4e66-bebe-08fe643516bf", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "91e7ee4a-61ff-479a-acc6-57c7a51a9a70", + "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 'GitHub Commit Jenkins':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for GitHub Commit Jenkins" + } + }, + "id": "3e35e0ca-1355-462b-8f1e-840b1736fce5", + "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": "GitHub Commit Jenkins" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "3624b160-adce-4657-853a-bbf8d6948a1b", + "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": "GitHub Commit Jenkins error: {$json.error.message}" + }, + "id": "9a67ce5b-4abd-4f9f-a5da-5113300ef9ff", + "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 +} \ No newline at end of file diff --git a/E_Commerce_Retail/README.md b/E_Commerce_Retail/README.md new file mode 100644 index 0000000..781a46e --- /dev/null +++ b/E_Commerce_Retail/README.md @@ -0,0 +1,5 @@ +# E_Commerce_Retail Templates + +- **shopify_order_sms.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **inventory_slack_alert.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **abandoned_cart_email.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector \ No newline at end of file diff --git a/E_Commerce_Retail/abandoned_cart_email.json b/E_Commerce_Retail/abandoned_cart_email.json new file mode 100644 index 0000000..668ca9d --- /dev/null +++ b/E_Commerce_Retail/abandoned_cart_email.json @@ -0,0 +1,355 @@ +{ + "name": "Abandoned Cart Email", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Abandoned Cart Email", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "1f91297f-f9dc-49bc-8f96-92814dff32be", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "abandoned-cart-email" + }, + "id": "b0c4f170-934e-4434-abbe-6342cd9edc36", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "f706155b-01d6-49fb-940f-bc1d7f858569", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "593f3c9c-58fa-4f29-8a3a-8745c7ff7fbf", + "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": "abandoned_cart_email" + }, + "id": "a7f02c99-3494-4acd-b70e-cd3cca069599", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "abandoned_cart_email" + }, + "id": "fb8320a7-7433-4329-b54c-f696059b14b7", + "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": "558a9d97-652b-4e88-bd35-5ed2085625d3", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "8dce5c28-4831-448c-a578-9e970cf68744", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "fba89352-184f-4f77-8b83-958a9c0715f3", + "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 'Abandoned Cart Email':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Abandoned Cart Email" + } + }, + "id": "6ade5738-8ced-40e6-8a24-501cca90ab49", + "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": "Abandoned Cart Email" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "f7cf072c-e32b-4c38-89f0-79584144fd5b", + "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": "Abandoned Cart Email error: {$json.error.message}" + }, + "id": "76275d42-14ed-4e55-aaf8-bd1557c263c9", + "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 +} \ No newline at end of file diff --git a/E_Commerce_Retail/inventory_slack_alert.json b/E_Commerce_Retail/inventory_slack_alert.json new file mode 100644 index 0000000..b47bb37 --- /dev/null +++ b/E_Commerce_Retail/inventory_slack_alert.json @@ -0,0 +1,365 @@ +{ + "name": "Inventory Slack Alert", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Inventory Slack Alert", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "fd1368bd-bfe5-41c8-956a-7157c20474a6", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "inventory-slack-alert" + }, + "id": "d44d9365-6e28-403e-9ead-123bfa06de69", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "075a1773-e19a-4f6d-8898-76b4c9b0db8d", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "f7806342-0e9e-4004-a06d-4f02929951ec", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "inventory_slack_alert", + "mode": "list", + "cachedResultName": "inventory_slack_alert" + } + }, + "id": "18b389fd-f2bf-45f4-9042-089f27ecac65", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "inventory_slack_alert", + "mode": "list", + "cachedResultName": "inventory_slack_alert" + } + }, + "id": "da362152-0424-43bf-a373-a683f53e4a75", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "23c62312-3faa-4526-9e41-d4a9a9384d3c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f1af3590-a114-4b63-897a-8961b4c9f97a", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "03e57d37-e504-4a9b-8a33-6a82c93485cb", + "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 'Inventory Slack Alert':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Inventory Slack Alert" + } + }, + "id": "5966c068-4e76-4c29-9a7a-7594639ef53a", + "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": "Inventory Slack Alert" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "247d117f-7c88-4f0f-8dd3-53aa6b0a84e0", + "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": "Inventory Slack Alert error: {$json.error.message}" + }, + "id": "c8395d01-4d77-47bb-a940-f6b4ec9e598f", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/E_Commerce_Retail/shopify_order_sms.json b/E_Commerce_Retail/shopify_order_sms.json new file mode 100644 index 0000000..407a9da --- /dev/null +++ b/E_Commerce_Retail/shopify_order_sms.json @@ -0,0 +1,365 @@ +{ + "name": "Shopify Order SMS", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Shopify Order SMS", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "43d4baf6-302b-4141-a67e-df7df86b03e0", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "shopify-order-sms" + }, + "id": "65c17543-498e-443e-993c-02af712d566e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "d091bc86-264b-441f-aca1-21f14aa3022d", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "ae0788c7-71b3-4c14-9260-eb37e7f0a9ff", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "shopify_order_sms", + "mode": "list", + "cachedResultName": "shopify_order_sms" + } + }, + "id": "a9decd23-8efc-4c95-b1b0-839196ed3520", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "shopify_order_sms", + "mode": "list", + "cachedResultName": "shopify_order_sms" + } + }, + "id": "54495b0b-370e-46a9-b5b5-2d9d0162b40d", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "6a98c770-fb1e-4c32-a97a-725116bafec5", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "cf97460a-684b-4fb9-a722-05a7ff26bb97", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "1d87e1f1-30c0-43e9-9d50-bbf5aa676ae7", + "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": "Process the following data for task 'Shopify Order SMS':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Shopify Order SMS" + } + }, + "id": "16053bc3-704a-4649-8088-8af634649f2b", + "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": "Shopify Order SMS" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "80e6c213-6f3e-4d15-9539-c4999aee3d0e", + "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": "Shopify Order SMS error: {$json.error.message}" + }, + "id": "bdcb167e-b59d-4b53-b151-dfe70f2f28ab", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Education/README.md b/Education/README.md new file mode 100644 index 0000000..ddc3e2f --- /dev/null +++ b/Education/README.md @@ -0,0 +1,4 @@ +# Education Templates + +- **quiz_auto_grader.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **daily_student_motivation.json** – Uses OpenAI Chat, OpenAI Embeddings \ No newline at end of file diff --git a/Education/daily_student_motivation.json b/Education/daily_student_motivation.json new file mode 100644 index 0000000..8276367 --- /dev/null +++ b/Education/daily_student_motivation.json @@ -0,0 +1,355 @@ +{ + "name": "Daily Student Motivation", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Daily Student Motivation", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "26995548-761c-41fa-9727-9c1538208723", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "daily-student-motivation" + }, + "id": "b4ee6923-9695-4d25-879e-d51682b416d6", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "950769fc-8534-4ffa-9fad-8c9cee196dea", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "ce4e7e23-937e-4177-8f1e-14263defeac1", + "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": "daily_student_motivation" + }, + "id": "1a53eb05-9c9d-482a-8333-71b326df96cf", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "daily_student_motivation" + }, + "id": "6f0f012d-1cd7-42e8-902f-7f8cf0072089", + "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": "5d7acfa3-f322-4676-a6d4-5ac645b1e2ee", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ec33fdb2-eb3a-4e01-8489-6a592afc834f", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "020dfb0b-5272-4ff5-8ea0-10363909cd28", + "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 'Daily Student Motivation':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Daily Student Motivation" + } + }, + "id": "32e3b5c4-c532-420c-b350-51def592d5a4", + "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": "Daily Student Motivation" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "d25ae892-f0e7-4d93-b488-b7c62c9da5b9", + "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": "Daily Student Motivation error: {$json.error.message}" + }, + "id": "18b62a7a-11c2-48b3-a7cf-cd2d11a95496", + "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 +} \ No newline at end of file diff --git a/Education/quiz_auto_grader.json b/Education/quiz_auto_grader.json new file mode 100644 index 0000000..e208a8a --- /dev/null +++ b/Education/quiz_auto_grader.json @@ -0,0 +1,365 @@ +{ + "name": "Quiz Auto Grader", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Quiz Auto Grader", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "52dc6fbe-f7af-43a8-9226-241e163e6bbf", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "quiz-auto-grader" + }, + "id": "f25da8be-15a9-4fe8-b28c-5343b8a88f29", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "62c88abc-3c7d-4fac-9166-2b6d785992f7", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "ccd8538c-3116-41de-97bb-77e5ef4e6c70", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "quiz_auto_grader", + "mode": "list", + "cachedResultName": "quiz_auto_grader" + } + }, + "id": "b28de69a-1f40-4fa8-bc16-62541d526207", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "quiz_auto_grader", + "mode": "list", + "cachedResultName": "quiz_auto_grader" + } + }, + "id": "ab2f14e2-be2d-4512-88ee-3ebdacc3d599", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "73dd9881-3272-4e9a-a422-edf99d78f40a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "3e44774a-5dcd-4e4f-9b4b-94f4fe9ba8cd", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "fdb6fb02-28f6-4bac-8502-699dc8723223", + "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 'Quiz Auto Grader':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Quiz Auto Grader" + } + }, + "id": "1940fa89-ede4-4c27-82fb-7678cff0df54", + "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": "Quiz Auto Grader" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "a3db64cb-9ea7-4a36-8463-219917f66358", + "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": "Quiz Auto Grader error: {$json.error.message}" + }, + "id": "94d962e2-f5e4-40a1-a075-96e8e9858b32", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Email_Automation/README.md b/Email_Automation/README.md new file mode 100644 index 0000000..660555f --- /dev/null +++ b/Email_Automation/README.md @@ -0,0 +1,12 @@ +# Email_Automation Templates + +- **auto_reply_to_faqs.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **parse_invoice_emails.json** – Uses Anthropic Claude, OpenAI Embeddings +- **auto_archive_promotions.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **lead_to_hubspot.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **daily_email_digest.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **mailchimp_campaign_tracking.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **product_launch_email.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector +- **forward_attachments.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **sendgrid_bounce_alert.json** – Uses Anthropic Claude, OpenAI Embeddings +- **follow-up_emails.json** – Uses Anthropic Claude, OpenAI Embeddings \ No newline at end of file diff --git a/Email_Automation/auto_archive_promotions.json b/Email_Automation/auto_archive_promotions.json new file mode 100644 index 0000000..0760104 --- /dev/null +++ b/Email_Automation/auto_archive_promotions.json @@ -0,0 +1,363 @@ +{ + "name": "Auto Archive Promotions", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Auto Archive Promotions", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "c8c1846b-13b0-4c02-9fe5-4d00953318c3", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "auto-archive-promotions" + }, + "id": "88b8b314-a8a8-4764-a7b2-ae433e56d008", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "8ec45fc1-8df0-49e9-afd6-7feddd280948", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "4980a2e9-1bb5-4754-ad54-427044caa38d", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "auto_archive_promotions", + "mode": "list", + "cachedResultName": "auto_archive_promotions" + } + }, + "id": "e7ea191b-5779-4f89-8254-1dc72d0d990a", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "auto_archive_promotions", + "mode": "list", + "cachedResultName": "auto_archive_promotions" + } + }, + "id": "2692ac89-af93-466e-bffa-81ccc09da686", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "64154d66-1337-4f3a-87b8-f6548cb9b47f", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "eeaa1f48-794b-44d4-98db-18f3b289aa6f", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "6740f1df-ab97-416e-855f-6d521ad89b9e", + "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 Auto Archive Promotions" + } + }, + "id": "8d11beaa-7934-4927-9519-d14d2ea885ef", + "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": "Auto Archive Promotions" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "fcad99f4-60fd-4c33-b12c-78aa0284651e", + "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": "Auto Archive Promotions error: {$json.error.message}" + }, + "id": "dc986a7b-8dbe-45f0-a73b-6584e5be6821", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Email_Automation/auto_reply_to_faqs.json b/Email_Automation/auto_reply_to_faqs.json new file mode 100644 index 0000000..e806a6d --- /dev/null +++ b/Email_Automation/auto_reply_to_faqs.json @@ -0,0 +1,363 @@ +{ + "name": "Auto Reply to FAQs", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Auto Reply to FAQs", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9346afca-4798-4807-8f7a-b1298919df74", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "auto-reply-to-faqs" + }, + "id": "692d46f2-9045-416a-b0cd-8e42fd3230c5", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "83193912-ef89-477a-b6b9-c293b5498153", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "1fb02ad8-15e0-49c7-8271-a9af5c511da2", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "auto_reply_to_faqs", + "mode": "list", + "cachedResultName": "auto_reply_to_faqs" + } + }, + "id": "45600a7a-615a-4733-ae13-a394bd19bfea", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "auto_reply_to_faqs", + "mode": "list", + "cachedResultName": "auto_reply_to_faqs" + } + }, + "id": "8620fcf8-2067-4776-8f6a-fb896d765342", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "4f9229e7-bf9d-4de4-b51e-49aa8553dfef", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "d42590ab-e482-416d-9418-9dc595ac9b04", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "9b993db0-8564-4ff1-839f-ce059f1d8545", + "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 Auto Reply to FAQs" + } + }, + "id": "2395d437-ac56-4637-b4a6-4c626f217ae7", + "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": "Auto Reply to FAQs" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "2bc49ad8-7cc0-4cbc-b72e-3ccaa19fb8e2", + "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": "Auto Reply to FAQs error: {$json.error.message}" + }, + "id": "44f0bf88-3961-4ec3-b965-011224fba8a1", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Email_Automation/daily_email_digest.json b/Email_Automation/daily_email_digest.json new file mode 100644 index 0000000..b0e6dad --- /dev/null +++ b/Email_Automation/daily_email_digest.json @@ -0,0 +1,353 @@ +{ + "name": "Daily Email Digest", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Daily Email Digest", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "47d7b2cb-5d44-4625-aeab-33e0b7ce529f", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "daily-email-digest" + }, + "id": "a079decc-ca6c-4248-b4c9-34deb17c8d26", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "8d196219-7de5-428e-8e88-420abfcc9237", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "8c20a8a3-3002-4d4f-b46f-cf859d229655", + "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": "daily_email_digest" + }, + "id": "ae6e7c84-9dbb-4ec7-a621-1a1e438941b6", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "daily_email_digest" + }, + "id": "f3ba587a-bd11-418d-9998-395164701bd3", + "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": "eed3ad49-c219-4c4a-b420-eff8b6401981", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "6622f4cb-bdbe-4c76-9ea0-25cf1e2ce2a4", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "edd62db3-4bfd-4ab4-b4e5-0e038b0beec1", + "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 Daily Email Digest" + } + }, + "id": "0e624e84-3f49-49d4-b0eb-a3268f6984d0", + "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": "Daily Email Digest" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "dbec21d4-50e8-47a6-a920-6da576ebc01d", + "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": "Daily Email Digest error: {$json.error.message}" + }, + "id": "487c7190-b1d5-4770-b503-ec7ce44ad9ba", + "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 +} \ No newline at end of file diff --git a/Email_Automation/follow-up_emails.json b/Email_Automation/follow-up_emails.json new file mode 100644 index 0000000..8dc3e27 --- /dev/null +++ b/Email_Automation/follow-up_emails.json @@ -0,0 +1,353 @@ +{ + "name": "Follow-up Emails", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Follow-up Emails", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9f233e35-f7da-4e01-9423-5b375143b2b8", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "follow-up-emails" + }, + "id": "cb84f658-4d92-43b6-ba38-6511ad71ac6d", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "fd9c8817-cd20-4521-a501-ddf62864c092", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "86dbd6f8-2249-41bf-8efc-6b93892ff5b1", + "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": "follow-up_emails" + }, + "id": "f61052dc-bfaa-4aae-aad7-40fdee0bec99", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "follow-up_emails" + }, + "id": "6c4053cf-94a1-4a38-9f15-5d6b3cddfc0c", + "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": "b571563d-fc66-45e6-99f0-d5de332b07ec", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "bce39b85-50bc-4202-9ec4-6e23a06345b3", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "1a8964b2-92c9-4aa2-b56d-3e4c4f5fa4c8", + "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 Follow-up Emails" + } + }, + "id": "de0333cc-9bb6-440a-9f09-591436941922", + "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": "Follow-up Emails" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "bf20f642-7227-4478-aa9b-4c507ca51c57", + "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": "Follow-up Emails error: {$json.error.message}" + }, + "id": "d7266d35-f67b-48b9-ac50-86b7298d5939", + "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 +} \ No newline at end of file diff --git a/Email_Automation/forward_attachments.json b/Email_Automation/forward_attachments.json new file mode 100644 index 0000000..7d8ef04 --- /dev/null +++ b/Email_Automation/forward_attachments.json @@ -0,0 +1,363 @@ +{ + "name": "Forward Attachments", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Forward Attachments", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "15ea4b74-7127-48af-9f59-629bb14a2bd4", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "forward-attachments" + }, + "id": "8a67f7cf-b9f0-4c6c-9560-e9d746f29c98", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "9bad17f7-55c2-41d5-99dd-ba0fd211777b", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "e135820c-3de0-4731-b76b-1ca54b2f6ed3", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "forward_attachments", + "mode": "list", + "cachedResultName": "forward_attachments" + } + }, + "id": "dd4b9606-bfb4-44bd-a9f8-fbdce7127924", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "forward_attachments", + "mode": "list", + "cachedResultName": "forward_attachments" + } + }, + "id": "fb46a67f-195f-44a8-ae68-383e70e3ca41", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "3ef19169-0bbf-4f8c-a01e-e66d7c8e9c92", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "8a4d7ddf-836b-49b9-8a57-d6bf92b44cdd", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "e208345d-1ccb-43fa-ae90-5f90e8d40d9a", + "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 Forward Attachments" + } + }, + "id": "06cce445-64df-4a85-a1d0-e5d3960583b1", + "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": "Forward Attachments" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "df7aa3a4-ff0d-4289-bbc1-c06bcd3596b7", + "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": "Forward Attachments error: {$json.error.message}" + }, + "id": "d59d6048-34a9-481e-b729-51bed8088528", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Email_Automation/lead_to_hubspot.json b/Email_Automation/lead_to_hubspot.json new file mode 100644 index 0000000..913e49e --- /dev/null +++ b/Email_Automation/lead_to_hubspot.json @@ -0,0 +1,353 @@ +{ + "name": "Lead to HubSpot", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Lead to HubSpot", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "056c084c-5b6a-48a6-ba89-9fb86bfb9ece", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "lead-to-hubspot" + }, + "id": "d53202f1-2095-44db-b12d-450cde7d1dd3", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "1714cebd-2e6e-461c-97ee-adb767be43ea", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "831ece73-5cea-4505-abc2-138247802af1", + "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": "lead_to_hubspot" + }, + "id": "dfc452c0-7fbd-4fdb-8f5c-84efc4681695", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "lead_to_hubspot" + }, + "id": "ce705b14-0b85-4bdb-bcb4-ada69abcd91e", + "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": "2d2a1930-7e4d-4a08-9917-82c2fe049aee", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "20c8dd61-5a12-4ccc-8706-b29e67284644", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "0c222da2-dec8-4ca5-bb96-164cce3678ca", + "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 Lead to HubSpot" + } + }, + "id": "e627df3a-42af-4589-8597-bc365d08d2db", + "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": "Lead to HubSpot" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "17f41ec2-068e-480e-b897-33528e49ac3f", + "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": "Lead to HubSpot error: {$json.error.message}" + }, + "id": "256bec9e-fb7f-48cb-8811-2a1645af34ef", + "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 +} \ No newline at end of file diff --git a/Email_Automation/mailchimp_campaign_tracking.json b/Email_Automation/mailchimp_campaign_tracking.json new file mode 100644 index 0000000..7520638 --- /dev/null +++ b/Email_Automation/mailchimp_campaign_tracking.json @@ -0,0 +1,353 @@ +{ + "name": "Mailchimp Campaign Tracking", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Mailchimp Campaign Tracking", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "eebc24a2-4ca9-4c7c-8053-42b97cc10da5", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "mailchimp-campaign-tracking" + }, + "id": "7c08e3ae-6992-45a6-b5a6-574ff186b449", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "ac546136-8d14-4a7d-a2d1-193fe6b7cf1a", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "5c980081-b726-4ac4-9260-8661cf42f865", + "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": "mailchimp_campaign_tracking" + }, + "id": "61e492b9-447c-409c-b7a2-d2a04d8092f5", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "mailchimp_campaign_tracking" + }, + "id": "177c6403-48a9-46a4-87be-fa747d45a07d", + "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": "a6a5e296-7190-4c5b-8912-231acd71dcb3", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "65fd57be-648d-4bfe-90f6-99ba29a87625", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "20f9ac92-c53e-4391-8115-01e68528cef1", + "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 Mailchimp Campaign Tracking" + } + }, + "id": "1eb0cccd-e8f5-4891-a400-e4e3e8f7a6bc", + "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": "Mailchimp Campaign Tracking" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "f714ccc1-8d56-469e-ab46-f15c0d2a1a98", + "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": "Mailchimp Campaign Tracking error: {$json.error.message}" + }, + "id": "8d5bc20a-0398-4fb0-b40e-bbf6694f7192", + "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 +} \ No newline at end of file diff --git a/Email_Automation/parse_invoice_emails.json b/Email_Automation/parse_invoice_emails.json new file mode 100644 index 0000000..543eeb4 --- /dev/null +++ b/Email_Automation/parse_invoice_emails.json @@ -0,0 +1,353 @@ +{ + "name": "Parse Invoice Emails", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Parse Invoice Emails", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "a9239a2a-4213-4217-acfb-cbc104aad31a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "parse-invoice-emails" + }, + "id": "dda8050a-0edc-4b73-92bd-686e48e63e1b", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "50b68a75-9985-47db-8686-9477706474b3", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "2f2358b0-a8e3-460f-b5b0-72a194019586", + "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": "parse_invoice_emails" + }, + "id": "134a8b92-3314-4397-8b77-1a6bca52a7d4", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "parse_invoice_emails" + }, + "id": "ceb03c85-f352-423c-911b-4d30abee397e", + "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": "adfd835e-81cd-4afe-ad69-d8e6f78c27af", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7cdd9592-0400-4ad9-9a11-a26367d7cb4b", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "c0acfc97-9afd-4f56-88de-7c0e2b1cfd1d", + "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 Parse Invoice Emails" + } + }, + "id": "d2e31148-f0c1-4164-97f9-670bf929a2ce", + "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": "Parse Invoice Emails" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "12711eea-68c0-49f7-809e-26f516e2a96a", + "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": "Parse Invoice Emails error: {$json.error.message}" + }, + "id": "91904d0c-429d-4890-b73b-0e0bb77b8ac7", + "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 +} \ No newline at end of file diff --git a/Email_Automation/product_launch_email.json b/Email_Automation/product_launch_email.json new file mode 100644 index 0000000..407701a --- /dev/null +++ b/Email_Automation/product_launch_email.json @@ -0,0 +1,353 @@ +{ + "name": "Product Launch Email", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Product Launch Email", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "61b01104-d0ec-4196-8d4f-a4d07cd749cd", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "product-launch-email" + }, + "id": "7ad673f2-6e28-4d06-b9c6-663a6fde1726", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "ae25e008-ce10-4ee7-9fb1-11caf5e12e81", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "45c0d7d3-f8aa-44cb-9424-e08f4e39fbbd", + "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": "product_launch_email" + }, + "id": "f5bce02a-2fe7-44f9-8958-a83cc9cc11e3", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "product_launch_email" + }, + "id": "98bbf1d4-b9de-465c-bd80-daf1a95d31e2", + "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": "7a04f90c-b92f-463c-b680-aababbec2f83", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "92265498-841d-4ba3-a444-250abc4665e7", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "7e5a965d-74d7-4c17-b587-8882ad721511", + "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 Product Launch Email" + } + }, + "id": "ba3f12f2-3db3-46ed-bd42-cabe92f48831", + "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": "Product Launch Email" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "0271fc8f-6af0-4a00-8fe2-4ff50ebedc45", + "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": "Product Launch Email error: {$json.error.message}" + }, + "id": "c4784deb-12bd-4273-be2c-a7b6e76e28e5", + "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 +} \ No newline at end of file diff --git a/Email_Automation/sendgrid_bounce_alert.json b/Email_Automation/sendgrid_bounce_alert.json new file mode 100644 index 0000000..2d137c2 --- /dev/null +++ b/Email_Automation/sendgrid_bounce_alert.json @@ -0,0 +1,353 @@ +{ + "name": "SendGrid Bounce Alert", + "nodes": [ + { + "parameters": { + "content": "Placeholder for SendGrid Bounce Alert", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "33c24c3f-fbf8-4461-b748-983270488128", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "sendgrid-bounce-alert" + }, + "id": "a3b0ea8e-7b9b-40d8-b942-857e800281b2", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "0e37fa2c-1524-46f4-8809-c469faef23bc", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "bd0a5c1f-6add-4133-9d92-73491a90e45d", + "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": "sendgrid_bounce_alert" + }, + "id": "f73cb3be-a874-4a02-a997-3953032b3de5", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "sendgrid_bounce_alert" + }, + "id": "b21ab497-8f7d-4420-8584-c1ccf7243d63", + "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": "16a0a9d0-3851-46b9-8830-83c3c75a28ac", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ede2aa4c-94e5-4890-ac9e-41d6c24e1779", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "79910783-a249-4d46-9fe8-f8d763e030d9", + "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 SendGrid Bounce Alert" + } + }, + "id": "8c19f7ba-df58-44c6-8a70-70d747b0e2b9", + "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": "SendGrid Bounce Alert" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "adc64b6e-f045-4d6c-a38b-41c33af872f2", + "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": "SendGrid Bounce Alert error: {$json.error.message}" + }, + "id": "dce8248e-a281-492c-bac7-fca5243ec8e5", + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/README.md b/Finance_Accounting/README.md new file mode 100644 index 0000000..1e75abe --- /dev/null +++ b/Finance_Accounting/README.md @@ -0,0 +1,10 @@ +# Finance_Accounting Templates + +- **stripe_to_quickbooks.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **ocr_receipts_to_notion.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **weekly_shopify_sales_summary.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **currency_rate_monitor.json** – Uses OpenAI Chat, OpenAI Embeddings +- **monthly_expense_report.json** – Uses Anthropic Claude, OpenAI Embeddings +- **unpaid_invoice_reminder.json** – Uses Cohere Embeddings, OpenAI Chat +- **paypal_to_airtable.json** – Uses OpenAI Chat, OpenAI Embeddings +- **transaction_logs_backup.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector \ No newline at end of file diff --git a/Finance_Accounting/currency_rate_monitor.json b/Finance_Accounting/currency_rate_monitor.json new file mode 100644 index 0000000..7ff8f6d --- /dev/null +++ b/Finance_Accounting/currency_rate_monitor.json @@ -0,0 +1,353 @@ +{ + "name": "Currency Rate Monitor", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Currency Rate Monitor", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "e6175cfd-e193-423d-9bbd-fc7119684f7a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "currency-rate-monitor" + }, + "id": "80b80c82-20c3-4174-ad9c-611f3261b0e5", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "7fd033de-1f84-44c7-b067-c3d3e9b08b72", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "1fa4d8fe-1214-4fa9-8534-7c0f0d5d8531", + "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": "currency_rate_monitor" + }, + "id": "42ee78dd-c790-4e3c-8732-4e2395b1a9b6", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "currency_rate_monitor" + }, + "id": "0d13f988-4d82-440d-ac56-bb8e225d9be1", + "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": "7c645977-36de-4c85-9615-b76a72dd9882", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "521025ae-08c9-48f9-b3ea-8eed7859c340", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "bf695dd1-f69c-4be6-a2d7-27951a948b1c", + "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 Currency Rate Monitor" + } + }, + "id": "c83a7b48-e374-4d2f-832e-3929bab00308", + "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": "Currency Rate Monitor" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "931647ba-372d-46b7-810f-76ba4087c0b5", + "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": "Currency Rate Monitor error: {$json.error.message}" + }, + "id": "59e59fd4-268f-4c56-a034-b1a32e5f4115", + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/monthly_expense_report.json b/Finance_Accounting/monthly_expense_report.json new file mode 100644 index 0000000..6d243f4 --- /dev/null +++ b/Finance_Accounting/monthly_expense_report.json @@ -0,0 +1,353 @@ +{ + "name": "Monthly Expense Report", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Monthly Expense Report", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "8728dad1-36d7-4ed0-8162-7622f31b4bc1", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "monthly-expense-report" + }, + "id": "7f107229-acbb-4195-a5cd-b0f97bedc954", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "a7b02852-85a2-4048-bf05-64106a5aa1b3", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "f8683870-d2ea-4541-a98e-994f04327170", + "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": "monthly_expense_report" + }, + "id": "1eec63a3-ddfd-45d0-be4d-6533cf8e3dea", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "monthly_expense_report" + }, + "id": "8073feb4-b770-45b8-84e1-76c37e332e1f", + "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": "d68e93b2-d64e-42d5-9782-364c5e43e148", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "925a8cad-26c0-435f-9e94-6a037380f9f2", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "ad4dfd87-e12a-43d0-959f-31df79dbc0f0", + "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 Monthly Expense Report" + } + }, + "id": "a9f139f6-be27-4aec-9ca3-51ff754c9036", + "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": "Monthly Expense Report" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "12ca3491-606a-4229-b392-705431a87aff", + "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": "Monthly Expense Report error: {$json.error.message}" + }, + "id": "3af6e41f-e4c2-4bd3-92ae-4c8a7b27e495", + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/ocr_receipts_to_notion.json b/Finance_Accounting/ocr_receipts_to_notion.json new file mode 100644 index 0000000..43db4b1 --- /dev/null +++ b/Finance_Accounting/ocr_receipts_to_notion.json @@ -0,0 +1,353 @@ +{ + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/paypal_to_airtable.json b/Finance_Accounting/paypal_to_airtable.json new file mode 100644 index 0000000..abfdb79 --- /dev/null +++ b/Finance_Accounting/paypal_to_airtable.json @@ -0,0 +1,353 @@ +{ + "name": "PayPal to Airtable", + "nodes": [ + { + "parameters": { + "content": "Placeholder for PayPal to Airtable", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "4dc16bed-a5fc-41a8-879d-887e7cd668f2", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "paypal-to-airtable" + }, + "id": "e98d9b01-45dc-42d5-96bb-f33ad31c2a4c", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "9e156c78-d969-43b0-8c47-29be47d9e374", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "67173cd7-c563-4e20-894f-4a3bb2a3154d", + "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": "paypal_to_airtable" + }, + "id": "3273daeb-1fef-4975-bf30-11fe790b7a93", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "paypal_to_airtable" + }, + "id": "8319e3d9-ee3c-40d5-9afa-4718d3c475e3", + "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": "16b3f51c-6036-4e62-a49b-d83ce62bc770", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f3e97b45-2c73-47a2-b969-37fe5cbce0e2", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "141626f4-bf31-4c63-ab83-bde6d05dc0eb", + "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 PayPal to Airtable" + } + }, + "id": "ae1ef58d-8ed5-4ffe-bfe4-804a2fd16095", + "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": "PayPal to Airtable" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "c68be0fc-19fe-4e45-8c3d-3ce101e1634f", + "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": "PayPal to Airtable error: {$json.error.message}" + }, + "id": "3e058106-dd19-44a8-91a3-3aef71622480", + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/stripe_to_quickbooks.json b/Finance_Accounting/stripe_to_quickbooks.json new file mode 100644 index 0000000..64e5bcf --- /dev/null +++ b/Finance_Accounting/stripe_to_quickbooks.json @@ -0,0 +1,353 @@ +{ + "name": "Stripe to QuickBooks", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Stripe to QuickBooks", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "516d2d75-bad5-47a2-9aae-441c2e47505a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "stripe-to-quickbooks" + }, + "id": "b336b0e9-75c9-476e-b708-eee49a79782a", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "aff09b5e-ab9c-4906-876c-be1cbd49bad3", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "28798bcc-42c3-405f-becd-dd9e2628fbec", + "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": "stripe_to_quickbooks" + }, + "id": "ebb44e83-73d5-48b0-9458-cbb4dd5db829", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "stripe_to_quickbooks" + }, + "id": "dda295d6-3267-468b-b6c9-4e0dae2d3953", + "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": "fad24949-758c-4879-8fe1-2965b81c835c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "36927cf2-4dc9-42c0-b427-2893e5982a85", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "87360d8c-11b2-4293-9213-83525a4ffc48", + "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 Stripe to QuickBooks" + } + }, + "id": "6a6e8043-e4ba-4b17-8815-5d14adc8f33b", + "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": "Stripe to QuickBooks" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "b6300c02-0a43-4cc4-8079-7739e8b51a37", + "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": "Stripe to QuickBooks error: {$json.error.message}" + }, + "id": "4f848ea4-b5cd-4594-b598-cfff98863583", + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/transaction_logs_backup.json b/Finance_Accounting/transaction_logs_backup.json new file mode 100644 index 0000000..0e9b095 --- /dev/null +++ b/Finance_Accounting/transaction_logs_backup.json @@ -0,0 +1,353 @@ +{ + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/unpaid_invoice_reminder.json b/Finance_Accounting/unpaid_invoice_reminder.json new file mode 100644 index 0000000..b3fdc0a --- /dev/null +++ b/Finance_Accounting/unpaid_invoice_reminder.json @@ -0,0 +1,353 @@ +{ + "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 +} \ No newline at end of file diff --git a/Finance_Accounting/weekly_shopify_sales_summary.json b/Finance_Accounting/weekly_shopify_sales_summary.json new file mode 100644 index 0000000..6ac61aa --- /dev/null +++ b/Finance_Accounting/weekly_shopify_sales_summary.json @@ -0,0 +1,363 @@ +{ + "name": "Weekly Shopify Sales Summary", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Weekly Shopify Sales Summary", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "48cbb971-b7f5-439b-9ff7-51e48fe8cd99", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "weekly-shopify-sales-summary" + }, + "id": "986a4dbf-6fd1-468e-9404-891be5d7e982", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "fe85f7f9-ec98-496c-9623-73934248c4dd", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "91db179a-59d3-4335-a3f8-5a1767283536", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "weekly_shopify_sales_summary", + "mode": "list", + "cachedResultName": "weekly_shopify_sales_summary" + } + }, + "id": "12e2e6d8-9882-4e5e-958d-1a5263f3d498", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "weekly_shopify_sales_summary", + "mode": "list", + "cachedResultName": "weekly_shopify_sales_summary" + } + }, + "id": "86e1304a-cb0e-42ae-a608-576468de3977", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "1b99ec18-874c-4238-947b-4208a7187782", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f57ed2d1-31f6-48e0-9d49-a34d828a2b21", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "8bd35d96-4b86-4db9-8df1-3e1234a598b6", + "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 Weekly Shopify Sales Summary" + } + }, + "id": "339b9829-f9ab-4521-a6f7-d57972f5960d", + "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": "Weekly Shopify Sales Summary" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "913c3b44-b464-492a-9214-d9dc1952c96b", + "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": "Weekly Shopify Sales Summary error: {$json.error.message}" + }, + "id": "7e04b6aa-2c81-4491-8383-48f48f5e47d5", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Government_NGO/README.md b/Government_NGO/README.md new file mode 100644 index 0000000..e106db9 --- /dev/null +++ b/Government_NGO/README.md @@ -0,0 +1,4 @@ +# Government_NGO Templates + +- **public_form_auto_triage.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **public_record_email_update.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone \ No newline at end of file diff --git a/Government_NGO/public_form_auto_triage.json b/Government_NGO/public_form_auto_triage.json new file mode 100644 index 0000000..88c33a1 --- /dev/null +++ b/Government_NGO/public_form_auto_triage.json @@ -0,0 +1,355 @@ +{ + "name": "Public Form Auto Triage", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Public Form Auto Triage", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "e0def9b7-b982-4f66-a122-b34b179250f3", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "public-form-auto-triage" + }, + "id": "a0436c8f-07eb-4c7c-91cf-f9888c44193e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "17992f44-ab0a-49d6-9af3-6a7902095bcc", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "8cf651f3-f660-41e0-9ae9-abe5e283e1be", + "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": "public_form_auto_triage" + }, + "id": "c1637ef3-6857-4a30-9e39-ca400c2519a8", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "public_form_auto_triage" + }, + "id": "495ee105-e54c-4540-b696-04c163d09829", + "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": "247453d7-9638-4db4-987d-0d1ce438494c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ac140caa-fa42-4aaf-aa9e-2115ad365eef", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "eba04ff8-c343-4e2c-b1c9-2223884dbd38", + "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": "Process the following data for task 'Public Form Auto Triage':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Public Form Auto Triage" + } + }, + "id": "95e729d9-2c88-4bee-bc5c-cbdb6fac41b8", + "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": "Public Form Auto Triage" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "5d3ce3ed-4222-464c-a3f3-d6681a5db5c2", + "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": "Public Form Auto Triage error: {$json.error.message}" + }, + "id": "41fcce2f-8ed2-48b1-92bd-ff2f9d38e337", + "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 +} \ No newline at end of file diff --git a/Government_NGO/public_record_email_update.json b/Government_NGO/public_record_email_update.json new file mode 100644 index 0000000..09ed17d --- /dev/null +++ b/Government_NGO/public_record_email_update.json @@ -0,0 +1,365 @@ +{ + "name": "Public Record Email Update", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Public Record Email Update", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "65bf7968-6074-4fd8-997a-c656568960c0", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "public-record-email-update" + }, + "id": "904357c4-6656-445d-88a8-1d6080ea17eb", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "cac96f44-3e7d-4066-9faa-edce57b3005d", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "13cb39cf-a65a-44b7-baff-bb6b0635e185", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "public_record_email_update", + "mode": "list", + "cachedResultName": "public_record_email_update" + } + }, + "id": "85f4bc98-c83e-4769-ab45-60b673f4dbc1", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "public_record_email_update", + "mode": "list", + "cachedResultName": "public_record_email_update" + } + }, + "id": "4ed05d0a-ef6e-420e-8389-891f87042bff", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "1e527452-6ed5-4cec-a774-da238fba63c2", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "36a9bb22-5c37-4ca3-8297-02eef5bcc9f0", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "7cef2b87-47e1-4431-84a8-a79139267bc5", + "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 'Public Record Email Update':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Public Record Email Update" + } + }, + "id": "65e68b55-903c-4988-a9b5-27e41ca2ca0a", + "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": "Public Record Email Update" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "a1d9802e-caaa-4b0d-b41e-d0139ad7b5aa", + "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": "Public Record Email Update error: {$json.error.message}" + }, + "id": "7e69d511-d41d-4553-b2bc-8aaa4a3d1754", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/HR/README.md b/HR/README.md new file mode 100644 index 0000000..df17c59 --- /dev/null +++ b/HR/README.md @@ -0,0 +1,4 @@ +# HR Templates + +- **new_job_application_parser.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **notion_job_board_poster.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector \ No newline at end of file diff --git a/HR/new_job_application_parser.json b/HR/new_job_application_parser.json new file mode 100644 index 0000000..1f96471 --- /dev/null +++ b/HR/new_job_application_parser.json @@ -0,0 +1,365 @@ +{ + "name": "New Job Application Parser", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: New Job Application Parser", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "355dc5d9-e675-4948-ac07-e2372746beac", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "new-job-application-parser" + }, + "id": "5a292fdb-55a6-4b6c-95cb-918e2f5592a1", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "53900c40-00b0-4e87-98cf-de274ce1fddc", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "a3b1c492-f0ec-4275-a656-765170f336db", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "new_job_application_parser", + "mode": "list", + "cachedResultName": "new_job_application_parser" + } + }, + "id": "cfcd7174-0670-4521-a3d0-f166637355b9", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "new_job_application_parser", + "mode": "list", + "cachedResultName": "new_job_application_parser" + } + }, + "id": "2a452b2b-edca-4ab6-87a5-a9cb33ca4473", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "3f39c7db-4b74-452f-85c5-1221de07d7c8", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "c3cf7b90-7202-47b1-a2e3-e1f2c74eaa33", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "3cd3b436-538e-470c-89e5-e8776258c498", + "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 'New Job Application Parser':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for New Job Application Parser" + } + }, + "id": "a741b715-3e97-445a-8c1a-f5c8ce5cf2dd", + "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": "New Job Application Parser" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "8d1a3c8a-520f-4e56-8120-7b54029bd828", + "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": "New Job Application Parser error: {$json.error.message}" + }, + "id": "1b63bca3-2e7f-450e-80ef-f5cf18df53f1", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/HR/notion_job_board_poster.json b/HR/notion_job_board_poster.json new file mode 100644 index 0000000..a71b48e --- /dev/null +++ b/HR/notion_job_board_poster.json @@ -0,0 +1,355 @@ +{ + "name": "Notion Job Board Poster", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Notion Job Board Poster", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9935d8e0-c8e8-47df-8d22-f18fed6cc35f", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "notion-job-board-poster" + }, + "id": "c7202964-f164-4e73-952f-e6cfb216df5a", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "698758c3-6ec0-4a98-ab25-77ad28d1a86b", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "00faf696-bcee-45d6-925c-5789d6f33d04", + "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": "notion_job_board_poster" + }, + "id": "c7d38489-d3fd-4f35-95e9-8fa1de802baf", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "notion_job_board_poster" + }, + "id": "b3b46858-b322-4702-86f6-c6bfc0116a39", + "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": "c664c632-f102-413b-92da-8ad22e070251", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "88bf4c86-8a9d-4b78-8965-3aabe394cac3", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "90778f34-c1c9-4506-b105-6463d7e170cd", + "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 'Notion Job Board Poster':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Notion Job Board Poster" + } + }, + "id": "d0df09be-eb92-4de4-a038-8c488ee4d1fa", + "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": "Notion Job Board Poster" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "5eb58bc2-9cd5-4e71-a456-4a64541d3179", + "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": "Notion Job Board Poster error: {$json.error.message}" + }, + "id": "f495a132-6e2f-4d8b-b978-1cb312b7934f", + "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 +} \ No newline at end of file diff --git a/Healthcare/README.md b/Healthcare/README.md new file mode 100644 index 0000000..b0feb4c --- /dev/null +++ b/Healthcare/README.md @@ -0,0 +1,3 @@ +# Healthcare Templates + +- **appointment_whatsapp_notify.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector \ No newline at end of file diff --git a/Healthcare/appointment_whatsapp_notify.json b/Healthcare/appointment_whatsapp_notify.json new file mode 100644 index 0000000..d66a148 --- /dev/null +++ b/Healthcare/appointment_whatsapp_notify.json @@ -0,0 +1,355 @@ +{ + "name": "Appointment WhatsApp Notify", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Appointment WhatsApp Notify", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "7d42a8e4-d9e6-46c6-b4b2-c489c79c3bf3", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "appointment-whatsapp-notify" + }, + "id": "9f460db0-3b15-45a4-a04f-24ec690273d3", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "ea6552ef-ebcc-4c99-9348-78a9b4f2ad2b", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "d919f86b-a52c-43ca-ac8c-b6dbf1ccbbcf", + "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": "appointment_whatsapp_notify" + }, + "id": "74081a07-d962-455e-b685-11d29c9e67ad", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "appointment_whatsapp_notify" + }, + "id": "7fda199c-926c-43ec-a604-972e82c7c0ef", + "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": "069d2f87-d2ab-422e-ad9a-cb9d28562d17", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "0920c840-2c14-436a-8fbd-d4a53300cc05", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "de83e37d-fe22-485d-8e38-8795be4284d9", + "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 'Appointment WhatsApp Notify':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Appointment WhatsApp Notify" + } + }, + "id": "1b33a7d5-ea1d-4e8d-9a8c-d70165f468cf", + "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": "Appointment WhatsApp Notify" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "5cc56f79-87d1-4926-8548-9ee1e8a60ffb", + "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": "Appointment WhatsApp Notify error: {$json.error.message}" + }, + "id": "25d22e2e-dc95-424a-b6e6-f5e9b5a889f9", + "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 +} \ No newline at end of file diff --git a/Misc/README.md b/Misc/README.md new file mode 100644 index 0000000..aba4c4a --- /dev/null +++ b/Misc/README.md @@ -0,0 +1,50 @@ +# Misc Templates + +- **customer_auto-tagging.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **etsy_review_to_slack.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **price_update_google_sheet.json** – Uses Cohere Embeddings, OpenAI Chat +- **return_ticket_assignment.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector +- **order_shipped_notification.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **woo_order_mailchimp.json** – Uses Cohere Embeddings, OpenAI Chat +- **low_stock_discord.json** – Uses Anthropic Claude, OpenAI Embeddings, Pinecone +- **notion_api_update.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **csv_attachment_to_airtable.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **ga_report_email.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **rss_headlines_slack.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **keyword_rank_checker.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **api_stats_chart.json** – Uses Anthropic Claude, OpenAI Embeddings, Pinecone +- **json_to_sheet.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **server_health_grafana.json** – Uses Anthropic Claude, Cohere Embeddings +- **hourly_weather_log.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **course_completion_certificate.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **zoom_attendance_log.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **assignment_sms_reminder.json** – Uses Cohere Embeddings, OpenAI Chat +- **interview_scheduler.json** – Uses OpenAI Chat, OpenAI Embeddings +- **onboarding_checklist_slack.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **applicant_feedback_folder.json** – Uses Anthropic Claude, OpenAI Embeddings, Pinecone +- **medication_sms_reminder.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **fitness_api_weekly_report.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector +- **crm_patient_intake.json** – Uses Anthropic Claude, OpenAI Embeddings +- **blood_test_email_alert.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **api_monitor_auto_restart.json** – Uses OpenAI Chat, OpenAI Embeddings +- **cron_success_slack.json** – Uses Anthropic Claude, OpenAI Embeddings +- **pr_merged_qa_notify.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **issue_trello_card.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **voice_task_to_notion.json** – Uses OpenAI Chat, OpenAI Embeddings +- **toggl_daily_report.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **calendar_to_clickup.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **starred_slack_to_notion.json** – Uses Cohere Embeddings, OpenAI Chat +- **birthday_telegram_reminder.json** – Uses OpenAI Chat, OpenAI Embeddings +- **drink_water_reminder.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **habit_form_weekly_summary.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **weekly_notes_backup.json** – Uses Cohere Embeddings, OpenAI Chat +- **calendar_event_auto-tag.json** – Uses OpenAI Chat, OpenAI Embeddings +- **disaster_api_sms.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **survey_auto_analyze.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone +- **grant_application_routing.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **idea_to_ig_carousel.json** – Uses Anthropic Claude, OpenAI Embeddings +- **podcast_transcribe_publish.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **unsplash_to_pinterest.json** – Uses Cohere Embeddings, OpenAI Chat, Supabase Vector +- **blog_comment_discord.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **record_crypto_prices.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector +- **bank_sms_alert_to_telegram.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector \ No newline at end of file diff --git a/Misc/api_monitor_auto_restart.json b/Misc/api_monitor_auto_restart.json new file mode 100644 index 0000000..61a85ac --- /dev/null +++ b/Misc/api_monitor_auto_restart.json @@ -0,0 +1,355 @@ +{ + "name": "API Monitor Auto Restart", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: API Monitor Auto Restart", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "5a361eec-4cf1-4626-8301-f1d61886385b", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "api-monitor-auto-restart" + }, + "id": "4a4d8e8e-ef65-4993-be9b-e5a9667a9ec3", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "a7c202eb-a14d-4c3a-9901-847fb858c828", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "2dc406f3-4a67-4021-80a2-3926b5b55087", + "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": "api_monitor_auto_restart" + }, + "id": "8781c9ef-fcc4-41cb-9fda-3ece7aaab8c1", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "api_monitor_auto_restart" + }, + "id": "368141fb-c508-4ef1-a99b-2848db6feb09", + "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": "31889dd8-f57a-4cc2-8ef8-e8666ca9f67e", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "8c45174b-5b62-4222-a33f-ef9085097ffc", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "ad6b30cb-5adf-4c0f-96fa-89a830472d1d", + "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 'API Monitor Auto Restart':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for API Monitor Auto Restart" + } + }, + "id": "c3bb6442-4dd3-4d62-bbe9-a47a0ff7baff", + "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": "API Monitor Auto Restart" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "e9a91afa-9d08-42a7-a362-2f5eed4db722", + "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": "API Monitor Auto Restart error: {$json.error.message}" + }, + "id": "480913f8-b511-4f82-b413-b19bf75ed0d2", + "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 +} \ No newline at end of file diff --git a/Misc/api_stats_chart.json b/Misc/api_stats_chart.json new file mode 100644 index 0000000..9cc1e88 --- /dev/null +++ b/Misc/api_stats_chart.json @@ -0,0 +1,365 @@ +{ + "name": "API Stats Chart", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: API Stats Chart", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "d6936124-41be-4586-a3b6-003216c47610", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "api-stats-chart" + }, + "id": "03fca675-6256-4e85-928b-785d0b0ae848", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "47ef8ce5-0a2e-4eb9-a127-ce55a886cf1f", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "2f994a01-b92a-45be-8d60-38c6f82e8ffd", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "api_stats_chart", + "mode": "list", + "cachedResultName": "api_stats_chart" + } + }, + "id": "1c46d9b8-8847-460f-8bc5-fb4e4072a2f1", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "api_stats_chart", + "mode": "list", + "cachedResultName": "api_stats_chart" + } + }, + "id": "4eeb7d21-d2aa-4e25-973c-5ae7e3ae8860", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "d3f2b2e4-729e-44df-ad1c-d7481e4a23af", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "433f4d6b-23a5-44e6-8c5d-1d7f1ed6b8d3", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "b531b066-c595-4ccd-9ba7-a228082bf9cc", + "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": "Process the following data for task 'API Stats Chart':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for API Stats Chart" + } + }, + "id": "9ed764eb-612c-4802-9932-741f73c2b86c", + "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": "API Stats Chart" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "70b3720c-76bb-42d4-a28e-016be84c295e", + "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": "API Stats Chart error: {$json.error.message}" + }, + "id": "e7e520aa-6969-416e-a6f4-8f9a593bac72", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/applicant_feedback_folder.json b/Misc/applicant_feedback_folder.json new file mode 100644 index 0000000..5c8bf59 --- /dev/null +++ b/Misc/applicant_feedback_folder.json @@ -0,0 +1,365 @@ +{ + "name": "Applicant Feedback Folder", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Applicant Feedback Folder", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "7ce644a8-5c25-474d-ae3a-53c8f74476f1", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "applicant-feedback-folder" + }, + "id": "d3b2ddcc-92fb-4696-9bb6-5eb65fedb10f", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "c2d64b36-7adc-4c63-8722-d11bc05edda0", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "a01f57f4-f0aa-41e3-9486-8996eb0fc0a4", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "applicant_feedback_folder", + "mode": "list", + "cachedResultName": "applicant_feedback_folder" + } + }, + "id": "98c5ac59-4156-4fbc-8646-49e28b37e12f", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "applicant_feedback_folder", + "mode": "list", + "cachedResultName": "applicant_feedback_folder" + } + }, + "id": "31611f38-a320-43f1-9077-9823cac1b27c", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "64c1fda2-5757-4cf6-be12-f9fdfb5d032a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "fe29c4d9-1fad-4a5e-9eaf-0c2d673c00f5", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a96f8d68-4a2a-4e91-8131-db38c9f156c8", + "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": "Process the following data for task 'Applicant Feedback Folder':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Applicant Feedback Folder" + } + }, + "id": "6704c3d5-cdec-4530-9cf3-c936b18621f8", + "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": "Applicant Feedback Folder" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "4c1b7df3-a692-4285-918c-eeb7ea56e954", + "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": "Applicant Feedback Folder error: {$json.error.message}" + }, + "id": "8310c244-ab16-4926-a82f-e0043a795a68", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/assignment_sms_reminder.json b/Misc/assignment_sms_reminder.json new file mode 100644 index 0000000..0587a92 --- /dev/null +++ b/Misc/assignment_sms_reminder.json @@ -0,0 +1,355 @@ +{ + "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 +} \ No newline at end of file diff --git a/Misc/bank_sms_alert_to_telegram.json b/Misc/bank_sms_alert_to_telegram.json new file mode 100644 index 0000000..8242f89 --- /dev/null +++ b/Misc/bank_sms_alert_to_telegram.json @@ -0,0 +1,353 @@ +{ + "name": "Bank SMS Alert to Telegram", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Bank SMS Alert to Telegram", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "8bba6263-435f-4314-b024-e0ce26abaa4a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "bank-sms-alert-to-telegram" + }, + "id": "4c8fd8cf-fc0d-49ec-a24f-e989e6c5cd15", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "e72f2bc8-8a8e-4028-aabe-8945523aff0a", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "a250943a-b044-465b-9a2d-b79171451ad8", + "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": "bank_sms_alert_to_telegram" + }, + "id": "369546da-d5ad-41b1-9f16-81e217b88ad5", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "bank_sms_alert_to_telegram" + }, + "id": "eb743252-44c7-4c6f-bf75-a36f514af2c8", + "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": "e964446c-e500-49b4-b030-237d21bb2715", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7336deaa-1df6-4202-bd35-547cf9fc026e", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "cf4ef355-50dc-4e41-89b7-a1f7a530dd86", + "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 Bank SMS Alert to Telegram" + } + }, + "id": "be3ba056-c26e-4cee-9c9b-c15a67669ff0", + "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": "Bank SMS Alert to Telegram" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "9f7c5610-8b55-4d46-b0bf-01cad3358ed2", + "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": "Bank SMS Alert to Telegram error: {$json.error.message}" + }, + "id": "1fba4c24-9724-4200-8f05-3f279aae8bea", + "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 +} \ No newline at end of file diff --git a/Misc/birthday_telegram_reminder.json b/Misc/birthday_telegram_reminder.json new file mode 100644 index 0000000..775ca67 --- /dev/null +++ b/Misc/birthday_telegram_reminder.json @@ -0,0 +1,355 @@ +{ + "name": "Birthday Telegram Reminder", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Birthday Telegram Reminder", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "499bef31-9bfd-4a30-8b81-6c8664e79a0f", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "birthday-telegram-reminder" + }, + "id": "c1901bee-2c1b-4cc7-9df1-30a2b8559b50", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "1b0b0e7e-b1d1-47c7-82d2-55cda35941c5", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "a3b9a0de-019d-4540-aaaa-07a250454313", + "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": "birthday_telegram_reminder" + }, + "id": "579ee9ec-23d2-472a-b157-2258e1b9030e", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "birthday_telegram_reminder" + }, + "id": "0dc6501b-c6c8-4f87-b0a3-05a772cf7f10", + "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": "031e141d-4e62-484a-8f96-6ee7510ae6e7", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7cc0a197-a75b-4efe-8a33-386d31a7a4a3", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "03fb1c35-3ea8-42fc-8c16-ed7067118c9e", + "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 'Birthday Telegram Reminder':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Birthday Telegram Reminder" + } + }, + "id": "0f00acfb-1111-4f06-b757-76e390bbbb77", + "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": "Birthday Telegram Reminder" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "ca627631-889a-4297-be03-a9ebf2bdd0c8", + "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": "Birthday Telegram Reminder error: {$json.error.message}" + }, + "id": "d6ec7828-a91c-44d6-9138-5da89be3f90e", + "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 +} \ No newline at end of file diff --git a/Misc/blog_comment_discord.json b/Misc/blog_comment_discord.json new file mode 100644 index 0000000..9d55693 --- /dev/null +++ b/Misc/blog_comment_discord.json @@ -0,0 +1,355 @@ +{ + "name": "Blog Comment Discord", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Blog Comment Discord", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "82b812ed-5376-4fcb-8aa1-d0aafdacf394", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "blog-comment-discord" + }, + "id": "7cd78bc9-6f9c-49ff-b301-20351c194a01", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "931184bd-d737-4ee0-83d3-790fcdffb71c", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "948b5a40-c675-4b22-8d94-06372555e0f8", + "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": "blog_comment_discord" + }, + "id": "f40be7b1-bbf1-46db-bbc9-37a0b93aecea", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "blog_comment_discord" + }, + "id": "04c8f2e1-32e5-452e-bf69-a4ff4581978a", + "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": "92293484-e699-431c-9d31-d92d278aee0d", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "3e391481-eb82-4151-a205-98a7c72a250d", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "b2e5956e-1b19-4df8-9753-1fb5f376b150", + "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": "Process the following data for task 'Blog Comment Discord':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Blog Comment Discord" + } + }, + "id": "c8499c4b-4774-41ea-ad92-6b24a75c8cd1", + "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": "Blog Comment Discord" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "b7800da2-d330-404c-8c1e-0071414ef68a", + "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": "Blog Comment Discord error: {$json.error.message}" + }, + "id": "b9f4c51a-59b7-42b7-89d7-6749f1d9503a", + "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 +} \ No newline at end of file diff --git a/Misc/blood_test_email_alert.json b/Misc/blood_test_email_alert.json new file mode 100644 index 0000000..0c1c9dd --- /dev/null +++ b/Misc/blood_test_email_alert.json @@ -0,0 +1,355 @@ +{ + "name": "Blood Test Email Alert", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Blood Test Email Alert", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "66fd712a-d30b-4837-9781-1e7f40470a18", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "blood-test-email-alert" + }, + "id": "7a588b32-00a1-41a3-a02f-f87eed240446", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "ce617935-770b-4c86-b082-19fecad2e663", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "54f567f9-7d21-432b-8506-61d357a6c11f", + "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": "blood_test_email_alert" + }, + "id": "d0dea4ec-1cfa-4d38-81e6-dd097248f8c5", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "blood_test_email_alert" + }, + "id": "2aad603d-1af9-4cce-b541-91ddbd9e3849", + "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": "232c9af2-7f53-4c59-9da7-8199210ad660", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7813ab2c-625d-4941-924e-61bd1c644510", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "75f668f2-3e48-4b34-9cc7-abe95f61b157", + "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": "Process the following data for task 'Blood Test Email Alert':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Blood Test Email Alert" + } + }, + "id": "57a825b5-95b8-4f20-bfcf-48a9da28ef9e", + "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": "Blood Test Email Alert" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "243a70eb-4c62-4ca4-a6fc-81c9171caaf7", + "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": "Blood Test Email Alert error: {$json.error.message}" + }, + "id": "52782e9d-b356-438b-a575-c4d9c6647a41", + "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 +} \ No newline at end of file diff --git a/Misc/calendar_event_auto-tag.json b/Misc/calendar_event_auto-tag.json new file mode 100644 index 0000000..7d402af --- /dev/null +++ b/Misc/calendar_event_auto-tag.json @@ -0,0 +1,355 @@ +{ + "name": "Calendar Event Auto-tag", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Calendar Event Auto-tag", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "d41f0bca-60f2-42f6-8283-6b90cd9da0fb", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "calendar-event-auto-tag" + }, + "id": "b9699e56-abbc-4dbd-a302-34778ca57807", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "45e22857-69e5-4910-a8a4-eba26439c991", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "0c75dd00-f3d3-4dbe-9485-4d5b3a584e3f", + "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": "calendar_event_auto-tag" + }, + "id": "651f51f2-51a6-4507-b3f4-86e2be5be9fc", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "calendar_event_auto-tag" + }, + "id": "2097dece-c795-48c4-ab4a-e61e2dae9e2d", + "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": "a2f32ba3-0b89-4300-af68-c2676fceec51", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "0e0165a0-b5cf-4c04-b28f-45e646dd6eb8", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "5b28014a-edff-4b54-a156-50ea240a0f3d", + "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 'Calendar Event Auto-tag':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Calendar Event Auto-tag" + } + }, + "id": "d875843e-628a-4acf-b837-887a1e9b5513", + "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": "Calendar Event Auto-tag" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "9b3cbd85-6d08-4155-841f-b25dc2a8fb20", + "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": "Calendar Event Auto-tag error: {$json.error.message}" + }, + "id": "ad91cf83-861e-4574-8c7e-54735fcfe7f3", + "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 +} \ No newline at end of file diff --git a/Misc/calendar_to_clickup.json b/Misc/calendar_to_clickup.json new file mode 100644 index 0000000..9e478ce --- /dev/null +++ b/Misc/calendar_to_clickup.json @@ -0,0 +1,365 @@ +{ + "name": "Calendar to ClickUp", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Calendar to ClickUp", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "7c2f6c31-cef6-4faa-85d2-1b612ca47738", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "calendar-to-clickup" + }, + "id": "616b196a-7236-4a77-85d2-8ce0bea08e1a", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "3069949e-0f7e-4e4c-bb8b-0c47fc2e46c5", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "ea8f8a1f-5338-47b5-afc1-293b76318357", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "calendar_to_clickup", + "mode": "list", + "cachedResultName": "calendar_to_clickup" + } + }, + "id": "b341bded-d136-4a8d-9f00-861b8437e4aa", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "calendar_to_clickup", + "mode": "list", + "cachedResultName": "calendar_to_clickup" + } + }, + "id": "b7ebe434-8f63-4f1f-b422-b14cea1ea63e", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "4528b267-fcda-42d7-a0e3-de6cda9f5a1a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ea1959d2-be0c-4b6f-93f4-962b33e835ed", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "4e2527c8-2303-4265-b3d3-dd3bcdbdfb61", + "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 'Calendar to ClickUp':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Calendar to ClickUp" + } + }, + "id": "4167d420-b67d-4d8f-9b2a-259d650e3a3f", + "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": "Calendar to ClickUp" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "107584cc-3d6b-4c62-957a-9ef5a3fe4f2a", + "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": "Calendar to ClickUp error: {$json.error.message}" + }, + "id": "ba428de4-7fdf-42f7-9214-0f66a7ef77f1", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/course_completion_certificate.json b/Misc/course_completion_certificate.json new file mode 100644 index 0000000..11e1f9a --- /dev/null +++ b/Misc/course_completion_certificate.json @@ -0,0 +1,355 @@ +{ + "name": "Course Completion Certificate", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Course Completion Certificate", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "00188eee-a2bc-4d65-bea7-22693ab8d22e", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "course-completion-certificate" + }, + "id": "7853e915-bbc6-44ea-9756-b2a0d25ba361", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "c4963bac-745d-4822-bc0d-5b47d4d4eb48", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "eac7a044-6d99-4607-b9b6-ec9e3d2fbb97", + "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": "course_completion_certificate" + }, + "id": "a11419fc-733e-4ce2-9755-eba3fb7164c1", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "course_completion_certificate" + }, + "id": "9276d92b-ce2d-4fa3-a028-0d27d17d5d2c", + "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": "6ccce1d0-d448-4e7e-a094-cc720756e668", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f1db10d2-bf1a-4569-bac3-f44825040634", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a2f054a8-22d1-4dbb-ab4e-06ba254d97a6", + "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 'Course Completion Certificate':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Course Completion Certificate" + } + }, + "id": "457880d0-86d1-42e8-b91e-658967a70c21", + "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": "Course Completion Certificate" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "c60c62d0-9301-41c4-8cf6-5dcb6d065950", + "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": "Course Completion Certificate error: {$json.error.message}" + }, + "id": "4987eb2b-a7ce-4689-b0b3-b87f9ab983e3", + "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 +} \ No newline at end of file diff --git a/Misc/crm_patient_intake.json b/Misc/crm_patient_intake.json new file mode 100644 index 0000000..efa8a17 --- /dev/null +++ b/Misc/crm_patient_intake.json @@ -0,0 +1,355 @@ +{ + "name": "CRM Patient Intake", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: CRM Patient Intake", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "86b9f13f-62f9-458f-ad1f-551c22acc97c", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "crm-patient-intake" + }, + "id": "4b09900a-e4e7-4144-a460-cb44ceca072f", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "c5dacca0-17d6-4413-8ec8-ad721be328d2", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "68a58074-378e-469d-9022-b3c83bf8ee6c", + "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": "crm_patient_intake" + }, + "id": "9720a931-4c26-45b9-a8c9-31d352d534d8", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "crm_patient_intake" + }, + "id": "023dbcb5-e494-4c25-a83d-6c4e8f78888b", + "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": "c988cbab-d0da-4d21-a19f-9d499df5376b", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "eeec0d68-4233-4083-aedf-f9f81ead580f", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "9ee23255-eb1c-457b-849b-b5e8b38d447b", + "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": "Process the following data for task 'CRM Patient Intake':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for CRM Patient Intake" + } + }, + "id": "7852e84c-7f0b-44dd-8843-4c3d74d4b8ce", + "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": "CRM Patient Intake" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "fdb770b5-451d-4b86-b968-6b3101545a94", + "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": "CRM Patient Intake error: {$json.error.message}" + }, + "id": "c9724e0b-7606-43a4-9765-2a4dd1d01646", + "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 +} \ No newline at end of file diff --git a/Misc/cron_success_slack.json b/Misc/cron_success_slack.json new file mode 100644 index 0000000..794d35f --- /dev/null +++ b/Misc/cron_success_slack.json @@ -0,0 +1,355 @@ +{ + "name": "Cron Success Slack", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Cron Success Slack", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "b03d8e1e-d7b2-442c-9fae-ccf65c4125a7", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "cron-success-slack" + }, + "id": "3f1813a6-4c11-437c-a487-fd91b2c0988f", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "51415661-613f-4c39-9abf-6eb052df2251", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "5b064711-d117-44cd-83f4-789be1762c3a", + "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": "cron_success_slack" + }, + "id": "0d3f05c1-1023-4aa1-897f-87de0ca47a39", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "cron_success_slack" + }, + "id": "b8778660-dd26-4673-91b7-822e543607ef", + "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": "6855ebd4-1b15-485f-90ab-a9755d50ba60", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f57b718e-8d0c-4bd4-810d-fbc53fb37133", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "f0e56d0c-773e-4a79-8299-082b5f6ab424", + "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": "Process the following data for task 'Cron Success Slack':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Cron Success Slack" + } + }, + "id": "20ac9f41-be41-4862-82ce-afbfe3abda1d", + "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": "Cron Success Slack" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "10e0dee3-1d1e-4ad0-b1cf-89699aefb1fd", + "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": "Cron Success Slack error: {$json.error.message}" + }, + "id": "b7bfc454-6aaf-46c9-b35c-e88974babc1b", + "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 +} \ No newline at end of file diff --git a/Misc/csv_attachment_to_airtable.json b/Misc/csv_attachment_to_airtable.json new file mode 100644 index 0000000..4ab2550 --- /dev/null +++ b/Misc/csv_attachment_to_airtable.json @@ -0,0 +1,365 @@ +{ + "name": "CSV Attachment to Airtable", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: CSV Attachment to Airtable", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "8301780b-c5bd-48b4-9288-f69b1c8ba012", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "csv-attachment-to-airtable" + }, + "id": "f2045b0e-4bf6-4788-afac-442f93a9974d", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "14d8c6a2-cd6e-4a57-af38-3f2a56aec148", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "5ece73c9-1c2c-40b7-a5c3-faebc32150a5", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "csv_attachment_to_airtable", + "mode": "list", + "cachedResultName": "csv_attachment_to_airtable" + } + }, + "id": "84e50d79-ac2c-45a3-84d6-4996378952bc", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "csv_attachment_to_airtable", + "mode": "list", + "cachedResultName": "csv_attachment_to_airtable" + } + }, + "id": "af1a60d0-bf2b-4cd8-bd36-77eb41d439e4", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "ac062bd5-d5ea-45c8-81e3-f2c25a84691c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "717a5d25-6283-498d-a866-d827a1b31e5b", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "5f81d9fb-3d8c-4824-9ad8-a7a48a251232", + "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": "Process the following data for task 'CSV Attachment to Airtable':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for CSV Attachment to Airtable" + } + }, + "id": "9597ffe2-20a8-49df-98bf-bc722d5af74f", + "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": "CSV Attachment to Airtable" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "77736a14-1aff-4736-8345-270bfbc5d262", + "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": "CSV Attachment to Airtable error: {$json.error.message}" + }, + "id": "c80995ec-dba6-4418-b275-8b8ccf01112d", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/customer_auto-tagging.json b/Misc/customer_auto-tagging.json new file mode 100644 index 0000000..053f420 --- /dev/null +++ b/Misc/customer_auto-tagging.json @@ -0,0 +1,365 @@ +{ + "name": "Customer Auto-tagging", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Customer Auto-tagging", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9f1c238b-8782-4c9d-8f31-70ea9793ffa1", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "customer-auto-tagging" + }, + "id": "85f21561-f8cf-4292-96c6-5b73484e95bd", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "2c222980-aa73-4e0b-9a39-b9b15835cfcb", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "040314a3-fbfa-453d-9162-c149ea7ebd25", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "customer_auto-tagging", + "mode": "list", + "cachedResultName": "customer_auto-tagging" + } + }, + "id": "cc35e2b3-4495-4dcc-ae87-35e39a99fbdf", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "customer_auto-tagging", + "mode": "list", + "cachedResultName": "customer_auto-tagging" + } + }, + "id": "95966bc7-b3d8-4f9c-9af2-baf9ccfd4254", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "fbff62ae-f2ff-441d-927f-5b35a26b4e3f", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "1ccb9845-18a2-43a9-be19-520384e40b13", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "c4667e9a-c357-4d63-94a5-aee983169921", + "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 'Customer Auto-tagging':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Customer Auto-tagging" + } + }, + "id": "9d38d1cc-9ae6-459d-ab4a-63e57afac794", + "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": "Customer Auto-tagging" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "86e15f12-c9a3-4177-bb69-9dfb9d81c651", + "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": "Customer Auto-tagging error: {$json.error.message}" + }, + "id": "95afe2a2-f3f2-4879-b4f1-533c35e6ac0d", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/disaster_api_sms.json b/Misc/disaster_api_sms.json new file mode 100644 index 0000000..bce982b --- /dev/null +++ b/Misc/disaster_api_sms.json @@ -0,0 +1,355 @@ +{ + "name": "Disaster API SMS", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Disaster API SMS", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "69257a08-9220-4154-99e2-37bb863ffbf1", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "disaster-api-sms" + }, + "id": "2d2f47ff-0270-49e9-8eae-b2953001fea5", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "d9372145-e221-48ad-8307-074fb66158c9", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "8af454d1-43d4-4d9b-87b6-8b27ae50fbbe", + "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": "disaster_api_sms" + }, + "id": "e6468b01-b39b-415b-af3c-739622e715c8", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "disaster_api_sms" + }, + "id": "d25b5499-42aa-4b97-9051-e11762523d98", + "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": "8c4ffec5-8b34-4d3d-a598-9244e3ef5aaf", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "e0077d9b-ebae-4102-b038-beadcdf71f0b", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "1cde59f5-0cfe-40d6-8652-360c1e2606ca", + "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": "Process the following data for task 'Disaster API SMS':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Disaster API SMS" + } + }, + "id": "de908410-ed39-485d-b33b-c98ebc6edbd6", + "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": "Disaster API SMS" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "01254f9e-0418-488f-ae6c-8d159c76f4f9", + "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": "Disaster API SMS error: {$json.error.message}" + }, + "id": "d2328665-5b92-4bfd-b840-7bddb01c99f3", + "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 +} \ No newline at end of file diff --git a/Misc/drink_water_reminder.json b/Misc/drink_water_reminder.json new file mode 100644 index 0000000..e0c0bab --- /dev/null +++ b/Misc/drink_water_reminder.json @@ -0,0 +1,355 @@ +{ + "name": "Drink Water Reminder", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Drink Water Reminder", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "ed0b6b94-6a94-459d-80d6-b0518159e0ba", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "drink-water-reminder" + }, + "id": "201ce50f-f77e-4158-8906-4644e6149164", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "e8c52f63-a4ec-4be6-bdd5-2bc2a9be7f2b", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "a262a182-2e66-403a-adf1-8abac8978048", + "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": "drink_water_reminder" + }, + "id": "7762e59b-4eee-4678-97b8-8c738d1bbd41", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "drink_water_reminder" + }, + "id": "51ae1340-fc63-469b-914f-0808a9f06982", + "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": "e969e9b4-2c70-4439-a568-04d7a65dcba7", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "5e929e1e-2299-47c0-88b2-07186e7e36d6", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "bfdde168-99df-4b0a-bf81-c1bb8e1cc03a", + "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 'Drink Water Reminder':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Drink Water Reminder" + } + }, + "id": "58d6b2d9-dd3b-4875-bb4c-d3be55cd5cd8", + "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": "Drink Water Reminder" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "3b941dbb-1b0d-465b-b2d8-631caeb45aeb", + "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": "Drink Water Reminder error: {$json.error.message}" + }, + "id": "a42e5614-ba09-4115-a7a5-bc5c07706df8", + "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 +} \ No newline at end of file diff --git a/Misc/etsy_review_to_slack.json b/Misc/etsy_review_to_slack.json new file mode 100644 index 0000000..008c04e --- /dev/null +++ b/Misc/etsy_review_to_slack.json @@ -0,0 +1,355 @@ +{ + "name": "Etsy Review to Slack", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Etsy Review to Slack", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9ada3f67-3926-4995-8f82-0f8265c7da57", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "etsy-review-to-slack" + }, + "id": "51db7f77-5b42-4259-bb85-216d79fcbc01", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "9e891d18-bca7-4422-807c-141de650b33d", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "fbb181b3-49c1-4ace-a94e-a76e5ad7edcf", + "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": "etsy_review_to_slack" + }, + "id": "0ebef6a8-753a-470e-a984-5a10932fe1b8", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "etsy_review_to_slack" + }, + "id": "e79e1d34-4dd4-42d0-b35d-bd520abd2103", + "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": "41b356e4-b29e-4b80-950d-53fbb1035a35", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "3e5896c8-c0ae-435a-93ee-048a3cd5f8ef", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "da4d79ca-74f7-4d86-96f4-14f4ecd88a16", + "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 'Etsy Review to Slack':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Etsy Review to Slack" + } + }, + "id": "218c49e7-8815-4df7-8544-36f413a1eb98", + "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": "Etsy Review to Slack" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "2c838709-3373-44d0-bf31-87d60a1c351b", + "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": "Etsy Review to Slack error: {$json.error.message}" + }, + "id": "68cee1a3-f365-4358-a9b3-e374260270be", + "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 +} \ No newline at end of file diff --git a/Misc/fitness_api_weekly_report.json b/Misc/fitness_api_weekly_report.json new file mode 100644 index 0000000..51b9546 --- /dev/null +++ b/Misc/fitness_api_weekly_report.json @@ -0,0 +1,355 @@ +{ + "name": "Fitness API Weekly Report", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Fitness API Weekly Report", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "fb5b6cc9-a3ca-4c2c-bd10-1545178cd1ed", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "fitness-api-weekly-report" + }, + "id": "344206c2-8c8c-4fbb-858a-c0e8eedc2ce0", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "2e12fc58-d1e8-4878-82bc-e22fee023178", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "35886feb-ae64-4aa0-a2e8-547e50be4aa6", + "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": "fitness_api_weekly_report" + }, + "id": "92ee7d9d-e7c4-4e59-b838-31c9c9a8bd14", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "fitness_api_weekly_report" + }, + "id": "5b028e05-8481-4805-b63e-725f96511836", + "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": "83a18d4e-1ca4-4d27-b86e-74e2cbfdb959", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "164d5925-32e6-4c0d-82c2-aa41700bef8d", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "da0b3613-27f6-475a-a68b-c2af2c462ac3", + "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 'Fitness API Weekly Report':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Fitness API Weekly Report" + } + }, + "id": "e037ce6e-8a01-4a60-8560-83151db3c6f0", + "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": "Fitness API Weekly Report" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "7f166559-0c74-4fa3-9958-bc492bb87d08", + "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": "Fitness API Weekly Report error: {$json.error.message}" + }, + "id": "bfd4a5fa-28b7-4f39-923a-064ca8d964cf", + "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 +} \ No newline at end of file diff --git a/Misc/ga_report_email.json b/Misc/ga_report_email.json new file mode 100644 index 0000000..3e9d42f --- /dev/null +++ b/Misc/ga_report_email.json @@ -0,0 +1,365 @@ +{ + "name": "GA Report Email", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: GA Report Email", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "4f1aab57-9308-4e86-9152-61fbfa3365a9", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "ga-report-email" + }, + "id": "65695649-dfc5-4677-af78-567051da6234", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "22d39ff9-e8dd-4313-acb9-acdcd9f182b5", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "72155732-71f4-430d-bac5-57a8842ddf00", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "ga_report_email", + "mode": "list", + "cachedResultName": "ga_report_email" + } + }, + "id": "e8c7d48f-3e97-43fd-84bb-4dcb616db2a2", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "ga_report_email", + "mode": "list", + "cachedResultName": "ga_report_email" + } + }, + "id": "7970719b-0019-46eb-a2db-84a2b521bd2c", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "f9dc8e53-1929-4110-af74-421e6cdafd5e", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "a1d434ec-e2cc-4e88-b7c0-e4d697bb6833", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "47f73715-e5ee-4f85-a7ae-99b049c4ad90", + "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 'GA Report Email':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for GA Report Email" + } + }, + "id": "d90712e6-0d32-4474-9bd5-665e46dab37f", + "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": "GA Report Email" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "97fb2a42-c618-4a3e-b35b-18123b46da9a", + "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": "GA Report Email error: {$json.error.message}" + }, + "id": "84e064b7-1ad4-4cbc-97aa-a65eb5a8d6e9", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/grant_application_routing.json b/Misc/grant_application_routing.json new file mode 100644 index 0000000..f621e99 --- /dev/null +++ b/Misc/grant_application_routing.json @@ -0,0 +1,355 @@ +{ + "name": "Grant Application Routing", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Grant Application Routing", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "617b027d-f07d-4f02-991e-e0849d539894", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "grant-application-routing" + }, + "id": "dde8f45d-7cd6-4fd7-9f9d-251cd9c77c83", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "b245846a-bd59-42e8-8e2b-dc0a52250848", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "85d8d786-d82d-44aa-baf7-44b2012aedcb", + "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": "grant_application_routing" + }, + "id": "d8b6b087-21de-4f50-9bfc-e838d9065861", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "grant_application_routing" + }, + "id": "c5d0fbe8-a21a-4565-a08c-e138c83e498d", + "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": "8e30a670-ca06-4755-9de3-5a7ce685e436", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "429f791a-5173-4481-8962-4ece4084d641", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "3eafa51a-284f-40cd-af6b-267a1901b9d6", + "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 'Grant Application Routing':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Grant Application Routing" + } + }, + "id": "492a65b2-b17e-41f4-9cb3-a33434ec9b22", + "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": "Grant Application Routing" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "92aa830c-345d-4c2f-9995-def7960bcb61", + "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": "Grant Application Routing error: {$json.error.message}" + }, + "id": "bbb4a1df-650b-459b-8306-35a8d6daeb50", + "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 +} \ No newline at end of file diff --git a/Misc/habit_form_weekly_summary.json b/Misc/habit_form_weekly_summary.json new file mode 100644 index 0000000..f731559 --- /dev/null +++ b/Misc/habit_form_weekly_summary.json @@ -0,0 +1,355 @@ +{ + "name": "Habit Form Weekly Summary", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Habit Form Weekly Summary", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "7b944cd3-60b2-41b7-b889-5b024ced0c89", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "habit-form-weekly-summary" + }, + "id": "ac0c36ba-43c3-489a-9a4c-c86a7d639a1f", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "4fbb3ced-45ca-421b-b317-48d64e758d12", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "42114436-997f-4fb9-beeb-de2ca3488fdb", + "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": "habit_form_weekly_summary" + }, + "id": "0722c641-3b7a-40ad-8983-5b8ecfa389b2", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "habit_form_weekly_summary" + }, + "id": "07be59f8-c6ef-4bc2-a526-7b6e9b36c5ec", + "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": "f84a5cf4-06ed-461f-a1ef-d793e742590a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "032e9fb8-fe54-4280-b0d1-d52f6c90e9e2", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "94ce5622-db58-490e-8f7a-add3e0864617", + "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 'Habit Form Weekly Summary':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Habit Form Weekly Summary" + } + }, + "id": "4ebafa38-6715-4530-a9d0-346a1cbb2603", + "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": "Habit Form Weekly Summary" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "366ff844-9210-4681-be50-f3022b5dfe48", + "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": "Habit Form Weekly Summary error: {$json.error.message}" + }, + "id": "c3009b9c-07ab-48ec-a6fc-f9ced5717941", + "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 +} \ No newline at end of file diff --git a/Misc/hourly_weather_log.json b/Misc/hourly_weather_log.json new file mode 100644 index 0000000..d40d3f6 --- /dev/null +++ b/Misc/hourly_weather_log.json @@ -0,0 +1,365 @@ +{ + "name": "Hourly Weather Log", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Hourly Weather Log", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "51aa653a-88c3-4c63-a30e-23e01031d76c", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "hourly-weather-log" + }, + "id": "955ca4d7-8066-4712-ad7f-eeab2a629b08", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "f318ebee-206e-4347-9ef6-141b8d3d4e38", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "a911e7f9-4f45-4147-8587-c30df655785d", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "hourly_weather_log", + "mode": "list", + "cachedResultName": "hourly_weather_log" + } + }, + "id": "75934585-942c-4b4f-92c1-bda09dc8328e", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "hourly_weather_log", + "mode": "list", + "cachedResultName": "hourly_weather_log" + } + }, + "id": "81757525-16d6-4d55-885a-268ba7664b51", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "844830f7-13a2-43af-91ea-5aa08a5f9eaf", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "febe0952-37a0-4da6-a0fb-ddfe003ce96a", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "81d81450-043b-48c2-a451-1dfe378bd650", + "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 'Hourly Weather Log':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Hourly Weather Log" + } + }, + "id": "913a12fc-d88b-4041-bb4a-25d6f4f7504b", + "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": "Hourly Weather Log" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "7928b2a8-a1c7-480e-8e73-9e5ffd5d2680", + "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": "Hourly Weather Log error: {$json.error.message}" + }, + "id": "76b5c2b4-ba2f-4468-b089-71108eb88420", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/idea_to_ig_carousel.json b/Misc/idea_to_ig_carousel.json new file mode 100644 index 0000000..5b92d2b --- /dev/null +++ b/Misc/idea_to_ig_carousel.json @@ -0,0 +1,355 @@ +{ + "name": "Idea to IG Carousel", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Idea to IG Carousel", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "54134b2f-ee07-4ee3-8934-091e0cc39c6d", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "idea-to-ig-carousel" + }, + "id": "0557fff1-0a8e-4013-b7ec-ac586a69ab59", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "dd6a352a-89f3-4456-b938-f407c2702e16", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "b20d9054-64c5-4e92-9e49-5c7f5808590a", + "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": "idea_to_ig_carousel" + }, + "id": "1a52a5a3-2ce3-406f-9ad1-98b30266be23", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "idea_to_ig_carousel" + }, + "id": "72a71b2d-bb5d-4545-9482-a524dda1e1b0", + "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": "64a8d0c4-6d19-4726-a74c-7220105d0ce9", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "fb391d71-831a-4785-a6f8-fcb394893cd3", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a37dc046-d17e-44b1-b0af-3d40f8a7cd3a", + "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": "Process the following data for task 'Idea to IG Carousel':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Idea to IG Carousel" + } + }, + "id": "20b5f76e-141a-412b-9b8d-9d2e2ec88641", + "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": "Idea to IG Carousel" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "f4779a50-0a27-4916-889c-b4164139db72", + "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": "Idea to IG Carousel error: {$json.error.message}" + }, + "id": "5d1c9252-8f74-40d5-aae1-b1ad869d16d1", + "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 +} \ No newline at end of file diff --git a/Misc/interview_scheduler.json b/Misc/interview_scheduler.json new file mode 100644 index 0000000..18adc5d --- /dev/null +++ b/Misc/interview_scheduler.json @@ -0,0 +1,355 @@ +{ + "name": "Interview Scheduler", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Interview Scheduler", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "29ebd35b-f428-4229-ae22-5601a2462b42", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "interview-scheduler" + }, + "id": "3c628416-38b1-47e0-99f5-96f5bd7ccd4c", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "186c76a5-0685-4d2f-a393-e4ef88ce1aae", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "e79dbc8f-eb89-4738-a95b-778cf9107690", + "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": "interview_scheduler" + }, + "id": "f76b463b-138b-4e56-9c1c-3f6547ff4131", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "interview_scheduler" + }, + "id": "f50cecc1-26bf-4069-b176-503943b30cb8", + "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": "8f7b7e77-a500-4e5e-b6be-2055430c83b4", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "d66d9836-2f7b-4637-a0f9-4df46ebd65b8", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "8a4a94a8-d20f-4e25-a391-6b38f9184f0b", + "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 'Interview Scheduler':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Interview Scheduler" + } + }, + "id": "8eb1e7ec-409f-4aee-a411-c611adb5a09e", + "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": "Interview Scheduler" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "5bd51947-ad76-40ca-b49f-614102d20d75", + "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": "Interview Scheduler error: {$json.error.message}" + }, + "id": "7ef1a95a-12b8-4b48-867b-d1ad62f4ceec", + "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 +} \ No newline at end of file diff --git a/Misc/issue_trello_card.json b/Misc/issue_trello_card.json new file mode 100644 index 0000000..b36f359 --- /dev/null +++ b/Misc/issue_trello_card.json @@ -0,0 +1,355 @@ +{ + "name": "Issue Trello Card", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Issue Trello Card", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "ffde606d-21f9-46d6-b42a-7a7b85966a40", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "issue-trello-card" + }, + "id": "2c7406e0-da42-4bfb-8c62-4a249a6f2f77", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "068f1d79-d90c-4f1a-9625-98ccb22a77f0", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "f0266964-6acb-4e74-92d6-41bcce892631", + "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": "issue_trello_card" + }, + "id": "81d47557-d8b7-4f1e-af5d-132f387df011", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "issue_trello_card" + }, + "id": "7929908d-f850-4062-8d76-a7ff9dd0f8e3", + "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": "c3245d8a-627e-425b-afc8-f8a024ef95af", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "e1e8ad99-075a-435f-84b8-f6972f232af5", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "7f4e69ff-d8aa-48dd-8383-dbef10749fcf", + "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": "Process the following data for task 'Issue Trello Card':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Issue Trello Card" + } + }, + "id": "488d5b09-7889-4783-8204-5716d88f86e1", + "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": "Issue Trello Card" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "374e3b87-35e3-4ebf-a097-8b2ddf56e667", + "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": "Issue Trello Card error: {$json.error.message}" + }, + "id": "51574494-a67b-4ff6-96ad-a414525a9ea6", + "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 +} \ No newline at end of file diff --git a/Misc/json_to_sheet.json b/Misc/json_to_sheet.json new file mode 100644 index 0000000..6af3d75 --- /dev/null +++ b/Misc/json_to_sheet.json @@ -0,0 +1,365 @@ +{ + "name": "JSON to Sheet", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: JSON to Sheet", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "22ae73af-1660-49c3-97b3-3e896eaab598", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "json-to-sheet" + }, + "id": "2b9c6e14-8640-4c28-a593-07c2c7b34dcc", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "a3ffd546-08d9-48cb-9cf1-814f585c244e", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "26b8037e-5205-4e2e-9f84-f45759cdc143", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "json_to_sheet", + "mode": "list", + "cachedResultName": "json_to_sheet" + } + }, + "id": "8e87db29-aed5-4470-974b-2d9a7f80c050", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "json_to_sheet", + "mode": "list", + "cachedResultName": "json_to_sheet" + } + }, + "id": "1a4f3b0a-2109-4277-82d5-d2f8bad3e1b8", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "d9de9e88-d22b-400e-a6c9-6c33c6a6bf62", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "39699355-6f61-45d7-ac91-739b8ae368ad", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "69b5c1aa-f248-4db2-b35a-f5ac7470b2ce", + "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 'JSON to Sheet':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for JSON to Sheet" + } + }, + "id": "6fbd4ea9-4762-4904-a2a6-eea9f6d7f629", + "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": "JSON to Sheet" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "3b91edac-b782-4e3b-8b42-a6b45da192c7", + "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": "JSON to Sheet error: {$json.error.message}" + }, + "id": "40ba60ac-f1dd-4440-9339-3ec56db3532e", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/keyword_rank_checker.json b/Misc/keyword_rank_checker.json new file mode 100644 index 0000000..a59308a --- /dev/null +++ b/Misc/keyword_rank_checker.json @@ -0,0 +1,365 @@ +{ + "name": "Keyword Rank Checker", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Keyword Rank Checker", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "d00aa5cd-2981-4071-84fc-e3de476eb2b2", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "keyword-rank-checker" + }, + "id": "972f3da6-471e-44eb-a9f5-0466549f6b15", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "f791b601-16df-43af-9143-de71bb580fc3", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "f86574e7-b2df-4d40-8584-22358a65ac1b", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "keyword_rank_checker", + "mode": "list", + "cachedResultName": "keyword_rank_checker" + } + }, + "id": "4b633ac2-3e70-4ff3-abc1-98be488a7947", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "keyword_rank_checker", + "mode": "list", + "cachedResultName": "keyword_rank_checker" + } + }, + "id": "870105c9-1129-4898-a4bb-3324bd44925e", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "01144960-9194-4d3b-838a-7e173be01ab1", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7dfa5c62-a11b-45fc-8bce-65501cd3e82e", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "97a934f6-419d-4215-b387-177c5bccfd38", + "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 'Keyword Rank Checker':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Keyword Rank Checker" + } + }, + "id": "1795a245-6b80-4c82-95b3-06c0401489e1", + "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": "Keyword Rank Checker" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "c8c6865f-915d-4009-8d0a-0905cc78cb55", + "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": "Keyword Rank Checker error: {$json.error.message}" + }, + "id": "01d3638c-42b4-4973-aef8-73590c69fa0e", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/low_stock_discord.json b/Misc/low_stock_discord.json new file mode 100644 index 0000000..29c30d2 --- /dev/null +++ b/Misc/low_stock_discord.json @@ -0,0 +1,365 @@ +{ + "name": "Low Stock Discord", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Low Stock Discord", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "b8ef13db-322d-4720-aaf3-7721bd8e6e80", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "low-stock-discord" + }, + "id": "f991c8e6-2992-48db-81d5-a42231e624c4", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "9cd9834a-143e-41da-b019-cc49c5989d93", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "0966b81f-85e9-4607-859d-62634d769406", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "low_stock_discord", + "mode": "list", + "cachedResultName": "low_stock_discord" + } + }, + "id": "8614a99c-b543-4390-ba45-2a96ca1e63c3", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "low_stock_discord", + "mode": "list", + "cachedResultName": "low_stock_discord" + } + }, + "id": "53da28ef-3686-439d-938e-39d996c9ba6c", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "56126f8f-464f-4a1c-aed0-6b1e8769d079", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "b74a3d7a-f381-4097-8f4e-f5c8747191f1", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "9cb002e3-f7e7-4a40-a949-6e0c3ce85038", + "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": "Process the following data for task 'Low Stock Discord':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Low Stock Discord" + } + }, + "id": "b4a5efd2-c5c3-4bc2-a91c-45398ee7fc6c", + "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": "Low Stock Discord" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "2fb9d0e8-6181-40b5-a98b-d4089226c5c7", + "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": "Low Stock Discord error: {$json.error.message}" + }, + "id": "9430d717-9c59-41ef-81d1-d148720f9fd0", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/medication_sms_reminder.json b/Misc/medication_sms_reminder.json new file mode 100644 index 0000000..c171622 --- /dev/null +++ b/Misc/medication_sms_reminder.json @@ -0,0 +1,355 @@ +{ + "name": "Medication SMS Reminder", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Medication SMS Reminder", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "e375f277-fe00-4b84-9ea1-e857a74bbae2", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "medication-sms-reminder" + }, + "id": "4c5aa5e0-752e-48f0-ae94-be8888892e7d", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "7cd06a1f-b407-4b53-8061-a53487bbfffa", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "738d34ba-e6b6-4e3a-9248-ef1f4818c3ba", + "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": "medication_sms_reminder" + }, + "id": "a3f0b3e4-fc10-483f-ba86-f538f8519828", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "medication_sms_reminder" + }, + "id": "3e00b69e-4134-4228-a940-4007fe485227", + "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": "fcba2e14-0747-4adb-903d-a2965f7279ba", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "c85c12f3-bb6b-4783-bc85-f7b25e195654", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "ae92f4c9-30d7-40c8-858b-3ac32a9e84cb", + "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": "Process the following data for task 'Medication SMS Reminder':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Medication SMS Reminder" + } + }, + "id": "8d120bef-6619-4313-8b3b-2739626f4d4b", + "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": "Medication SMS Reminder" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "55d8515a-e6d8-4338-82a8-6bc053f4b81a", + "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": "Medication SMS Reminder error: {$json.error.message}" + }, + "id": "0c856440-0210-4401-8a19-4e3033cda466", + "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 +} \ No newline at end of file diff --git a/Misc/notion_api_update.json b/Misc/notion_api_update.json new file mode 100644 index 0000000..7cfc52b --- /dev/null +++ b/Misc/notion_api_update.json @@ -0,0 +1,355 @@ +{ + "name": "Notion API Update", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Notion API Update", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "f6eedc53-53fe-45e3-be02-ee32b2bc2548", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "notion-api-update" + }, + "id": "97e8e13c-6fe1-4756-83fe-f3106f99b4bd", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "b4faac7a-fac8-49c6-b6e9-105dc0097ef0", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "8bfcea9f-6dee-4038-a2d1-7f2c8b8368b6", + "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": "notion_api_update" + }, + "id": "4fb1d720-e915-4a9f-8697-3349b879a922", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "notion_api_update" + }, + "id": "316f1a80-040b-480e-bfbe-c54cfd217db5", + "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": "839a9f23-7777-47ca-acc7-2aab8bec04a5", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "6280048e-4689-4f3b-a73d-2ab89e73f02a", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "46ef3d02-55d4-4733-8b2e-8494a20c30d7", + "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": "Process the following data for task 'Notion API Update':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Notion API Update" + } + }, + "id": "f2b616b4-b278-49c6-93ed-9cd28ed91d31", + "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": "Notion API Update" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "0d8f0c1f-a667-4b44-befd-36b2b2fd162d", + "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": "Notion API Update error: {$json.error.message}" + }, + "id": "ce94609f-2f12-4f5c-8900-6cdca74e0284", + "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 +} \ No newline at end of file diff --git a/Misc/onboarding_checklist_slack.json b/Misc/onboarding_checklist_slack.json new file mode 100644 index 0000000..55132d6 --- /dev/null +++ b/Misc/onboarding_checklist_slack.json @@ -0,0 +1,355 @@ +{ + "name": "Onboarding Checklist Slack", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Onboarding Checklist Slack", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "47baf67d-8d9c-4ff2-a315-52b5044d77de", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "onboarding-checklist-slack" + }, + "id": "a5a701dc-07df-4876-9e7f-2686ed66a383", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "713d5ed4-d517-4823-a61c-9700a342b20a", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "eaa8c182-8035-46fe-a91d-49ffee0a2f0c", + "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": "onboarding_checklist_slack" + }, + "id": "96bc3a2d-ef03-417a-b967-7c174604b874", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "onboarding_checklist_slack" + }, + "id": "736e3e0d-6670-4a38-977e-73983e7915e0", + "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": "0b422760-05ca-45e8-9335-3349187c8041", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "e493bfbf-0966-41f4-a49f-19e2496047e0", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "97e21be6-5b77-49da-beda-189f5cd592d4", + "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": "Process the following data for task 'Onboarding Checklist Slack':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Onboarding Checklist Slack" + } + }, + "id": "b40c8009-ff84-477c-a34d-700d13ffbfe2", + "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": "Onboarding Checklist Slack" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "2d5166e2-784a-4b23-86a9-7b8b61a4ca32", + "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": "Onboarding Checklist Slack error: {$json.error.message}" + }, + "id": "e6265a5d-a893-4177-9e00-28566cd1f6ee", + "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 +} \ No newline at end of file diff --git a/Misc/order_shipped_notification.json b/Misc/order_shipped_notification.json new file mode 100644 index 0000000..809d26d --- /dev/null +++ b/Misc/order_shipped_notification.json @@ -0,0 +1,355 @@ +{ + "name": "Order Shipped Notification", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Order Shipped Notification", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "102b6df3-b365-4011-bc03-6098a0d8540e", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "order-shipped-notification" + }, + "id": "896137be-72ad-4c60-a0cc-b359c2d44c32", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "7d4a82a1-7d85-4fe7-82fd-6e9e4543892f", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "f54b009b-fdd7-4011-9c0f-4fb96cc06f89", + "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": "order_shipped_notification" + }, + "id": "640b4f5d-ec09-401f-a4f7-35876eaad13a", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "order_shipped_notification" + }, + "id": "a712e417-fe97-4925-9efd-45b6a1b519e6", + "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": "26933929-0a50-4cd5-8562-17facb37189e", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7e5737f4-be56-4d49-9633-9a2769557480", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "337be036-25ad-4a52-9fc5-4b903fc20204", + "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": "Process the following data for task 'Order Shipped Notification':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Order Shipped Notification" + } + }, + "id": "1be7b3f2-baf8-4425-af25-3b678718acfb", + "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": "Order Shipped Notification" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "fed26820-aefe-4c14-8d7d-2e16a103390e", + "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": "Order Shipped Notification error: {$json.error.message}" + }, + "id": "f665c2f3-d7ea-4c12-b594-33f39318e5f0", + "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 +} \ No newline at end of file diff --git a/Misc/podcast_transcribe_publish.json b/Misc/podcast_transcribe_publish.json new file mode 100644 index 0000000..737eb6b --- /dev/null +++ b/Misc/podcast_transcribe_publish.json @@ -0,0 +1,365 @@ +{ + "name": "Podcast Transcribe Publish", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Podcast Transcribe Publish", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "3250caac-c551-4414-b771-045d05335b65", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "podcast-transcribe-publish" + }, + "id": "4dc05fc9-9cb6-4a65-ad69-9a0af7f01e02", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "e6f71afd-8a8e-44c7-857d-03ce2f44e66d", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "7d411532-cd9d-4d91-880f-b160c5ef09b2", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "podcast_transcribe_publish", + "mode": "list", + "cachedResultName": "podcast_transcribe_publish" + } + }, + "id": "954c0ec8-e81a-4a99-b3f6-f80615cbdc67", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "podcast_transcribe_publish", + "mode": "list", + "cachedResultName": "podcast_transcribe_publish" + } + }, + "id": "fa7eda42-a53e-4422-869f-72004b06f591", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "9b9630dc-0c39-4113-95dd-f9a14297a3d4", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "f55acb08-a56c-4bf1-9652-8e71c1b1de6b", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "ce0a13aa-2923-41c8-bf08-ab52781f18af", + "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": "Process the following data for task 'Podcast Transcribe Publish':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Podcast Transcribe Publish" + } + }, + "id": "d98e5674-0c59-4c03-a132-cec3b31e4021", + "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": "Podcast Transcribe Publish" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "a1695c17-da29-4ab4-bcbf-3fb089bc71b4", + "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": "Podcast Transcribe Publish error: {$json.error.message}" + }, + "id": "719f63b1-9c41-4fb5-a0f6-7ad43ed6e3d9", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/pr_merged_qa_notify.json b/Misc/pr_merged_qa_notify.json new file mode 100644 index 0000000..01fdc3c --- /dev/null +++ b/Misc/pr_merged_qa_notify.json @@ -0,0 +1,365 @@ +{ + "name": "PR Merged QA Notify", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: PR Merged QA Notify", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "61da6a3d-ed28-4145-ad22-3a458684706e", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "pr-merged-qa-notify" + }, + "id": "a5e13a39-aede-46c1-983d-b1308aa2af8e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "528f58ea-f2fb-4535-9276-4a3fc9b22234", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "865827a0-826d-42c2-aa29-d671856ac7a5", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "pr_merged_qa_notify", + "mode": "list", + "cachedResultName": "pr_merged_qa_notify" + } + }, + "id": "85947f4a-c12f-4762-adcf-14803b295ec7", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "pr_merged_qa_notify", + "mode": "list", + "cachedResultName": "pr_merged_qa_notify" + } + }, + "id": "1cc89e6b-684e-400f-af90-21a03d5e655a", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "941e79fa-7702-4da0-9751-87c1f084939e", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "dade008a-5f65-455b-bfea-a753f7660c1c", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "d19a0335-d41f-496d-b2be-def94eba688e", + "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 'PR Merged QA Notify':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for PR Merged QA Notify" + } + }, + "id": "0d91b02f-3e72-4411-9a78-8edebafc6e89", + "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": "PR Merged QA Notify" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "e890dbeb-aecd-498f-95cf-4a3e50e52986", + "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": "PR Merged QA Notify error: {$json.error.message}" + }, + "id": "605ca1e7-fdcb-4af7-88bb-fbab52f29ef9", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/price_update_google_sheet.json b/Misc/price_update_google_sheet.json new file mode 100644 index 0000000..79f7795 --- /dev/null +++ b/Misc/price_update_google_sheet.json @@ -0,0 +1,355 @@ +{ + "name": "Price Update Google Sheet", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Price Update Google Sheet", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "f3d6c335-fb6d-4c4a-8ac0-ccb129e29942", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "price-update-google-sheet" + }, + "id": "f94f069c-11c3-4281-8363-6143ab7d8337", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "be6adfed-ae72-4bf6-ab77-932134c3c357", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "34dd45c7-5971-4417-922e-861b45772f9e", + "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": "price_update_google_sheet" + }, + "id": "d9a146d9-c5ff-42b3-a92f-65385c6cb8c4", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "price_update_google_sheet" + }, + "id": "7e074789-1e7e-4285-9a25-ec3915715115", + "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": "4c5a9833-b4da-47db-825e-27ec760c2ef3", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "3abb71e4-2a79-4072-8bef-64eea7d0718b", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "67055632-9263-459a-acf9-a578009611d6", + "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 'Price Update Google Sheet':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Price Update Google Sheet" + } + }, + "id": "196fb37e-f887-4265-a5ee-a688df670ce0", + "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": "Price Update Google Sheet" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "2bf8dbc5-1f61-4be9-b422-b422509cf571", + "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": "Price Update Google Sheet error: {$json.error.message}" + }, + "id": "bd2a2057-11a1-4297-b119-8926dd9e3716", + "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 +} \ No newline at end of file diff --git a/Misc/record_crypto_prices.json b/Misc/record_crypto_prices.json new file mode 100644 index 0000000..a32e9b0 --- /dev/null +++ b/Misc/record_crypto_prices.json @@ -0,0 +1,353 @@ +{ + "name": "Record Crypto Prices", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Record Crypto Prices", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "33fd92b4-df59-448f-995b-42c96db9ab1d", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "record-crypto-prices" + }, + "id": "979c1efe-0dfc-4ed9-9490-d7fb951553bd", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "8ed3bce0-7f2c-4675-9f9f-8e15834d4b09", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "8cecb33f-8415-449f-ad0e-0ffbf5c89806", + "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": "record_crypto_prices" + }, + "id": "0df6f3cb-994a-40cf-bb8e-0f656791676b", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "record_crypto_prices" + }, + "id": "b77ba910-a3b2-41fb-809a-f8e7019d7386", + "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": "39b77868-e3e7-4e3b-a267-7e7a0cf4861c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7563f32a-87c1-496e-9599-c3f1e87c9314", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "852da90d-bfe7-4ce1-aaf8-eb7f7c287906", + "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 Record Crypto Prices" + } + }, + "id": "362d8fb2-07fb-4ad0-8e85-3a88eab2df6b", + "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": "Record Crypto Prices" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "35819836-2d6e-4e92-9d02-df466443b2ed", + "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": "Record Crypto Prices error: {$json.error.message}" + }, + "id": "51450e2f-fc86-497d-a66a-636b5d24fee1", + "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 +} \ No newline at end of file diff --git a/Misc/return_ticket_assignment.json b/Misc/return_ticket_assignment.json new file mode 100644 index 0000000..1961cd2 --- /dev/null +++ b/Misc/return_ticket_assignment.json @@ -0,0 +1,355 @@ +{ + "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 +} \ No newline at end of file diff --git a/Misc/rss_headlines_slack.json b/Misc/rss_headlines_slack.json new file mode 100644 index 0000000..b00b0b4 --- /dev/null +++ b/Misc/rss_headlines_slack.json @@ -0,0 +1,365 @@ +{ + "name": "RSS Headlines Slack", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: RSS Headlines Slack", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "eef04ed8-9911-437e-a4de-a97bb4008584", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "rss-headlines-slack" + }, + "id": "9a8d1358-96d4-4234-a729-4e0e4ced17f3", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "b65c9914-f17c-40e3-b297-4829b6ca48c0", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "794ba230-95a3-4309-ab88-e048833c8f32", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "rss_headlines_slack", + "mode": "list", + "cachedResultName": "rss_headlines_slack" + } + }, + "id": "121535eb-291a-43da-beef-22fb7b8e61e2", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "rss_headlines_slack", + "mode": "list", + "cachedResultName": "rss_headlines_slack" + } + }, + "id": "1007022a-f3f8-45e0-a172-3a722ef55013", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "45bba375-133f-4e21-b3f5-44129052232c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "4260b8fd-8881-4c50-8d0c-ec3ff10dd94e", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "5dc099ae-249d-409d-acf2-1f6a50ecc270", + "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 'RSS Headlines Slack':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for RSS Headlines Slack" + } + }, + "id": "f799ca8c-9622-4a74-b21a-6c84c8ec458a", + "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": "RSS Headlines Slack" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "24e74dce-aaf5-48d8-abd9-4a052dbb378c", + "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": "RSS Headlines Slack error: {$json.error.message}" + }, + "id": "b225130c-f97e-4652-baac-a2afd1049a9d", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/server_health_grafana.json b/Misc/server_health_grafana.json new file mode 100644 index 0000000..ec161b6 --- /dev/null +++ b/Misc/server_health_grafana.json @@ -0,0 +1,355 @@ +{ + "name": "Server Health Grafana", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Server Health Grafana", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "d2ba1e2d-bcbc-45e4-bd37-73668fce5802", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "server-health-grafana" + }, + "id": "eb7fca76-66e2-4fa1-ab00-09b4c0817961", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "7db01be8-61d6-4c89-9800-db7b62eb7fcf", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "66a0f30e-32ee-4ef3-823c-82b4a1af354c", + "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": "server_health_grafana" + }, + "id": "6ea57ca4-3426-4820-a293-78565186c35e", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "server_health_grafana" + }, + "id": "443a366d-7547-4bda-b066-91fb43d60aed", + "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": "fdbc5d42-f717-414e-a775-235a0de386e9", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "48c210ef-2004-4ef4-b2f9-d2dab2f5d391", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "86681bd5-9377-4348-a411-caf2a0b9887b", + "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": "Process the following data for task 'Server Health Grafana':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Server Health Grafana" + } + }, + "id": "78773e49-4558-4ec1-a740-adfd2f177a9f", + "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": "Server Health Grafana" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "77eccce3-bf9e-4d3a-9262-820db8faaeec", + "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": "Server Health Grafana error: {$json.error.message}" + }, + "id": "2f5f6b7a-45d8-4f54-8b06-af95c6032926", + "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 +} \ No newline at end of file diff --git a/Misc/starred_slack_to_notion.json b/Misc/starred_slack_to_notion.json new file mode 100644 index 0000000..b8e90a3 --- /dev/null +++ b/Misc/starred_slack_to_notion.json @@ -0,0 +1,355 @@ +{ + "name": "Starred Slack to Notion", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Starred Slack to Notion", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "3394fb98-3259-414f-bc1e-a478f9bb48ce", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "starred-slack-to-notion" + }, + "id": "634c2549-c8a7-4ed6-9f8f-286ac52e728e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "496b5b4a-59fb-48d9-834c-8e43123d4f40", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "86d40b9f-1b53-4751-a02f-6fc7cda4543c", + "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": "starred_slack_to_notion" + }, + "id": "d83c9acd-dd15-4965-b024-51acdea5d1be", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "starred_slack_to_notion" + }, + "id": "41eed679-dece-4a2c-96ea-8a97076c3429", + "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": "efc47245-60b6-4692-84aa-1a2a0c0c1324", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "1c9592de-238c-492a-9a0c-87390d366956", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "eab396da-9252-4a29-964c-0aa3abac4044", + "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 'Starred Slack to Notion':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Starred Slack to Notion" + } + }, + "id": "103d9ff8-a291-46fc-aa5b-fbdef7f6c61d", + "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": "Starred Slack to Notion" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "0af20245-042c-4192-beb1-915218f01f11", + "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": "Starred Slack to Notion error: {$json.error.message}" + }, + "id": "a765761c-52d0-4e72-a26f-9fd514a9a2b1", + "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 +} \ No newline at end of file diff --git a/Misc/survey_auto_analyze.json b/Misc/survey_auto_analyze.json new file mode 100644 index 0000000..57ddf18 --- /dev/null +++ b/Misc/survey_auto_analyze.json @@ -0,0 +1,365 @@ +{ + "name": "Survey Auto Analyze", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Survey Auto Analyze", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "e57a6111-23c7-46fc-8321-8cb81c12e0ff", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "survey-auto-analyze" + }, + "id": "69582a00-cb89-4618-9181-ed5c900b5d37", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "38c659ff-d227-436b-ace0-e8f19d04be21", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "7e5e5bb2-b8ac-410a-8daa-41d994652f61", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "survey_auto_analyze", + "mode": "list", + "cachedResultName": "survey_auto_analyze" + } + }, + "id": "01a6fea8-0a4f-4a2b-941c-95f1fd7c7f87", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "survey_auto_analyze", + "mode": "list", + "cachedResultName": "survey_auto_analyze" + } + }, + "id": "c81e7845-06d4-4653-aa6f-c8f86c47ed5b", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "d7ee429c-5e5a-4fc1-aaa5-5487bade9563", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "c420b709-36dd-41f0-877e-776b99b5bb7c", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "b184a9f5-b15c-4870-9484-4d7645bb0fb5", + "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 'Survey Auto Analyze':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Survey Auto Analyze" + } + }, + "id": "9b3a3954-60fa-4819-8dd1-9f7dfb9753f1", + "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": "Survey Auto Analyze" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "349b2a7a-e0c7-4629-83d5-42656bb34486", + "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": "Survey Auto Analyze error: {$json.error.message}" + }, + "id": "304fd227-5d2b-4dd6-9ddc-1f79adc5aade", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/toggl_daily_report.json b/Misc/toggl_daily_report.json new file mode 100644 index 0000000..67a2a5b --- /dev/null +++ b/Misc/toggl_daily_report.json @@ -0,0 +1,365 @@ +{ + "name": "Toggl Daily Report", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Toggl Daily Report", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "90116b46-a456-448a-9dda-333b3688f86c", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "toggl-daily-report" + }, + "id": "3fbc7512-72c5-46c4-bd02-573c27d029f1", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "e5106852-2d61-4bdd-bbfb-53ca2517555d", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "1118d7ea-3e7d-411f-85e8-ad0de51c3e88", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "toggl_daily_report", + "mode": "list", + "cachedResultName": "toggl_daily_report" + } + }, + "id": "7b34c0e1-07d7-4488-b794-7d394b5fab7b", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "toggl_daily_report", + "mode": "list", + "cachedResultName": "toggl_daily_report" + } + }, + "id": "506ba0dd-a095-4a85-8d63-36b7fbae2fbf", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "1683b741-68d8-45fd-a976-4cc8ef37a47a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "e8d33ed2-1eba-427d-a874-e9b3b32d2b49", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "e3f9ca1d-92c7-41f5-8da1-0855273f5dd3", + "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": "Process the following data for task 'Toggl Daily Report':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Toggl Daily Report" + } + }, + "id": "4b343b9b-415f-4f66-b7dd-c7efb87ac836", + "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": "Toggl Daily Report" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "2d657857-6a0c-48ff-9f2f-edcaffa10f0e", + "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": "Toggl Daily Report error: {$json.error.message}" + }, + "id": "9747b5e6-d32e-4038-aa7f-620f9e5ff58f", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Misc/unsplash_to_pinterest.json b/Misc/unsplash_to_pinterest.json new file mode 100644 index 0000000..951697e --- /dev/null +++ b/Misc/unsplash_to_pinterest.json @@ -0,0 +1,355 @@ +{ + "name": "Unsplash to Pinterest", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Unsplash to Pinterest", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "8da48de7-ef4d-4d78-8c0e-3c6b57ef3b9a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "unsplash-to-pinterest" + }, + "id": "672c0eab-878f-484d-a072-9482935437c4", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "87553792-b816-44e2-ac2f-64d0f9a5adf5", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "d8a5b9d0-b59f-49d2-9b1c-99149dd6d71b", + "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": "unsplash_to_pinterest" + }, + "id": "6f194f04-7764-4a60-a36a-027d5c1410f7", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "unsplash_to_pinterest" + }, + "id": "9f1eabc4-1dfe-4271-94e3-e1ec9b402828", + "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": "20fe470d-efef-462c-8641-13589cf31512", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "e9979d17-c88a-4964-81d8-c5508f03d709", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "e3ac4cbe-35ee-48d3-bb1d-f840f6ee1b77", + "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 'Unsplash to Pinterest':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Unsplash to Pinterest" + } + }, + "id": "8b13c89e-4f09-4e5a-9ef9-bcea4bc692de", + "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": "Unsplash to Pinterest" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "d273d2ef-dd98-4e0d-a03f-77e5d22e772e", + "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": "Unsplash to Pinterest error: {$json.error.message}" + }, + "id": "8cddb37e-ed6a-4ad5-a88e-e2b393f07114", + "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 +} \ No newline at end of file diff --git a/Misc/voice_task_to_notion.json b/Misc/voice_task_to_notion.json new file mode 100644 index 0000000..e5c1651 --- /dev/null +++ b/Misc/voice_task_to_notion.json @@ -0,0 +1,355 @@ +{ + "name": "Voice Task to Notion", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Voice Task to Notion", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "788c7113-8566-49c8-b7af-3313f57a479c", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "voice-task-to-notion" + }, + "id": "aaf99a8a-1412-455a-97ed-f853121f366f", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "917142f0-7738-4fde-b862-b763463248a6", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "b17227b4-2631-41f6-bc3b-45ca977de46a", + "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": "voice_task_to_notion" + }, + "id": "7f0fa79f-e276-4a66-8120-66e94ba4c045", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "voice_task_to_notion" + }, + "id": "a9a11174-df20-483b-85fd-d9126b715aca", + "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": "b337a057-1ccd-46d1-9d44-ee1512a8c5cd", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ca6d53a5-1b46-43c4-8dfa-86e38c115898", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "69538d38-2f88-41bb-ad85-3370afbbc873", + "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 'Voice Task to Notion':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Voice Task to Notion" + } + }, + "id": "f1388a0a-3d58-4291-8538-f82000579f4c", + "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": "Voice Task to Notion" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "b92d452b-d59b-4177-a4fa-4985b33bdb44", + "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": "Voice Task to Notion error: {$json.error.message}" + }, + "id": "ea200b2e-d1ad-45e5-9d39-4b502e4f6f86", + "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 +} \ No newline at end of file diff --git a/Misc/weekly_notes_backup.json b/Misc/weekly_notes_backup.json new file mode 100644 index 0000000..2fa11cd --- /dev/null +++ b/Misc/weekly_notes_backup.json @@ -0,0 +1,355 @@ +{ + "name": "Weekly Notes Backup", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Weekly Notes Backup", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "09f96970-f5ea-401a-bf0b-0035b1ae502a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "weekly-notes-backup" + }, + "id": "0cf773d3-bb5a-467b-8059-746735a95815", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "34029e24-83b2-4e0d-afe4-52510a3c20e4", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "0318220f-be7c-43ff-8b23-01bc841d6160", + "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": "weekly_notes_backup" + }, + "id": "b6c46a40-013a-45fc-b942-614ea6a9077b", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "weekly_notes_backup" + }, + "id": "d154672e-8623-47e1-bd2f-eb50df358f3e", + "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": "5e598772-1a0b-4afb-8fcd-4339843923c0", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "0d9605c9-b48d-4509-b542-5b671f4c5609", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "94e7ea25-d825-4729-ad5a-b9a545f7fc43", + "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 'Weekly Notes Backup':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Weekly Notes Backup" + } + }, + "id": "4497ea3b-8f08-4db2-a18a-c0d2e2d4c1f4", + "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": "Weekly Notes Backup" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "e91c44c2-ae2f-4c8b-a49c-86b529efb775", + "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": "Weekly Notes Backup error: {$json.error.message}" + }, + "id": "49273683-737d-48b5-bf48-48d3233437f8", + "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 +} \ No newline at end of file diff --git a/Misc/woo_order_mailchimp.json b/Misc/woo_order_mailchimp.json new file mode 100644 index 0000000..1dfce78 --- /dev/null +++ b/Misc/woo_order_mailchimp.json @@ -0,0 +1,355 @@ +{ + "name": "Woo Order Mailchimp", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Woo Order Mailchimp", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "0dd507e4-f32b-4c4c-85d9-26316c63c0e0", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "woo-order-mailchimp" + }, + "id": "42aa0b71-1c9f-48d7-b339-94919de26da1", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "38bd53d5-c599-45cb-bd28-f52fe513a687", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "fbb0666b-b845-4490-ad86-25713c97a122", + "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": "woo_order_mailchimp" + }, + "id": "d85253d5-b3b8-452b-8153-996f7b6c9bca", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "woo_order_mailchimp" + }, + "id": "6cefb367-4cde-4c48-bdb8-c90ecc5215fc", + "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": "356012ed-5c87-4b07-8ddb-e0afe3c3faec", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "12fd721e-e3f6-4f61-a709-2b4c9821e373", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a16d1695-9c1a-40f7-86a9-99b081045a20", + "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 'Woo Order Mailchimp':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Woo Order Mailchimp" + } + }, + "id": "10ea4d67-7ee6-466f-b8c9-5847177d478a", + "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": "Woo Order Mailchimp" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "fb5c5c60-aa5d-40fb-aeed-e6a47f4bc030", + "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": "Woo Order Mailchimp error: {$json.error.message}" + }, + "id": "d54c4d1f-2ce2-431d-8a37-2f2e6d23f6da", + "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 +} \ No newline at end of file diff --git a/Misc/zoom_attendance_log.json b/Misc/zoom_attendance_log.json new file mode 100644 index 0000000..6da548d --- /dev/null +++ b/Misc/zoom_attendance_log.json @@ -0,0 +1,355 @@ +{ + "name": "Zoom Attendance Log", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Zoom Attendance Log", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "30425599-20bc-4cab-84fb-a97a7d936dd8", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "zoom-attendance-log" + }, + "id": "40e28ff7-25fe-4260-9dff-fc7b0fb83b9e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "0ebd915f-62ad-4a37-ae47-94a492b82d74", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "97982daf-72b3-4c42-aea3-e33642422cfd", + "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": "zoom_attendance_log" + }, + "id": "092e9417-d39a-407f-8c39-2bc28184c6ea", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "zoom_attendance_log" + }, + "id": "93de8859-cdbb-4783-9706-5696e8ba6876", + "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": "a729203a-897a-4851-a525-8291cf9589dd", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "38493122-32dc-4b8e-b56f-53f6837c0d7a", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "68814235-d4fc-4c02-b9ba-776e84284e5a", + "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": "Process the following data for task 'Zoom Attendance Log':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Zoom Attendance Log" + } + }, + "id": "ea407af4-b883-4fc3-84df-3c04e885c01c", + "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": "Zoom Attendance Log" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "ccf323a1-9823-458d-ac99-44cbe2ec704c", + "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": "Zoom Attendance Log error: {$json.error.message}" + }, + "id": "f15f021b-938c-4521-86ff-648a8169309f", + "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 +} \ No newline at end of file diff --git a/Productivity/README.md b/Productivity/README.md new file mode 100644 index 0000000..80bbd11 --- /dev/null +++ b/Productivity/README.md @@ -0,0 +1,3 @@ +# Productivity Templates + +- **morning_briefing_email.json** – Uses Anthropic Claude, Cohere Embeddings, Supabase Vector \ No newline at end of file diff --git a/Productivity/morning_briefing_email.json b/Productivity/morning_briefing_email.json new file mode 100644 index 0000000..6d4c4ce --- /dev/null +++ b/Productivity/morning_briefing_email.json @@ -0,0 +1,355 @@ +{ + "name": "Morning Briefing Email", + "nodes": [ + { + "parameters": { + "content": "Automated workflow: Morning Briefing Email", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "290fb569-25f2-4464-8d96-bab3c4cb3276", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "morning-briefing-email" + }, + "id": "13727821-7b64-46b6-96bd-7b97dd43d06e", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "b0725ca4-2727-4201-a9bd-cb219ff1508f", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "af97f001-e5ea-49fb-ac6b-b2d30730c3e8", + "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": "morning_briefing_email" + }, + "id": "63c51bdb-fbd9-43a9-bacf-f5c6d39aedb3", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "morning_briefing_email" + }, + "id": "8304ff6a-c852-4c49-895c-00ac13314028", + "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": "e330bfdb-576e-44d1-b8cf-73a829b898e3", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "ab1dd014-0dc8-4635-9dad-f728310f2b86", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "6320a7d3-7bc0-47cf-9052-43a60ad9ae28", + "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": "Process the following data for task 'Morning Briefing Email':\n\n{{ $json }}", + "options": { + "systemMessage": "You are an assistant for Morning Briefing Email" + } + }, + "id": "f0c605d8-4612-4402-80ee-ae9e9d05044d", + "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": "Morning Briefing Email" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": { + "Status": "={{$json[\"RAG Agent\"].text}}" + }, + "schema": [] + } + }, + "id": "101334a4-b2d6-4095-b095-f0934b2f17af", + "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": "Morning Briefing Email error: {$json.error.message}" + }, + "id": "7e567cd3-ecc8-4b95-80e4-a9a8a12de770", + "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 +} \ No newline at end of file diff --git a/Social_Media/README.md b/Social_Media/README.md new file mode 100644 index 0000000..057ea50 --- /dev/null +++ b/Social_Media/README.md @@ -0,0 +1,12 @@ +# Social_Media Templates + +- **auto-post_blogs_to_linkedin_and_twitter.json** – Uses Anthropic Claude, OpenAI Embeddings, Supabase Vector +- **schedule_instagram_content_from_airtable.json** – Uses Anthropic Claude, OpenAI Embeddings, Pinecone +- **log_twitter_mentions_in_notion.json** – Uses Anthropic Claude, Cohere Embeddings +- **cross-post_youtube_uploads_to_facebook.json** – Uses Anthropic Claude, OpenAI Embeddings, Pinecone +- **alert_on_instagram_competitor_story.json** – Uses OpenAI Chat, OpenAI Embeddings, Supabase Vector +- **auto-dm_new_twitter_followers.json** – Uses Cohere Embeddings, OpenAI Chat, Pinecone +- **monthly_social_media_report.json** – Uses Anthropic Claude, OpenAI Embeddings +- **reddit_upvote_alert.json** – Uses Anthropic Claude, OpenAI Embeddings +- **auto-reply_to_tiktok_comments.json** – Uses Anthropic Claude, Cohere Embeddings, Pinecone +- **youtube_comment_summarizer.json** – Uses OpenAI Chat, OpenAI Embeddings, Pinecone \ No newline at end of file diff --git a/Social_Media/alert_on_instagram_competitor_story.json b/Social_Media/alert_on_instagram_competitor_story.json new file mode 100644 index 0000000..a6f9db4 --- /dev/null +++ b/Social_Media/alert_on_instagram_competitor_story.json @@ -0,0 +1,353 @@ +{ + "name": "Alert on Instagram Competitor Story", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Alert on Instagram Competitor Story", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "21eb9c4e-1dd8-4912-94c8-ae35a24ccf6a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "alert-on-instagram-competitor-story" + }, + "id": "3e99ee3b-2943-4242-9d10-4ae5f7c050c4", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "2ba926bb-eba1-4cf4-b819-263b3727853a", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "f71bb5cd-2ff0-4822-8464-9b15aaefa469", + "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": "alert_on_instagram_competitor_story" + }, + "id": "a39340e4-46ef-4539-a281-1c12638eae78", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "alert_on_instagram_competitor_story" + }, + "id": "8fd13893-fe01-4756-ba4b-82297df9c5ec", + "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": "1a960c00-32d4-4933-987c-d71e5e38a0e9", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "2de7c499-82d8-4a23-b6da-d050c3728ea4", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "1881ee9b-2e5c-474a-9aa5-4800b1bb655b", + "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 Alert on Instagram Competitor Story" + } + }, + "id": "71ac72c2-63dd-4656-a2e1-6e525e685591", + "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": "Alert on Instagram Competitor Story" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "350be277-eb68-4a51-b1af-a5280d188c1b", + "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": "Alert on Instagram Competitor Story error: {$json.error.message}" + }, + "id": "a14c656e-41e1-472c-b191-4bec794ad003", + "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 +} \ No newline at end of file diff --git a/Social_Media/auto-dm_new_twitter_followers.json b/Social_Media/auto-dm_new_twitter_followers.json new file mode 100644 index 0000000..9117d2b --- /dev/null +++ b/Social_Media/auto-dm_new_twitter_followers.json @@ -0,0 +1,363 @@ +{ + "name": "Auto-DM New Twitter Followers", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Auto-DM New Twitter Followers", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "6c8445ba-33d0-4091-bc77-9206a3e8b3be", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "auto-dm-new-twitter-followers" + }, + "id": "f3af4318-25fb-48b3-afcd-b6626ffa4fc3", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "5d8f131d-4f2e-4689-941a-71971000788e", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "c16f0e7d-d77e-4bf0-a9b8-aff545ebac3e", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "auto-dm_new_twitter_followers", + "mode": "list", + "cachedResultName": "auto-dm_new_twitter_followers" + } + }, + "id": "66aa91bd-6e08-4905-92b6-ab70a0a0fb57", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "auto-dm_new_twitter_followers", + "mode": "list", + "cachedResultName": "auto-dm_new_twitter_followers" + } + }, + "id": "9e705430-71d8-4f8c-badf-693b26ca753a", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "ca01a22f-5dd8-403c-95ea-f56ba2d0e096", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "bab9ab82-93b6-47dd-b15f-8a84bcb46950", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "752644de-7653-4ebb-afe7-9f0afb6d092b", + "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 Auto-DM New Twitter Followers" + } + }, + "id": "b22befc8-d57c-4fb2-a104-4fd9e9fbf878", + "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": "Auto-DM New Twitter Followers" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "5d5d5e45-7359-4cf9-a630-6592d59cda74", + "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": "Auto-DM New Twitter Followers error: {$json.error.message}" + }, + "id": "b9362533-2cf6-4f58-980f-829f3483092c", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Social_Media/auto-post_blogs_to_linkedin_and_twitter.json b/Social_Media/auto-post_blogs_to_linkedin_and_twitter.json new file mode 100644 index 0000000..0c1aaf9 --- /dev/null +++ b/Social_Media/auto-post_blogs_to_linkedin_and_twitter.json @@ -0,0 +1,353 @@ +{ + "name": "Auto-post Blogs to LinkedIn and Twitter", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Auto-post Blogs to LinkedIn and Twitter", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "f6b52b5b-3751-4c22-a6c1-3e5936fb322a", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "auto-post-blogs-to-linkedin-and-twitter" + }, + "id": "f5a15148-9af1-409b-a4ef-ad2b0e2e2f06", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "121f362d-ae3a-45c8-894d-12e606dab808", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "6a35e11a-dd03-4d95-bcc3-f4f8c85088d5", + "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": "auto-post_blogs_to_linkedin_and_twitter" + }, + "id": "401ef38d-6acd-41cd-8ce5-3a50b8545789", + "name": "Supabase Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "supabaseApi": { + "id": "SUPABASE_API", + "name": "Supabase account" + } + } + }, + { + "parameters": { + "indexName": "auto-post_blogs_to_linkedin_and_twitter" + }, + "id": "04497ee3-b9d0-4296-8d11-c26ea24c5a19", + "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": "cd76d86e-4c30-43bb-a0e2-baaf728f7871", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "9f39a9d1-b9d1-42d9-b199-8256c98ba424", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "8262b5be-0943-4a57-81d3-438502e72dca", + "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 Auto-post Blogs to LinkedIn and Twitter" + } + }, + "id": "ef4551cd-6b4e-41ae-8688-f3119f289c8f", + "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": "Auto-post Blogs to LinkedIn and Twitter" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "4ab2b12c-2228-4309-b688-e64bd895ffce", + "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": "Auto-post Blogs to LinkedIn and Twitter error: {$json.error.message}" + }, + "id": "915205bd-7106-4a5d-9962-82a3d5292349", + "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 +} \ No newline at end of file diff --git a/Social_Media/auto-reply_to_tiktok_comments.json b/Social_Media/auto-reply_to_tiktok_comments.json new file mode 100644 index 0000000..abf284f --- /dev/null +++ b/Social_Media/auto-reply_to_tiktok_comments.json @@ -0,0 +1,363 @@ +{ + "name": "Auto-reply to TikTok Comments", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Auto-reply to TikTok Comments", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "62a5ff73-812f-4bd3-b69e-19ccb837438b", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "auto-reply-to-tiktok-comments" + }, + "id": "e2d9a151-59e3-42d2-8108-bfb2b4f530f4", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "57baa51e-87e0-4b4f-90b3-44b5282b3d95", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "4c1d12a0-1780-4d26-b17f-59215022b555", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsCohere", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "cohereApi": { + "id": "COHERE_API", + "name": "Cohere" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "auto-reply_to_tiktok_comments", + "mode": "list", + "cachedResultName": "auto-reply_to_tiktok_comments" + } + }, + "id": "be23eb72-bca1-4e6f-8b8f-00b3c76fef40", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "auto-reply_to_tiktok_comments", + "mode": "list", + "cachedResultName": "auto-reply_to_tiktok_comments" + } + }, + "id": "62d1d625-cf70-410e-84d2-eaad7477a7ba", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "197c6860-6a3f-4498-a4ce-e67f77133f0c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "585b2926-3905-4872-ba01-89e6f5a62fee", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "be683af2-ee65-436a-8233-5553ccc362c4", + "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 Auto-reply to TikTok Comments" + } + }, + "id": "b2359ea4-9d21-42f9-854b-42bdf4fcc565", + "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": "Auto-reply to TikTok Comments" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "416996cb-2ac9-4074-b6ca-3b259a8a04d7", + "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": "Auto-reply to TikTok Comments error: {$json.error.message}" + }, + "id": "553f06df-c97e-4775-b96a-52ad4c16a41b", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Social_Media/cross-post_youtube_uploads_to_facebook.json b/Social_Media/cross-post_youtube_uploads_to_facebook.json new file mode 100644 index 0000000..77f060f --- /dev/null +++ b/Social_Media/cross-post_youtube_uploads_to_facebook.json @@ -0,0 +1,363 @@ +{ + "name": "Cross-post YouTube Uploads to Facebook", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Cross-post YouTube Uploads to Facebook", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "e227f505-d90e-4cac-b88e-143d55a41313", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "cross-post-youtube-uploads-to-facebook" + }, + "id": "f2e1b834-b79c-400a-9016-e001ae3a1f37", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "c2ee666f-2b15-4919-ae35-639428a47410", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "f7b42d81-8b2e-40ba-a7ce-bcdcee98fb28", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "cross-post_youtube_uploads_to_facebook", + "mode": "list", + "cachedResultName": "cross-post_youtube_uploads_to_facebook" + } + }, + "id": "e48c8606-0249-495e-b652-bf2973cbf903", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "cross-post_youtube_uploads_to_facebook", + "mode": "list", + "cachedResultName": "cross-post_youtube_uploads_to_facebook" + } + }, + "id": "3f87822c-d588-4d43-b96f-9d0a1a0652b5", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "4009c47f-e495-4e55-8b42-271fc7f5c2c0", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "65041fcc-1556-4d14-81f1-4f8983867de8", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "46a928e6-754e-4a16-a699-551cd7c8aca7", + "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 Cross-post YouTube Uploads to Facebook" + } + }, + "id": "9dc4acf6-b097-4b50-808a-0182edd55309", + "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": "Cross-post YouTube Uploads to Facebook" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "7bdeabaf-dd8c-4615-b9ca-f257ec0b7eb8", + "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": "Cross-post YouTube Uploads to Facebook error: {$json.error.message}" + }, + "id": "bb677f3c-bb83-41f1-98f5-90db4c4f765d", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Social_Media/log_twitter_mentions_in_notion.json b/Social_Media/log_twitter_mentions_in_notion.json new file mode 100644 index 0000000..6f92660 --- /dev/null +++ b/Social_Media/log_twitter_mentions_in_notion.json @@ -0,0 +1,353 @@ +{ + "name": "Log Twitter Mentions in Notion", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Log Twitter Mentions in Notion", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "9ada02d4-1b9a-4475-ab74-3fec017290b0", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "log-twitter-mentions-in-notion" + }, + "id": "2a319bca-b315-479c-8cc5-00c3e017a652", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "599dd595-9fa8-40de-982f-1897a35e9ec6", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "embed-english-v3.0", + "options": {} + }, + "id": "f9f91a1d-a3fa-41ba-96e8-1a0842ec54ad", + "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": "log_twitter_mentions_in_notion" + }, + "id": "95a626fd-1907-475a-8297-a088c40f7322", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "log_twitter_mentions_in_notion" + }, + "id": "4921e12c-f828-40d6-bbe8-4749ef18341e", + "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": "f600c918-24ae-4659-ad01-77c48c2ff50a", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "7eec9928-bb45-49a9-af88-a2f8e0357759", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "5baad51a-c76c-4ba3-b961-31a8f1607b61", + "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 Log Twitter Mentions in Notion" + } + }, + "id": "bf34ac84-3904-4010-b2f3-e9f6328195df", + "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": "Log Twitter Mentions in Notion" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "460a8b6a-6ed3-44f0-a5df-37b52a34ab74", + "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": "Log Twitter Mentions in Notion error: {$json.error.message}" + }, + "id": "04cbe4da-7774-4177-a753-6a01f23a7687", + "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 +} \ No newline at end of file diff --git a/Social_Media/monthly_social_media_report.json b/Social_Media/monthly_social_media_report.json new file mode 100644 index 0000000..5cc21a0 --- /dev/null +++ b/Social_Media/monthly_social_media_report.json @@ -0,0 +1,353 @@ +{ + "name": "Monthly Social Media Report", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Monthly Social Media Report", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "5d2f980a-4f7d-4e5f-acd9-29f532634bf3", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "monthly-social-media-report" + }, + "id": "2f7e00f6-721f-4f11-8d8e-f6036cb4c4e3", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "f504b256-54f2-4862-8031-60c272844eca", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "16eaa7d4-b566-451d-abaf-f1c74ca7db33", + "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": "monthly_social_media_report" + }, + "id": "ac30243b-1100-4cf1-a0dd-baf77e2a953e", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "monthly_social_media_report" + }, + "id": "22db8cd2-d13f-47b4-97f2-ae43ef68f72c", + "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": "12d9cea3-b799-47e7-99cb-b8d6d5cf8b87", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "067fc8cb-6899-4357-a9ed-3c81573af176", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "a54762ba-a09c-477a-abde-1653ce014bf6", + "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 Monthly Social Media Report" + } + }, + "id": "53259669-6609-4dd1-8de0-50b8bc91b9d5", + "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": "Monthly Social Media Report" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "f3491401-f9e4-4792-bf6d-8225a7fbe226", + "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": "Monthly Social Media Report error: {$json.error.message}" + }, + "id": "f6ffdcfe-cc88-4eb3-a8e9-2bc36b0213ba", + "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 +} \ No newline at end of file diff --git a/Social_Media/reddit_upvote_alert.json b/Social_Media/reddit_upvote_alert.json new file mode 100644 index 0000000..109fae4 --- /dev/null +++ b/Social_Media/reddit_upvote_alert.json @@ -0,0 +1,353 @@ +{ + "name": "Reddit Upvote Alert", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Reddit Upvote Alert", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "65196870-2079-4376-92b9-a2f6d782a0d9", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "reddit-upvote-alert" + }, + "id": "78135efe-8906-4437-9908-1e335442f6a2", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "d4d868f6-46e2-42d4-a294-fbd6ac733823", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "88ea99f8-1469-4c03-8fd1-ed1fab8a5516", + "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": "reddit_upvote_alert" + }, + "id": "466c3a8b-e140-4b17-b4b7-f33415832ef9", + "name": "Weaviate Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStoreWeaviate", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "weaviateApi": { + "id": "WEAVIATE_API", + "name": "Weaviate account" + } + } + }, + { + "parameters": { + "indexName": "reddit_upvote_alert" + }, + "id": "6648eb75-d080-48fd-8fd1-a5d9edf7c6a5", + "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": "36705e61-87ec-4858-87e3-2eb4d1f3219c", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "4fd2d787-235f-4efc-a57f-3d91956b0975", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "669c352a-d72e-4a48-b11d-377736696308", + "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 Reddit Upvote Alert" + } + }, + "id": "af93f117-fe2b-4e90-b9e7-a0a1d8cecb1b", + "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": "Reddit Upvote Alert" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "8735a4a8-4a50-44b7-b303-597642c7bca0", + "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": "Reddit Upvote Alert error: {$json.error.message}" + }, + "id": "b337597e-1efd-43e6-8a88-7822de398548", + "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 +} \ No newline at end of file diff --git a/Social_Media/schedule_instagram_content_from_airtable.json b/Social_Media/schedule_instagram_content_from_airtable.json new file mode 100644 index 0000000..d86d624 --- /dev/null +++ b/Social_Media/schedule_instagram_content_from_airtable.json @@ -0,0 +1,363 @@ +{ + "name": "Schedule Instagram Content from Airtable", + "nodes": [ + { + "parameters": { + "content": "Placeholder for Schedule Instagram Content from Airtable", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "7abba269-7e58-480c-8343-0f7dabcb52b8", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "schedule-instagram-content-from-airtable" + }, + "id": "baa2150e-b0db-49a7-9ef7-2015ee41cb17", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "b3ccfb17-8668-4b7d-8b87-00806d6fd722", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "d3c7a01c-465a-4d68-a1c3-753fa9d33dfb", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "schedule_instagram_content_from_airtable", + "mode": "list", + "cachedResultName": "schedule_instagram_content_from_airtable" + } + }, + "id": "327e4fcd-d941-4c80-90ab-e367aa6bc83b", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "schedule_instagram_content_from_airtable", + "mode": "list", + "cachedResultName": "schedule_instagram_content_from_airtable" + } + }, + "id": "fe2adecc-d905-4161-9558-1fb91514db6d", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "e9dd7f92-2cb1-4f98-b033-a5fb89651c6e", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "89345e2d-849e-45eb-849b-0b68b00fb45d", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "6428cdb0-972d-4db8-85e2-ca5e4049ede8", + "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 Schedule Instagram Content from Airtable" + } + }, + "id": "e2a48f35-4c86-4d8d-bf83-f1f9e8ef98df", + "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": "Schedule Instagram Content from Airtable" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "f026138c-b0be-4734-b87d-71c7d7947cb4", + "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": "Schedule Instagram Content from Airtable error: {$json.error.message}" + }, + "id": "5c4e16ac-68ff-4c7d-aa5a-be47b01d5fac", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file diff --git a/Social_Media/youtube_comment_summarizer.json b/Social_Media/youtube_comment_summarizer.json new file mode 100644 index 0000000..53ffcce --- /dev/null +++ b/Social_Media/youtube_comment_summarizer.json @@ -0,0 +1,363 @@ +{ + "name": "YouTube Comment Summarizer", + "nodes": [ + { + "parameters": { + "content": "Placeholder for YouTube Comment Summarizer", + "height": 530, + "width": 1100, + "color": 5 + }, + "id": "2a67ad9a-dcc2-4ef0-abca-f3255d63c2d0", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "typeVersion": 1, + "position": [ + -480, + -240 + ] + }, + { + "parameters": { + "httpMethod": "POST", + "path": "youtube-comment-summarizer" + }, + "id": "2fde1554-d2d7-49c3-b337-405b6c3136c9", + "name": "Webhook Trigger", + "type": "n8n-nodes-base.webhook", + "typeVersion": 1, + "position": [ + -300, + 0 + ] + }, + { + "parameters": { + "chunkSize": 400, + "chunkOverlap": 40 + }, + "id": "82191399-1a68-400c-9bea-0c3a9aa2ac37", + "name": "Text Splitter", + "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter", + "typeVersion": 1, + "position": [ + -130, + 0 + ] + }, + { + "parameters": { + "model": "text-embedding-3-small", + "options": {} + }, + "id": "8a7643de-d014-4377-9055-79ee738b6231", + "name": "Embeddings", + "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi", + "typeVersion": 1, + "position": [ + 70, + 0 + ], + "credentials": { + "openAiApi": { + "id": "OPENAI_API", + "name": "OpenAI" + } + } + }, + { + "parameters": { + "mode": "insert", + "options": {}, + "pineconeIndex": { + "__rl": true, + "value": "youtube_comment_summarizer", + "mode": "list", + "cachedResultName": "youtube_comment_summarizer" + } + }, + "id": "841e4571-f1c6-49e0-8520-5d4a244b057f", + "name": "Pinecone Insert", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + 0 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "pineconeIndex": { + "__rl": true, + "value": "youtube_comment_summarizer", + "mode": "list", + "cachedResultName": "youtube_comment_summarizer" + } + }, + "id": "d85e823f-715b-489b-9628-61ce63cb33fe", + "name": "Pinecone Query", + "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone", + "typeVersion": 1, + "position": [ + 270, + -180 + ], + "credentials": { + "pineconeApi": { + "id": "PINECONE_API", + "name": "Pinecone account" + } + } + }, + { + "parameters": { + "name": "Pinecone", + "description": "Vector context" + }, + "id": "0737745f-be5b-4e98-b85b-45a3412f09e9", + "name": "Vector Tool", + "type": "@n8n/n8n-nodes-langchain.toolVectorStore", + "typeVersion": 1, + "position": [ + 450, + -180 + ] + }, + { + "parameters": {}, + "id": "b8a28d57-b2d0-4ccd-8748-d484099c2bd5", + "name": "Window Memory", + "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", + "typeVersion": 1.3, + "position": [ + 450, + -40 + ] + }, + { + "parameters": { + "options": {} + }, + "id": "93fe9b1d-0b94-4f3a-a864-fda08cd201ce", + "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 YouTube Comment Summarizer" + } + }, + "id": "a3218023-dcc5-4302-9506-a498a28823b4", + "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": "YouTube Comment Summarizer" + }, + "sheetName": { + "__rl": true, + "value": "Log", + "mode": "list", + "cachedResultName": "Log" + }, + "columns": { + "mappingMode": "defineBelow", + "value": "Status", + "schema": [] + } + }, + "id": "1d624247-2c74-46c5-89e4-624b0c62bb87", + "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": "YouTube Comment Summarizer error: {$json.error.message}" + }, + "id": "361ae790-4e53-4a0c-8684-5a448b2ae5e9", + "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": "Pinecone Insert", + "type": "ai_textSplitter", + "index": 0 + } + ] + ] + }, + "Embeddings": { + "ai_embedding": [ + [ + { + "node": "Pinecone Insert", + "type": "ai_embedding", + "index": 0 + }, + { + "node": "Pinecone Query", + "type": "ai_embedding", + "index": 0 + } + ] + ] + }, + "Pinecone Insert": { + "ai_document": [ + [] + ] + }, + "Pinecone 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 +} \ No newline at end of file