update workflows

This commit is contained in:
2026-02-05 21:59:40 +00:00
parent bf0728193a
commit 3298dd64f2
19 changed files with 2726 additions and 618 deletions

View File

@@ -0,0 +1,769 @@
{
"id": "-VWKaOsZlm3sb4OnTw7du",
"name": "Mail Filtering",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 15
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.3,
"position": [
-720,
312
],
"id": "72afcdf5-3f41-42df-944e-116b3aa5149e",
"name": "Schedule Trigger"
},
{
"parameters": {
"operation": "getAll",
"output": "fields",
"fields": [
"flag",
"from",
"importance",
"replyTo",
"sender",
"subject",
"toRecipients",
"body",
"categories",
"isRead"
],
"filtersUI": {
"values": {
"filters": {
"foldersToInclude": [
"AQMkADAwATMwMAItOGQ1OS0yNWYxLTAwAi0wMAoALgAAA4foSHqzPq5LgyYr5fyXfDwBAMOp3uJuhWlAqL91oN-mo00AAAIBDAAAAA=="
],
"readStatus": "unread"
}
}
},
"options": {}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
-496,
320
],
"id": "70ea01a0-6c6a-4600-8892-53dea755bfe9",
"name": "Get many messages",
"webhookId": "f456d648-ebe8-4842-845a-f4e63f087ce2",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 3
},
"conditions": [
{
"id": "e9fa4b1b-b120-4661-81bb-9356a02135fe",
"leftValue": "={{ $json.categories }}",
"rightValue": "",
"operator": {
"type": "array",
"operation": "empty",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.filter",
"typeVersion": 2.3,
"position": [
-272,
312
],
"id": "adf2f862-7fa2-42c4-84cc-01f2bb130b5c",
"name": "Filter"
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
-48,
312
],
"id": "9649fa03-18d3-4c1f-8004-fe88223bc6f7",
"name": "Loop Over Items"
},
{
"parameters": {},
"type": "n8n-nodes-base.noOp",
"name": "Replace Me",
"typeVersion": 1,
"position": [
1200,
-52
],
"id": "c1114ad0-3434-427b-82c6-21693037278c"
},
{
"parameters": {
"html": "={{ $('Loop Over Items').item.json.body.content }}",
"options": {}
},
"type": "n8n-nodes-base.markdown",
"typeVersion": 1,
"position": [
176,
-48
],
"id": "43eaa2ff-8b3f-48d9-a707-9894a8a60e8f",
"name": "Markdown"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "e47ef059-004e-4271-ba5d-5feef5a657ea",
"name": "subject",
"value": "={{ $json.subject }}",
"type": "string"
},
{
"id": "8496c9f2-99c8-4434-9dda-baec131b36ab",
"name": "importance",
"value": "={{ $json.importance }}",
"type": "string"
},
{
"id": "739290db-6b7d-4eff-bdf4-4942befb9a30",
"name": "from",
"value": "={{ $json.sender.emailAddress }}",
"type": "object"
},
{
"id": "d24a9321-6006-401d-96b4-0513368f7df7",
"name": "sender",
"value": "={{ $json.from.emailAddress }}",
"type": "object"
},
{
"id": "76379c26-25e6-4088-b631-c7cf48489837",
"name": "body",
"value": "={{ $json.data .replace(/<[^>]*>/g, '') // Remove HTML tags .replace(/\\[(.*?)\\]\\((.*?)\\)/g, '') // Remove Markdown links like [text](link) .replace(/!\\[.*?\\]\\(.*?\\)/g, '') // Remove Markdown images like ![alt](image-link) .replace(/\\|/g, '') // Remove table separators \"|\" .replace(/-{3,}/g, '') // Remove horizontal rule \"---\" .replace(/\\n+/g, ' ') // Remove multiple newlines .replace(/([^\\w\\s.,!?@])/g, '') // Remove special characters except essential ones .replace(/\\s{2,}/g, ' ') // Replace multiple spaces with a single space .trim() // Trim leading/trailing whitespace }}",
"type": "string"
},
{
"id": "2a39ff4c-bc61-4da0-b1cd-5c5a85ce824e",
"name": "id",
"value": "={{ $json.id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
400,
-48
],
"id": "417ccbbb-b21d-430d-9bfc-121e78d166d3",
"name": "var mapping"
},
{
"parameters": {
"inputText": "={{ $json.body }}",
"categories": {
"categories": [
{
"category": "Childcare & School",
"description": "Identify all correspondence from Tadpoles or Stepping Stone School, specifically including \"Daily Reports,\" \"Snapshots,\" and teacher notes for August (Gus) and Quinn. This also includes enrichment programs like Soccer Shots or Techie Kids Club"
},
{
"category": "Home & Maintenance",
"description": "Capture emails from PreFix regarding \"Home Maintenance,\" \"HomeHub\" logins, or service requests like \"Assemble Playscape\". Include utility-related alerts from the City of Austin and neighborhood-specific items like \"1415 Dwyce\""
},
{
"category": "Finance & Accounts",
"description": "Filter for documents related to HealthEquity (HSA contributions or investment activity), Schwab brokerage accounts, and employee benefits or leave processing from Sedgwick. Include tax documents and insurance updates."
},
{
"category": "Travel & Reservations",
"description": "Focus on airline communications, specifically American Airlines AAdvantage updates regarding \"mileage expiration\" or flight bookings. This should also cover hotel, rental car, and trip itinerary confirmations."
},
{
"category": "Health & Wellness",
"description": "Identify appointment reminders and \"Action Requested\" notifications from Form Health or Pediatric Associates of Austin. Include any correspondence related to care team updates or medical follow-ups."
},
{
"category": "Community & Religious",
"description": "Select emails related to local community organizations or religious centers, such as \"Welcome to Temple Beth Shalom\" or correspondence involving Mallory and Rachel Walter regarding local events"
},
{
"category": "Shopping & Rewards",
"description": "Organize order confirmations, \"Autoship\" reminders from Chewy, and promotional updates from retailers like Chipotle. This includes tracking notifications from USPS Informed Delivery"
},
{
"category": "Tech & Support",
"description": "Capture automated security alerts from the Microsoft account team (e.g., \"New app(s) connected\"), system status updates, and professional tool notifications from platforms like n8n or Atlassian."
}
]
},
"options": {
"multiClass": true,
"systemPromptTemplate": "Please classify the text provided by the user into one of the following categories: {categories}, and use the provided formatting instructions below. Don't explain, and only output the json."
}
},
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"typeVersion": 1.1,
"position": [
624,
-48
],
"id": "5399726f-2bb8-45bc-838c-4c8472ec29e6",
"name": "Text Classifier"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "antigravity/gemini-2.5-flash-lite",
"mode": "list",
"cachedResultName": "antigravity/gemini-2.5-flash-lite"
},
"responsesApiEnabled": false,
"options": {
"responseFormat": "json_object"
}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
624,
336
],
"id": "427926f3-ff5f-449d-800f-d28aa557a8d8",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "sxSUdecXdMfKPuTu",
"name": "llm-proxy.ben.io"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Tech & Support"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
432
],
"id": "fb6afde8-ee15-4fec-8fb9-54573e7585a9",
"name": "Update - Tech",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Shopping & Rewards"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
240
],
"id": "bab657d3-f297-461d-af84-5ecaa4f29773",
"name": "Update - Shopping",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Community & Religious"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
48
],
"id": "199143aa-46fd-40a1-b3a1-a864430dd194",
"name": "Update - Community",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Health & Wellness"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
624
],
"id": "7a37c92e-9d95-4439-819f-ed3e5047e720",
"name": "Update - Health",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Travel & Reservations"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
-144
],
"id": "0973245d-91cc-4c85-b451-ca94cf076488",
"name": "Update - Travel",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Finance & Accounts"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
-336
],
"id": "10b8fbc6-37e0-4a62-9fb6-bddeac773532",
"name": "Update - Finance",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Finance & Accounts"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
-528
],
"id": "173fdbb7-5be2-4915-b194-5ee6fd2bbaef",
"name": "Update - Home",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
},
{
"parameters": {
"operation": "update",
"messageId": {
"__rl": true,
"value": "={{ $json.id }}",
"mode": "id"
},
"updateFields": {
"categories": [
"Finance & Accounts"
]
}
},
"type": "n8n-nodes-base.microsoftOutlook",
"typeVersion": 2,
"position": [
976,
-720
],
"id": "74d245b0-eecd-4622-8670-d79beba32a12",
"name": "Update - Childcare",
"webhookId": "58b45295-0db5-4e67-a437-9ba8ede35c13",
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "QrDR9b0GKJWk2woe",
"name": "b3nw@outlook.com"
}
}
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Get many messages",
"type": "main",
"index": 0
}
]
]
},
"Get many messages": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
}
]
]
},
"Filter": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Markdown",
"type": "main",
"index": 0
}
]
]
},
"Replace Me": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Markdown": {
"main": [
[
{
"node": "var mapping",
"type": "main",
"index": 0
}
]
]
},
"var mapping": {
"main": [
[
{
"node": "Text Classifier",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Text Classifier",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Text Classifier": {
"main": [
[
{
"node": "Update - Childcare",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Home",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Finance",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Travel",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Health",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Community",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Shopping",
"type": "main",
"index": 0
}
],
[
{
"node": "Update - Tech",
"type": "main",
"index": 0
}
]
]
},
"Update - Health": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Tech": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Shopping": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Community": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Travel": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Finance": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Home": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"Update - Childcare": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"availableInMCP": false
},
"triggerCount": 0,
"versionId": "40fb01ad-0fbe-4397-b50f-88d0acca709c",
"owner": {
"type": "personal",
"projectId": "FeLO36wNUAcn61Wj",
"projectName": "Ben W <admin@ben.io>",
"personalEmail": "admin@ben.io"
},
"parentFolderId": "OJ2UfPNUOAOHlllh",
"isArchived": false
}