feat: add folder support for workflows (fixes #70)

This commit is contained in:
Praveen Mudalgeri
2025-08-05 09:40:47 +05:30
parent 307d530f9b
commit c4885eee92
2057 changed files with 985290 additions and 974268 deletions

View File

@@ -0,0 +1,974 @@
{
"id": "reQhibpNwU63Y8sn",
"meta": {
"instanceId": "2128095e13afd30151f0fb53632960213a789cd45ed0afd3a7fb96a985bb4bcf",
"templateId": "2454",
"templateCredsSetupCompleted": true
},
"name": "Microsoft Outlook AI Email Assistant",
"tags": [],
"nodes": [
{
"id": "a923cfb0-64fe-499a-8f0e-13fc848731df",
"name": "When clicking \u2018Test workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
980,
540
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ea865c8e-5c73-4d37-97d1-0349a265b9a4",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
-600
],
"parameters": {
"color": 5,
"width": 675,
"height": 107,
"content": "# Microsoft Outlook AI Email Assistant"
},
"typeVersion": 1
},
{
"id": "c835042f-421b-44a0-8dc4-686ac638b358",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
1300,
60
],
"parameters": {
"width": 612,
"height": 401,
"content": "## Outlook Business with filters\nFilters:\n```\nflag/flagStatus eq 'notFlagged' and not categories/any()\n```\n\nThese filters ensure we do not process flagged emails or email that already have a category set."
},
"typeVersion": 1
},
{
"id": "51ae8a4e-2d37-4118-a538-cd0fd4f427f7",
"name": "Microsoft Outlook23",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
1540,
240
],
"parameters": {
"limit": 10,
"fields": [
"flag",
"from",
"importance",
"replyTo",
"sender",
"subject",
"toRecipients",
"body",
"categories",
"isRead"
],
"output": "fields",
"options": {},
"filtersUI": {
"values": {
"filters": {
"custom": "flag/flagStatus eq 'notFlagged' and not categories/any()",
"foldersToInclude": [
"AAMkADYyNmQ0YWE1LWQxYjEtNDBhYS1hODI3LTg3MTkyNDAwMzE5NwAuAAAAAAA44w-ZZoU7QLO9GQAyv8UcAQAkfR2JHrRET4CmwDGznLN6AAAAAAEMAAA="
]
}
}
},
"operation": "getAll"
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "nv0cz3C6VZDzEgtR",
"name": "Microsoft365 Email Account"
}
},
"typeVersion": 2
},
{
"id": "a144adad-6fef-4f76-a06e-c889e8f16080",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
2020,
60
],
"parameters": {
"color": 6,
"width": 459,
"height": 401,
"content": "## Sanitise Email \nRemoves HTML and useless information in preparation for the AI Agent"
},
"typeVersion": 1
},
{
"id": "92ccac8f-9ce3-4f81-a499-e55835be3fc7",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
2020,
580
],
"parameters": {
"color": 4,
"width": 736,
"height": 558,
"content": "## Get Rules & Categories\nEdit the airtables to set your own categories, rules, contacts and/or delete rules. "
},
"typeVersion": 1
},
{
"id": "5b304e0f-002c-42c6-82a0-9ab1dc858861",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
3860,
460
],
"parameters": {
"model": "gpt-4o",
"options": {
"temperature": 0.2
}
},
"credentials": {
"openAiApi": {
"id": "l2JgpErNc5namHVH",
"name": "OpenAI account"
}
},
"typeVersion": 1
},
{
"id": "210816e8-6a1f-4e63-a90e-d953e0e87ccd",
"name": "Set Category",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
4500,
240
],
"parameters": {
"messageId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.output.id }}"
},
"operation": "update",
"updateFields": {
"categories": "={{ [$json.output.category] }}"
}
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "nv0cz3C6VZDzEgtR",
"name": "Microsoft365 Email Account"
}
},
"typeVersion": 2
},
{
"id": "fe4f8e8f-6a5c-4b7b-b5f7-10f1f374397c",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
4040,
460
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"description\": \"The email id\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The email subject line\"\n },\n \"category\": {\n \"type\": \"string\",\n \"description\": \"Primary classification of the email\"\n },\n \"subCategory\": {\n \"type\": \"string\",\n \"description\": \"Optional sub-classification if applicable\"\n },\n \"analysis\": {\n \"type\": \"string\",\n \"description\": \"Reasoning behind the categorization\"\n }\n },\n \"required\": [\"id\",\"subject\", \"category\", \"analysis\"]\n}"
},
"typeVersion": 1.2
},
{
"id": "489028ca-f265-4ea2-b8dd-64dd6b06c8f6",
"name": "If",
"type": "n8n-nodes-base.if",
"position": [
4740,
240
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6e4ecd0c-d151-4e5b-8d66-558f9f9ec3b0",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI: Analyse Email').item.json.output.subCategory }}",
"rightValue": "Action"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "e2a27071-bac6-4a67-94fb-93e7ac218c89",
"name": "Set Importance",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
5000,
220
],
"parameters": {
"messageId": {
"__rl": true,
"mode": "id",
"value": "={{ $('AI: Analyse Email').item.json.output.id }}"
},
"operation": "update",
"updateFields": {
"importance": "High"
}
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "nv0cz3C6VZDzEgtR",
"name": "Microsoft365 Email Account"
}
},
"typeVersion": 2
},
{
"id": "61cecccf-589f-4514-b126-cfbfc7d94981",
"name": "AI: Analyse Email",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
3860,
240
],
"parameters": {
"text": "=Categorise the following email:\n<email>\n{{ $('Loop Over Items').item.json.toJsonString() }}\n</email>\n\n<Contact>\n{{ $('Contact').all().toJsonString() }}\n</Contact>\n\n<DeleteRules>\n{{ $('Delete Rules').all().toJsonString() }}\n</DeleteRules>\n\n<Categories>\n{{ $('Categories').all().toJsonString() }}\n</Categories>\n\nEnsure your final output is valid JSON with no additional text or token in the following format:\n\n{\n \"subject\": \"SUBJECT_LINE\",1\n \"category\": \"CATEGORY\",\n \"subCategory\": \"SUBCATEGORY\", //use sparingly\n \"analysis\": \"ANALYSIS_REASONING\"\n}\n\nRemember you can only use ONE of the following category 'Name' values from the 'Categories' defined above. No other categories can be used. Use the subcategory for additional context, for example, if a client email requires action or if a supplier email requires action. Do not create any additional subcategories; you can only use ONE of the category 'Name' values from the 'Categories' defined above.",
"options": {
"systemMessage": "=Categories: \"\"\"{{ $('Categories').all().toJsonString() }}\"\"\"\n\nYou are an AI email assistant for the *insert role & title*. Your task is to categorize incoming emails using one of the category 'Name' values defined in 'Categories' above.\n\nYou may also use the subcategory:\n- Action\n\nInstructions:\nAnalyse the email subject, body, and sender's email address to determine the appropriate category by referring to the 'Usage', 'Sender Indicators' and 'Subject Indicators' defined in the 'Categories' above.\n\n\nOutput Format:\nProduce output in valid JSON format:\n{\n \"id\": \"{{ $('Loop Over Items').item.json.id }}\",\n \"subject\": \"SUBJECT_LINE\",\n \"category\": \"PRIMARY CATEGORY\",\n \"subCategory\": \"SUBCATEGORY\", // use sparingly\n \"analysis\": \"Brief 1-2 sentence explanation of category choice\"\n}\n- Replace \"SUBJECT_LINE\" with the actual subject of the email.\n- \"PRIMARY CATEGORY\" should be one of the categories listed above.\n- \"SUBCATEGORY\" should be \"Action\" if applicable; otherwise, omit or leave blank.\n- The \"analysis\" should be a brief 1-2 sentence explanation of why the category was chosen. Also, indicate if there was a match for the 'Contact' email and the email sender.\n\nImportant:\nYou may only use the categories and the subcategory listed above; do not create any additional categories or subcategories.\n\nNo additional text or tokens should be included outside the JSON output.\n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.6
},
{
"id": "947eb4d7-9067-4144-819b-f53947ca77f8",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1420,
-620
],
"parameters": {
"color": 6,
"width": 760,
"height": 400,
"content": "## CRM Contact List Integration \nFor this workflow I am retrieving supplier & client contacts from Monday.com the email assistant has better context to categorise, prioritise and reply to emails.\nThe list is updated daily or you can change the scheduler trigger to update more or less frequently.\nYou could replace this with your own CRM."
},
"typeVersion": 1
},
{
"id": "79815a8f-5650-4ec9-97b3-c0201469d048",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
3640,
60
],
"parameters": {
"width": 700,
"height": 580,
"content": "## Categorise & Prioritise Emails Agent \n"
},
"typeVersion": 1
},
{
"id": "2e9411a8-30da-4ee5-9597-cb08e34049a5",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
4400,
120
],
"parameters": {
"color": 4,
"width": 740,
"height": 280,
"content": "## Set the category & importance using the output from the agent\n"
},
"typeVersion": 1
},
{
"id": "138a734f-0ac5-4e50-a4af-b7255e11e862",
"name": "Check Mail Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"disabled": true,
"position": [
980,
260
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 15
}
]
}
},
"typeVersion": 1.2
},
{
"id": "709795fd-68ff-4881-9f30-6270dea83f7c",
"name": "Update Contacts Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
1080,
-420
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "552803ce-3dae-415d-b14d-a7b990450482",
"name": "Monday.com - Get Contacts",
"type": "n8n-nodes-base.mondayCom",
"position": [
1520,
-440
],
"parameters": {
"boardId": "1840712625",
"groupId": "topics",
"resource": "boardItem",
"operation": "getAll",
"returnAll": true
},
"credentials": {
"mondayComApi": {
"id": "wur9UFaP9YKCFZly",
"name": "Monday.com - API User"
}
},
"typeVersion": 1
},
{
"id": "cf41ebb0-f295-4f1a-a49c-05471a4d9220",
"name": "Airtable - Contacts",
"type": "n8n-nodes-base.airtable",
"position": [
1920,
-440
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbl8gTTEn96uFRDHE",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbl8gTTEn96uFRDHE",
"cachedResultName": "Contacts"
},
"columns": {
"value": {
"Type": "={{ $json.column_values[1].text }}",
"Email": "={{ $json.column_values[6].text }}",
"Last Name": "={{ $json.name.split(\" \",2).last() }}",
"First Name": "={{ $json.name.split(\" \",2).first() }}"
},
"schema": [
{
"id": "id",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "id",
"defaultMatch": true
},
{
"id": "Email",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Email",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "First Name",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "First Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Last Name",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Last Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Type",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Type",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Email"
]
},
"options": {},
"operation": "upsert"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"typeVersion": 2.1
},
{
"id": "6d698b4d-f18c-4e4a-9c83-8a39208aee8c",
"name": "Convert to Markdown",
"type": "n8n-nodes-base.markdown",
"notes": "Converts the body of the email to markdown",
"position": [
2120,
240
],
"parameters": {
"html": "={{ $json.body.content }}",
"options": {}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "012109cc-dcba-464b-b3bc-17201b1ad436",
"name": "Email Messages",
"type": "n8n-nodes-base.set",
"notes": "Set email fields",
"position": [
2320,
240
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "edb304e1-3e9f-4a77-918c-25646addbc53",
"name": "subject",
"type": "string",
"value": "={{ $json.subject }}"
},
{
"id": "57a3ef3a-2701-40d9-882f-f43a7219f148",
"name": "importance",
"type": "string",
"value": "={{ $json.importance }}"
},
{
"id": "d8317f4f-aa0e-4196-89af-cb016765490a",
"name": "sender",
"type": "object",
"value": "={{ $json.sender.emailAddress }}"
},
{
"id": "908716c8-9ff7-4bdc-a1a3-64227559635e",
"name": "from",
"type": "object",
"value": "={{ $json.from.emailAddress }}"
},
{
"id": "ce007329-e221-4c5a-8130-2f8e9130160f",
"name": "body",
"type": "string",
"value": "={{ $json.data\n .replace(/<[^>]*>/g, '') // Remove HTML tags\n .replace(/\\[(.*?)\\]\\((.*?)\\)/g, '') // Remove Markdown links like [text](link)\n .replace(/!\\[.*?\\]\\(.*?\\)/g, '') // Remove Markdown images like ![alt](image-link)\n .replace(/\\|/g, '') // Remove table separators \"|\"\n .replace(/-{3,}/g, '') // Remove horizontal rule \"---\"\n .replace(/\\n+/g, ' ') // Remove multiple newlines\n .replace(/([^\\w\\s.,!?@])/g, '') // Remove special characters except essential ones\n .replace(/\\s{2,}/g, ' ') // Replace multiple spaces with a single space\n .trim() // Trim leading/trailing whitespace\n}}\n"
},
{
"id": "6abfcc56-7b0a-469e-82fc-ce294ed5162b",
"name": "id",
"type": "string",
"value": "={{ $json.id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "6d3933f3-3f2e-4268-8979-d6c93c961916",
"name": "Rules",
"type": "n8n-nodes-base.airtable",
"position": [
2400,
720
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tblMSXbMFKETNToxV",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tblMSXbMFKETNToxV",
"cachedResultName": "Rules"
},
"options": {},
"operation": "search"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "9166d63f-0c16-490f-afb8-e30ef25c49da",
"name": "Categories",
"type": "n8n-nodes-base.airtable",
"position": [
2300,
860
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbliKDp5PoFNF7YI7",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbliKDp5PoFNF7YI7",
"cachedResultName": "Categories"
},
"options": {},
"operation": "search"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "f48e5a29-0eee-4420-80d9-2b9b016fba0d",
"name": "Delete Rules",
"type": "n8n-nodes-base.airtable",
"position": [
2140,
960
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbl84EJr7y65ed4zh",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbl84EJr7y65ed4zh",
"cachedResultName": "Delete Rules"
},
"options": {},
"operation": "search"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "d6ad6091-2c7e-41b9-a9b3-b8715208cec0",
"name": "Contact",
"type": "n8n-nodes-base.airtable",
"position": [
3080,
240
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbl8gTTEn96uFRDHE",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbl8gTTEn96uFRDHE",
"cachedResultName": "Contacts"
},
"options": {},
"operation": "search",
"filterByFormula": "={Email}='{{ $('Loop Over Items').item.json.from.address }}'"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": false,
"typeVersion": 2.1,
"alwaysOutputData": true
},
{
"id": "bc1ede01-fa21-4446-a4e1-1a725a3a4887",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"position": [
2720,
260
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "fcdd837d-8852-4dcf-924c-aba4f2cddeba",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"position": [
3420,
220
],
"parameters": {
"mode": "chooseBranch",
"numberInputs": 4
},
"typeVersion": 3
},
{
"id": "f790dd9b-19bb-4649-975e-00a511f2dd9f",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
3020,
60
],
"parameters": {
"color": 4,
"height": 400,
"content": "## Match Contact\nCheck if the sender is an existing contact. Note in this workflow the contacts are dynamically loaded from Monday.com"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {},
"versionId": "e0fed20f-21be-4e21-bcc9-8af7062229dd",
"connections": {
"If": {
"main": [
[
{
"node": "Set Importance",
"type": "main",
"index": 0
}
],
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "AI: Analyse Email",
"type": "main",
"index": 0
}
]
]
},
"Rules": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Contact": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Categories": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 2
}
]
]
},
"Delete Rules": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 3
}
]
]
},
"Set Category": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Email Messages": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Set Importance": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Contact",
"type": "main",
"index": 0
}
]
]
},
"AI: Analyse Email": {
"main": [
[
{
"node": "Set Category",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI: Analyse Email",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Convert to Markdown": {
"main": [
[
{
"node": "Email Messages",
"type": "main",
"index": 0
}
]
]
},
"Microsoft Outlook23": {
"main": [
[
{
"node": "Convert to Markdown",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI: Analyse Email",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Monday.com - Get Contacts": {
"main": [
[
{
"node": "Airtable - Contacts",
"type": "main",
"index": 0
}
]
]
},
"Check Mail Schedule Trigger": {
"main": [
[
{
"node": "Microsoft Outlook23",
"type": "main",
"index": 0
}
]
]
},
"Update Contacts Schedule Trigger": {
"main": [
[
{
"node": "Monday.com - Get Contacts",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Microsoft Outlook23",
"type": "main",
"index": 0
},
{
"node": "Rules",
"type": "main",
"index": 0
},
{
"node": "Categories",
"type": "main",
"index": 0
},
{
"node": "Delete Rules",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,395 @@
{
"id": "MmfWpcIegNgBjBpL",
"meta": {
"instanceId": "da824ad45fda1b156c8390a3c35cdfbb10059e671c074c19429dac59c5ae98f6"
},
"name": "TEMPLATES",
"tags": [
{
"id": "uKg1PU2D27Vsr8ud",
"name": "MONDAY",
"createdAt": "2023-12-05T07:54:13.266Z",
"updatedAt": "2023-12-05T07:54:13.266Z"
}
],
"nodes": [
{
"id": "de488298-e4f3-4b06-aef3-5d5d795382e9",
"name": "When clicking \"Test workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"position": [
120,
560
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7e8c25dc-7ccd-44b5-a4b1-33def99fc811",
"name": "PULL SUBITEMS",
"type": "n8n-nodes-base.code",
"position": [
640,
460
],
"parameters": {
"jsCode": "//Search for \"Subitems\" column\nconst columnName = \"Subitems\"\nfunction getColumnValue(item, columnId) {\n const column = item.column_values.find(column => column.column.title === columnId);\n if (column) {\n return column\n } else {\n return null;\n }\n}\nconst columnValue = getColumnValue($input.last().json, columnName);\nreturn JSON.parse(columnValue.value);\n\n//ALT OPTION - direct access by column_values[0]\n//var ids = $input.last().json['column_values'][0]['value'];\n//return JSON.parse(ids)"
},
"typeVersion": 2
},
{
"id": "82464748-cf9a-4792-8790-f07c06c1525d",
"name": "SPLIT SUBITEMS",
"type": "n8n-nodes-base.splitOut",
"position": [
840,
460
],
"parameters": {
"include": "selectedOtherFields",
"options": {},
"fieldToSplitOut": "linkedPulseIds",
"fieldsToInclude": "linkedPulseIds[0].linkedPulseId"
},
"typeVersion": 1
},
{
"id": "96a780da-be73-41c8-bf53-b2a05061a340",
"name": "GET EACH SUBITEM",
"type": "n8n-nodes-base.mondayCom",
"position": [
1020,
460
],
"parameters": {
"itemId": "=\n{{ $json.linkedPulseIds.linkedPulseId }}",
"resource": "boardItem",
"operation": "get"
},
"credentials": {
"mondayComApi": {
"id": "5nd48DKapWBLcUBx",
"name": "Monday.com account"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "5993e15a-1a1b-436e-b994-bf3acee16da0",
"name": "MONDAY UPLOAD",
"type": "n8n-nodes-base.httpRequest",
"disabled": true,
"position": [
1020,
600
],
"parameters": {
"url": "https://api.monday.com/v2/file",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "query",
"value": "=mutation add_file($file: File!) {add_file_to_column (item_id:{{ $input.last().json[\"id\"] }} , column_id:\"file\" file: $file) {id}}"
},
{
"name": "map",
"value": "{\"image\":\"variables.file\"}"
},
{
"name": "image",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"nodeCredentialType": "mondayComOAuth2Api"
},
"credentials": {
"mondayComOAuth2Api": {
"id": "C9hcle0ZoGsxR1ds",
"name": "Monday.com account 2"
}
},
"notesInFlow": true,
"typeVersion": 4.1
},
{
"id": "06099adf-7f2f-4c32-84b8-e2458e39f95c",
"name": "Convert to File",
"type": "n8n-nodes-base.convertToFile",
"position": [
640,
660
],
"parameters": {
"options": {},
"operation": "toJson"
},
"typeVersion": 1
},
{
"id": "397c5d7b-76e4-4a0e-bd39-31c10571d68a",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"position": [
840,
600
],
"parameters": {
"mode": "combine",
"options": {},
"combinationMode": "mergeByPosition"
},
"typeVersion": 2.1
},
{
"id": "a7bcc413-8d7e-4941-a81a-7a99fe14b01d",
"name": "PULL LINKEDPULSE",
"type": "n8n-nodes-base.mondayCom",
"position": [
1200,
320
],
"parameters": {
"itemId": "=\n{{ $json.linkedPulse.linkedPulseId }}",
"resource": "boardItem",
"operation": "get"
},
"credentials": {
"mondayComApi": {
"id": "5nd48DKapWBLcUBx",
"name": "Monday.com account"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "a4d2e3a7-05a9-434a-a4e5-d6ed3d538091",
"name": "GET ITEM",
"type": "n8n-nodes-base.mondayCom",
"position": [
340,
560
],
"parameters": {
"itemId": "5775061188",
"resource": "boardItem",
"operation": "get"
},
"credentials": {
"mondayComApi": {
"id": "5nd48DKapWBLcUBx",
"name": "Monday.com account"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "5ce40a46-1513-498a-9e92-8dd96e508f34",
"name": "GET LINKEDPULSES",
"type": "n8n-nodes-base.code",
"position": [
840,
320
],
"parameters": {
"jsCode": "data = $input.last().json.value\nconst linkedPulseID = JSON.parse(data).linkedPulseIds\nreturn { \"linkedPulse\": linkedPulseID}\n"
},
"typeVersion": 2
},
{
"id": "22e3ec96-4e83-42fa-aa25-ce0d7445df15",
"name": "GET BOARD RELATION",
"type": "n8n-nodes-base.code",
"position": [
640,
320
],
"parameters": {
"jsCode": "const columnName = \"Additional Contacts\"\n\nfunction getColumnValue(item, columnId) {\n const column = item.column_values.find(column => column.column.title === columnId);\n if (column) {\n return column\n } else {\n return null;\n }\n}\n\nconst columnValue = getColumnValue($input.last().json, columnName);\nreturn (columnValue)"
},
"typeVersion": 2
},
{
"id": "e55be301-0a6a-43a6-8a07-becc39e0a254",
"name": "COLUMN BY NAME",
"type": "n8n-nodes-base.code",
"position": [
640,
40
],
"parameters": {
"jsCode": "const columnName = \"Zoom Date\"\n\nfunction getColumnValue(item, columnId) {\n const column = item.column_values.find(column => column.column.title === columnId);\n if (column) {\n return column\n } else {\n return null;\n }\n}\n\nconst columnValue = getColumnValue($input.last().json, columnName);\nreturn (columnValue)"
},
"typeVersion": 2
},
{
"id": "463966c2-27e2-429c-8f8b-b3c279592f0d",
"name": "COLUMN BY ID",
"type": "n8n-nodes-base.code",
"position": [
640,
180
],
"parameters": {
"jsCode": "const columnId = \"person\"\n\nfunction getColumnValue(item, columnId) {\n const column = item.column_values.find(column => column.id === columnId);\n if (column) {\n return column\n } else {\n return null;\n }\n}\n\nconst columnValue = getColumnValue($input.last().json, columnId);\nreturn (columnValue)"
},
"typeVersion": 2
},
{
"id": "33b0aeff-18aa-4ee9-97b3-7c3a44cf96fc",
"name": "SPLIT LINKED PULSES",
"type": "n8n-nodes-base.splitOut",
"position": [
1020,
320
],
"parameters": {
"include": "=",
"options": {},
"fieldToSplitOut": "linkedPulse"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "91cd2823-4b1c-4e94-9205-9a765846b789",
"connections": {
"Merge": {
"main": [
[
{
"node": "MONDAY UPLOAD",
"type": "main",
"index": 0
}
]
]
},
"GET ITEM": {
"main": [
[
{
"node": "GET BOARD RELATION",
"type": "main",
"index": 0
},
{
"node": "PULL SUBITEMS",
"type": "main",
"index": 0
},
{
"node": "Convert to File",
"type": "main",
"index": 0
},
{
"node": "Merge",
"type": "main",
"index": 0
},
{
"node": "COLUMN BY NAME",
"type": "main",
"index": 0
},
{
"node": "COLUMN BY ID",
"type": "main",
"index": 0
}
]
]
},
"PULL SUBITEMS": {
"main": [
[
{
"node": "SPLIT SUBITEMS",
"type": "main",
"index": 0
}
]
]
},
"SPLIT SUBITEMS": {
"main": [
[
{
"node": "GET EACH SUBITEM",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"GET LINKEDPULSES": {
"main": [
[
{
"node": "SPLIT LINKED PULSES",
"type": "main",
"index": 0
}
]
]
},
"GET BOARD RELATION": {
"main": [
[
{
"node": "GET LINKEDPULSES",
"type": "main",
"index": 0
}
]
]
},
"SPLIT LINKED PULSES": {
"main": [
[
{
"node": "PULL LINKEDPULSE",
"type": "main",
"index": 0
}
]
]
},
"When clicking \"Test workflow\"": {
"main": [
[
{
"node": "GET ITEM",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,670 @@
{
"id": "ZdGZh4qmOqTQe1oq",
"meta": {
"instanceId": "da824ad45fda1b156c8390a3c35cdfbb10059e671c074c19429dac59c5ae98f6"
},
"name": "MONDAY GET FULL ITEM",
"tags": [
{
"id": "uKg1PU2D27Vsr8ud",
"name": "MONDAY",
"createdAt": "2023-12-05T07:54:13.266Z",
"updatedAt": "2023-12-05T07:54:13.266Z"
}
],
"nodes": [
{
"id": "20299349-bc2c-4aa8-b083-db31cb9aa278",
"name": "GET ALL COLUMNS",
"type": "n8n-nodes-base.code",
"position": [
1840,
-600
],
"parameters": {
"jsCode": "function createColumnValuesArray(data) {\n const result = {};\n data.forEach(item => {\n const name = item.id;\n result[name] = item;\n });\n\n return result;\n}\n\ncolumns = $input.last().json.column_values\ndata1 = { \"name\" : $input.last().json.name, \"id\" : $input.last().json.id }\ndata2 = createColumnValuesArray(columns)\n\nconst combinedData = { \"item\" : data1, columnValuesById: data2}\n\nreturn (combinedData)\n\n\n"
},
"typeVersion": 2
},
{
"id": "04c2550e-41d8-46f4-a131-2ea99dd4258a",
"name": "GET ALL RELATIONS",
"type": "n8n-nodes-base.code",
"position": [
1860,
-220
],
"parameters": {
"jsCode": "var data = $input.last().json.columnValuesById;\ni = 0;\nrelations = [];\nfor (var key in data) {\n if (data[key].type == \"board_relation\") {\n relations[i] = data[key];\n i++\n }\n}\n\nreturn relations;\n\n"
},
"typeVersion": 2
},
{
"id": "5796cb17-199b-4838-ae9c-c3636824bd13",
"name": "PULL LINKEDPULSE1",
"type": "n8n-nodes-base.mondayCom",
"position": [
1720,
-40
],
"parameters": {
"itemId": "=\n{{ $json.linkedPulse.linkedPulseId }}",
"resource": "boardItem",
"operation": "get"
},
"credentials": {
"mondayComApi": {
"id": "5nd48DKapWBLcUBx",
"name": "Monday.com account"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "67a8a151-5875-4ec7-8fda-f797f3d3b198",
"name": "GET LINKEDPULSES1",
"type": "n8n-nodes-base.code",
"position": [
1340,
-40
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "data = $input.item.json.value\nid = $input.item.json.id\nname = $input.item.json.column.title\n\nconst linkedPulseID = JSON.parse(data).linkedPulseIds\n\nreturn { \"linkedPulse\": linkedPulseID, \"id\" : id, \"name\": name }\n"
},
"typeVersion": 2
},
{
"id": "5dbe451d-ec23-48bf-9193-55a03b8752a4",
"name": "SPLIT LINKED PULSES1",
"type": "n8n-nodes-base.splitOut",
"position": [
1540,
-40
],
"parameters": {
"include": "=",
"options": {},
"fieldToSplitOut": "linkedPulse"
},
"typeVersion": 1
},
{
"id": "536897b1-ed71-4888-9761-cb4a363f0a86",
"name": "SPLIT SUBITEMS1",
"type": "n8n-nodes-base.splitOut",
"position": [
1540,
200
],
"parameters": {
"include": "selectedOtherFields",
"options": {},
"fieldToSplitOut": "linkedPulseIds",
"fieldsToInclude": "linkedPulseIds[0].linkedPulseId"
},
"typeVersion": 1
},
{
"id": "57777d0c-77d0-4652-a798-2d347b12cfb4",
"name": "GET EACH SUBITEM1",
"type": "n8n-nodes-base.mondayCom",
"position": [
1700,
200
],
"parameters": {
"itemId": "=\n{{ $json.linkedPulseIds.linkedPulseId }}",
"resource": "boardItem",
"operation": "get"
},
"credentials": {
"mondayComApi": {
"id": "5nd48DKapWBLcUBx",
"name": "Monday.com account"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "1a7574db-16bb-4d69-b91f-33b20e52c794",
"name": "GET ALL COLUMNS1",
"type": "n8n-nodes-base.code",
"position": [
1880,
200
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "function createColumnValuesArray(data) {\n const result = {};\n data.forEach(item => {\n const name = item.id;\n result[name] = item;\n });\n\n return result;\n}\n\ncolumns = $input.item.json.column_values\ndata1 = { \"name\" : $input.item.json.name, \"id\" : $input.item.json.id }\ndata2 = createColumnValuesArray(columns)\n\nconst combinedData = { ...data1, ...data2 }\n\nreturn (combinedData)\n\n\n"
},
"typeVersion": 2
},
{
"id": "ba95aef3-49b3-4a3e-a5fd-51ec04691949",
"name": "GET ALL COLUMNS2",
"type": "n8n-nodes-base.code",
"position": [
1840,
-420
],
"parameters": {
"jsCode": "function createColumnValuesArray(data) {\n const result = {};\n data.forEach(item => {\n if (item.type != \"subtasks\") {\n const name = item.column.title;\n result[name] = item;\n }\n });\n\n return result;\n}\n\ncolumns = $input.last().json.column_values\ndata = createColumnValuesArray(columns)\nreturn {\"columnValuesByName\": data}\n\n\n"
},
"typeVersion": 2
},
{
"id": "8c475537-efe6-4417-b293-e47abe817f7a",
"name": "Aggregate1",
"type": "n8n-nodes-base.aggregate",
"onError": "continueRegularOutput",
"position": [
2180,
100
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData",
"destinationFieldName": "subitems"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "f96f5fb7-1701-4cf4-b572-2ed3d8376232",
"name": "PULL SUBITEMS",
"type": "n8n-nodes-base.code",
"position": [
1320,
200
],
"parameters": {
"jsCode": "//Search for \"Subitems\" column\nconst columnName = \"Subitems\"\nfunction getColumnValue(item, columnId) {\n const column = item.column_values.find(column => column.column.title === columnId);\n if (column) {\n return column\n } else {\n return null;\n }\n}\nconst columnValue = getColumnValue($input.last().json, columnName);\nreturn JSON.parse(columnValue.value);\n\n//ALT OPTION - direct access by column_values[0]\n//var ids = $input.last().json['column_values'][0]['value'];\n//return JSON.parse(ids)"
},
"typeVersion": 2
},
{
"id": "aa96e7e9-6c2a-46d4-95af-124609a7b524",
"name": "GET ITEM",
"type": "n8n-nodes-base.mondayCom",
"position": [
1180,
-600
],
"parameters": {
"itemId": "=\n{{ $input.item.json.pulse }}",
"resource": "boardItem",
"operation": "get"
},
"credentials": {
"mondayComApi": {
"id": "5nd48DKapWBLcUBx",
"name": "Monday.com account"
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "da23cad1-77f9-4035-8ad3-b322dadba853",
"name": "GET ALL COLUMNS3",
"type": "n8n-nodes-base.code",
"position": [
1880,
-40
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "function createColumnValuesArray(data) {\n const result = {};\n data.forEach(item => {\n const name = item.id;\n result[name] = item;\n });\n\n return result;\n}\n\ncolumns = $input.item.json.column_values\ndata1 = { \"name\" : $input.item.json.name, \"id\" : $input.item.json.id }\ndata2 = createColumnValuesArray(columns)\n\nconst combinedData = { \"item\" : data1, columnValuesById: data2}\n\nreturn (combinedData)\n\n\n"
},
"typeVersion": 2
},
{
"id": "9c27b7af-2568-4b07-b526-9c18ca52649f",
"name": "Merge4",
"type": "n8n-nodes-base.merge",
"position": [
2180,
-100
],
"parameters": {
"mode": "combine",
"options": {},
"combinationMode": "mergeByPosition"
},
"typeVersion": 2.1,
"alwaysOutputData": true
},
{
"id": "6f0008fd-b8f5-4161-8fbf-363b3d5a7794",
"name": "Aggregate",
"type": "n8n-nodes-base.aggregate",
"onError": "continueRegularOutput",
"position": [
2340,
-100
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData",
"destinationFieldName": "boardrelations"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "d95b1e2a-405e-417b-8618-89af85b10350",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"onError": "continueRegularOutput",
"position": [
2540,
0
],
"parameters": {
"mode": "combine",
"options": {},
"combinationMode": "mergeByPosition"
},
"typeVersion": 2.1,
"alwaysOutputData": true
},
{
"id": "e9d7977d-1fd3-4be8-ad90-b42a93bc1ea4",
"name": "Merge2",
"type": "n8n-nodes-base.merge",
"onError": "continueRegularOutput",
"position": [
2480,
-240
],
"parameters": {
"mode": "combine",
"options": {},
"combinationMode": "mergeByPosition"
},
"typeVersion": 2.1,
"alwaysOutputData": true
},
{
"id": "72e04613-f953-49b0-ad13-4bd5464cc55e",
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"position": [
2680,
-160
],
"parameters": {
"mode": "combine",
"options": {},
"combinationMode": "mergeByPosition"
},
"typeVersion": 2.1
},
{
"id": "0846e8ee-8b58-40c2-8d3f-1e33f519bf55",
"name": "Execute Workflow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
980,
-600
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1c753c05-3541-4579-a815-b3465f26d51c",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1300,
-240
],
"parameters": {
"width": 752.1995067108865,
"height": 335.74971164936585,
"content": "PULL ALL BOARDRELATION COLUMNS AND THEIR DATA"
},
"typeVersion": 1
},
{
"id": "79c61e1f-6cbf-45ca-b0d3-31250fb7be18",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1300,
120
],
"parameters": {
"width": 748.2468880082052,
"height": 237.44804034647325,
"content": "PULL ALL SUBITEMS AND THEIR COLUMN DATA\n"
},
"typeVersion": 1
},
{
"id": "b5da95d7-d0d8-4ad1-ab93-e06e6c823ed2",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1720,
-640
],
"parameters": {
"color": 4,
"width": 325.58246828143024,
"height": 352.5605536332179,
"content": "PULL ALL COLUMN DATA AND INDEX BY ID AND NAME\n"
},
"typeVersion": 1
},
{
"id": "02125cbf-aa28-4cf1-a0ef-cf3cf45e76c2",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2140,
-298.05978270268713
],
"parameters": {
"color": 5,
"width": 677.0818915801614,
"height": 605.5742002344051,
"content": "COMBINE ALL DATA INTO ONE JSON OUTPUT\n"
},
"typeVersion": 1
},
{
"id": "e96deeef-6fb5-4130-b422-752e0e0dc9c5",
"name": "Execute Workflow",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
1180,
-780
],
"parameters": {
"options": {
"waitForSubWorkflow": true
},
"workflowId": "ZdGZh4qmOqTQe1oq"
},
"typeVersion": 1
},
{
"id": "955d8a6e-931c-411f-a26a-17f547370fd9",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
980,
-780
],
"parameters": {
"fields": {
"values": [
{
"name": "pulse",
"stringValue": "4030768878"
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "f508d0cd-448c-482e-9eeb-d569f26dbaab",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
940,
-920
],
"parameters": {
"color": 6,
"width": 418.4714893828877,
"height": 302.08861782546296,
"content": "HOW TO USE\n-Copy these nodes into another workflow, and update the workflow id in the execute workflow node\n-Using the Edit Fields nodes, define the “pulse” variable which will tell the workflow which monday item to pull data from.\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "dd22e2e2-0699-41d1-b6ad-001073624540",
"connections": {
"Merge": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Merge2": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Merge4": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"GET ITEM": {
"main": [
[
{
"node": "GET ALL COLUMNS",
"type": "main",
"index": 0
},
{
"node": "GET ALL COLUMNS2",
"type": "main",
"index": 0
},
{
"node": "PULL SUBITEMS",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Aggregate1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Execute Workflow",
"type": "main",
"index": 0
}
]
]
},
"PULL SUBITEMS": {
"main": [
[
{
"node": "SPLIT SUBITEMS1",
"type": "main",
"index": 0
}
]
]
},
"GET ALL COLUMNS": {
"main": [
[
{
"node": "GET ALL RELATIONS",
"type": "main",
"index": 0
},
{
"node": "Merge2",
"type": "main",
"index": 0
}
]
]
},
"SPLIT SUBITEMS1": {
"main": [
[
{
"node": "GET EACH SUBITEM1",
"type": "main",
"index": 0
}
]
]
},
"GET ALL COLUMNS1": {
"main": [
[
{
"node": "Aggregate1",
"type": "main",
"index": 0
}
]
]
},
"GET ALL COLUMNS2": {
"main": [
[
{
"node": "Merge2",
"type": "main",
"index": 1
}
]
]
},
"GET ALL COLUMNS3": {
"main": [
[
{
"node": "Merge4",
"type": "main",
"index": 1
}
]
]
},
"GET ALL RELATIONS": {
"main": [
[
{
"node": "GET LINKEDPULSES1",
"type": "main",
"index": 0
},
{
"node": "Merge4",
"type": "main",
"index": 0
}
]
]
},
"GET EACH SUBITEM1": {
"main": [
[
{
"node": "GET ALL COLUMNS1",
"type": "main",
"index": 0
}
]
]
},
"GET LINKEDPULSES1": {
"main": [
[
{
"node": "SPLIT LINKED PULSES1",
"type": "main",
"index": 0
}
]
]
},
"PULL LINKEDPULSE1": {
"main": [
[
{
"node": "GET ALL COLUMNS3",
"type": "main",
"index": 0
}
]
]
},
"SPLIT LINKED PULSES1": {
"main": [
[
{
"node": "PULL LINKEDPULSE1",
"type": "main",
"index": 0
}
]
]
},
"Execute Workflow Trigger": {
"main": [
[
{
"node": "GET ITEM",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,974 @@
{
"id": "reQhibpNwU63Y8sn",
"meta": {
"instanceId": "2128095e13afd30151f0fb53632960213a789cd45ed0afd3a7fb96a985bb4bcf",
"templateId": "2454",
"templateCredsSetupCompleted": true
},
"name": "Microsoft Outlook AI Email Assistant",
"tags": [],
"nodes": [
{
"id": "a923cfb0-64fe-499a-8f0e-13fc848731df",
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"position": [
980,
540
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ea865c8e-5c73-4d37-97d1-0349a265b9a4",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
-600
],
"parameters": {
"color": 5,
"width": 675,
"height": 107,
"content": "# Microsoft Outlook AI Email Assistant"
},
"typeVersion": 1
},
{
"id": "c835042f-421b-44a0-8dc4-686ac638b358",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
1300,
60
],
"parameters": {
"width": 612,
"height": 401,
"content": "## Outlook Business with filters\nFilters:\n```\nflag/flagStatus eq 'notFlagged' and not categories/any()\n```\n\nThese filters ensure we do not process flagged emails or email that already have a category set."
},
"typeVersion": 1
},
{
"id": "51ae8a4e-2d37-4118-a538-cd0fd4f427f7",
"name": "Microsoft Outlook23",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
1540,
240
],
"parameters": {
"limit": 10,
"fields": [
"flag",
"from",
"importance",
"replyTo",
"sender",
"subject",
"toRecipients",
"body",
"categories",
"isRead"
],
"output": "fields",
"options": {},
"filtersUI": {
"values": {
"filters": {
"custom": "flag/flagStatus eq 'notFlagged' and not categories/any()",
"foldersToInclude": [
"AAMkADYyNmQ0YWE1LWQxYjEtNDBhYS1hODI3LTg3MTkyNDAwMzE5NwAuAAAAAAA44w-ZZoU7QLO9GQAyv8UcAQAkfR2JHrRET4CmwDGznLN6AAAAAAEMAAA="
]
}
}
},
"operation": "getAll"
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "nv0cz3C6VZDzEgtR",
"name": "Microsoft365 Email Account"
}
},
"typeVersion": 2
},
{
"id": "a144adad-6fef-4f76-a06e-c889e8f16080",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
2020,
60
],
"parameters": {
"color": 6,
"width": 459,
"height": 401,
"content": "## Sanitise Email \nRemoves HTML and useless information in preparation for the AI Agent"
},
"typeVersion": 1
},
{
"id": "92ccac8f-9ce3-4f81-a499-e55835be3fc7",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
2020,
580
],
"parameters": {
"color": 4,
"width": 736,
"height": 558,
"content": "## Get Rules & Categories\nEdit the airtables to set your own categories, rules, contacts and/or delete rules. "
},
"typeVersion": 1
},
{
"id": "5b304e0f-002c-42c6-82a0-9ab1dc858861",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
3860,
460
],
"parameters": {
"model": "gpt-4o",
"options": {
"temperature": 0.2
}
},
"credentials": {
"openAiApi": {
"id": "l2JgpErNc5namHVH",
"name": "OpenAI account"
}
},
"typeVersion": 1
},
{
"id": "210816e8-6a1f-4e63-a90e-d953e0e87ccd",
"name": "Set Category",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
4500,
240
],
"parameters": {
"messageId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.output.id }}"
},
"operation": "update",
"updateFields": {
"categories": "={{ [$json.output.category] }}"
}
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "nv0cz3C6VZDzEgtR",
"name": "Microsoft365 Email Account"
}
},
"typeVersion": 2
},
{
"id": "fe4f8e8f-6a5c-4b7b-b5f7-10f1f374397c",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
4040,
460
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"description\": \"The email id\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The email subject line\"\n },\n \"category\": {\n \"type\": \"string\",\n \"description\": \"Primary classification of the email\"\n },\n \"subCategory\": {\n \"type\": \"string\",\n \"description\": \"Optional sub-classification if applicable\"\n },\n \"analysis\": {\n \"type\": \"string\",\n \"description\": \"Reasoning behind the categorization\"\n }\n },\n \"required\": [\"id\",\"subject\", \"category\", \"analysis\"]\n}"
},
"typeVersion": 1.2
},
{
"id": "489028ca-f265-4ea2-b8dd-64dd6b06c8f6",
"name": "If",
"type": "n8n-nodes-base.if",
"position": [
4740,
240
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6e4ecd0c-d151-4e5b-8d66-558f9f9ec3b0",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI: Analyse Email').item.json.output.subCategory }}",
"rightValue": "Action"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "e2a27071-bac6-4a67-94fb-93e7ac218c89",
"name": "Set Importance",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
5000,
220
],
"parameters": {
"messageId": {
"__rl": true,
"mode": "id",
"value": "={{ $('AI: Analyse Email').item.json.output.id }}"
},
"operation": "update",
"updateFields": {
"importance": "High"
}
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "nv0cz3C6VZDzEgtR",
"name": "Microsoft365 Email Account"
}
},
"typeVersion": 2
},
{
"id": "61cecccf-589f-4514-b126-cfbfc7d94981",
"name": "AI: Analyse Email",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
3860,
240
],
"parameters": {
"text": "=Categorise the following email:\n<email>\n{{ $('Loop Over Items').item.json.toJsonString() }}\n</email>\n\n<Contact>\n{{ $('Contact').all().toJsonString() }}\n</Contact>\n\n<DeleteRules>\n{{ $('Delete Rules').all().toJsonString() }}\n</DeleteRules>\n\n<Categories>\n{{ $('Categories').all().toJsonString() }}\n</Categories>\n\nEnsure your final output is valid JSON with no additional text or token in the following format:\n\n{\n \"subject\": \"SUBJECT_LINE\",1\n \"category\": \"CATEGORY\",\n \"subCategory\": \"SUBCATEGORY\", //use sparingly\n \"analysis\": \"ANALYSIS_REASONING\"\n}\n\nRemember you can only use ONE of the following category 'Name' values from the 'Categories' defined above. No other categories can be used. Use the subcategory for additional context, for example, if a client email requires action or if a supplier email requires action. Do not create any additional subcategories; you can only use ONE of the category 'Name' values from the 'Categories' defined above.",
"options": {
"systemMessage": "=Categories: \"\"\"{{ $('Categories').all().toJsonString() }}\"\"\"\n\nYou are an AI email assistant for the *insert role & title*. Your task is to categorize incoming emails using one of the category 'Name' values defined in 'Categories' above.\n\nYou may also use the subcategory:\n- Action\n\nInstructions:\nAnalyse the email subject, body, and sender's email address to determine the appropriate category by referring to the 'Usage', 'Sender Indicators' and 'Subject Indicators' defined in the 'Categories' above.\n\n\nOutput Format:\nProduce output in valid JSON format:\n{\n \"id\": \"{{ $('Loop Over Items').item.json.id }}\",\n \"subject\": \"SUBJECT_LINE\",\n \"category\": \"PRIMARY CATEGORY\",\n \"subCategory\": \"SUBCATEGORY\", // use sparingly\n \"analysis\": \"Brief 1-2 sentence explanation of category choice\"\n}\n- Replace \"SUBJECT_LINE\" with the actual subject of the email.\n- \"PRIMARY CATEGORY\" should be one of the categories listed above.\n- \"SUBCATEGORY\" should be \"Action\" if applicable; otherwise, omit or leave blank.\n- The \"analysis\" should be a brief 1-2 sentence explanation of why the category was chosen. Also, indicate if there was a match for the 'Contact' email and the email sender.\n\nImportant:\nYou may only use the categories and the subcategory listed above; do not create any additional categories or subcategories.\n\nNo additional text or tokens should be included outside the JSON output.\n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.6
},
{
"id": "947eb4d7-9067-4144-819b-f53947ca77f8",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1420,
-620
],
"parameters": {
"color": 6,
"width": 760,
"height": 400,
"content": "## CRM Contact List Integration \nFor this workflow I am retrieving supplier & client contacts from Monday.com the email assistant has better context to categorise, prioritise and reply to emails.\nThe list is updated daily or you can change the scheduler trigger to update more or less frequently.\nYou could replace this with your own CRM."
},
"typeVersion": 1
},
{
"id": "79815a8f-5650-4ec9-97b3-c0201469d048",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
3640,
60
],
"parameters": {
"width": 700,
"height": 580,
"content": "## Categorise & Prioritise Emails Agent \n"
},
"typeVersion": 1
},
{
"id": "2e9411a8-30da-4ee5-9597-cb08e34049a5",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
4400,
120
],
"parameters": {
"color": 4,
"width": 740,
"height": 280,
"content": "## Set the category & importance using the output from the agent\n"
},
"typeVersion": 1
},
{
"id": "138a734f-0ac5-4e50-a4af-b7255e11e862",
"name": "Check Mail Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"disabled": true,
"position": [
980,
260
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 15
}
]
}
},
"typeVersion": 1.2
},
{
"id": "709795fd-68ff-4881-9f30-6270dea83f7c",
"name": "Update Contacts Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
1080,
-420
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "552803ce-3dae-415d-b14d-a7b990450482",
"name": "Monday.com - Get Contacts",
"type": "n8n-nodes-base.mondayCom",
"position": [
1520,
-440
],
"parameters": {
"boardId": "1840712625",
"groupId": "topics",
"resource": "boardItem",
"operation": "getAll",
"returnAll": true
},
"credentials": {
"mondayComApi": {
"id": "wur9UFaP9YKCFZly",
"name": "Monday.com - API User"
}
},
"typeVersion": 1
},
{
"id": "cf41ebb0-f295-4f1a-a49c-05471a4d9220",
"name": "Airtable - Contacts",
"type": "n8n-nodes-base.airtable",
"position": [
1920,
-440
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbl8gTTEn96uFRDHE",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbl8gTTEn96uFRDHE",
"cachedResultName": "Contacts"
},
"columns": {
"value": {
"Type": "={{ $json.column_values[1].text }}",
"Email": "={{ $json.column_values[6].text }}",
"Last Name": "={{ $json.name.split(\" \",2).last() }}",
"First Name": "={{ $json.name.split(\" \",2).first() }}"
},
"schema": [
{
"id": "id",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "id",
"defaultMatch": true
},
{
"id": "Email",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Email",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "First Name",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "First Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Last Name",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Last Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Type",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Type",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Email"
]
},
"options": {},
"operation": "upsert"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"typeVersion": 2.1
},
{
"id": "6d698b4d-f18c-4e4a-9c83-8a39208aee8c",
"name": "Convert to Markdown",
"type": "n8n-nodes-base.markdown",
"notes": "Converts the body of the email to markdown",
"position": [
2120,
240
],
"parameters": {
"html": "={{ $json.body.content }}",
"options": {}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "012109cc-dcba-464b-b3bc-17201b1ad436",
"name": "Email Messages",
"type": "n8n-nodes-base.set",
"notes": "Set email fields",
"position": [
2320,
240
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "edb304e1-3e9f-4a77-918c-25646addbc53",
"name": "subject",
"type": "string",
"value": "={{ $json.subject }}"
},
{
"id": "57a3ef3a-2701-40d9-882f-f43a7219f148",
"name": "importance",
"type": "string",
"value": "={{ $json.importance }}"
},
{
"id": "d8317f4f-aa0e-4196-89af-cb016765490a",
"name": "sender",
"type": "object",
"value": "={{ $json.sender.emailAddress }}"
},
{
"id": "908716c8-9ff7-4bdc-a1a3-64227559635e",
"name": "from",
"type": "object",
"value": "={{ $json.from.emailAddress }}"
},
{
"id": "ce007329-e221-4c5a-8130-2f8e9130160f",
"name": "body",
"type": "string",
"value": "={{ $json.data\n .replace(/<[^>]*>/g, '') // Remove HTML tags\n .replace(/\\[(.*?)\\]\\((.*?)\\)/g, '') // Remove Markdown links like [text](link)\n .replace(/!\\[.*?\\]\\(.*?\\)/g, '') // Remove Markdown images like ![alt](image-link)\n .replace(/\\|/g, '') // Remove table separators \"|\"\n .replace(/-{3,}/g, '') // Remove horizontal rule \"---\"\n .replace(/\\n+/g, ' ') // Remove multiple newlines\n .replace(/([^\\w\\s.,!?@])/g, '') // Remove special characters except essential ones\n .replace(/\\s{2,}/g, ' ') // Replace multiple spaces with a single space\n .trim() // Trim leading/trailing whitespace\n}}\n"
},
{
"id": "6abfcc56-7b0a-469e-82fc-ce294ed5162b",
"name": "id",
"type": "string",
"value": "={{ $json.id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "6d3933f3-3f2e-4268-8979-d6c93c961916",
"name": "Rules",
"type": "n8n-nodes-base.airtable",
"position": [
2400,
720
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tblMSXbMFKETNToxV",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tblMSXbMFKETNToxV",
"cachedResultName": "Rules"
},
"options": {},
"operation": "search"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "9166d63f-0c16-490f-afb8-e30ef25c49da",
"name": "Categories",
"type": "n8n-nodes-base.airtable",
"position": [
2300,
860
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbliKDp5PoFNF7YI7",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbliKDp5PoFNF7YI7",
"cachedResultName": "Categories"
},
"options": {},
"operation": "search"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "f48e5a29-0eee-4420-80d9-2b9b016fba0d",
"name": "Delete Rules",
"type": "n8n-nodes-base.airtable",
"position": [
2140,
960
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbl84EJr7y65ed4zh",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbl84EJr7y65ed4zh",
"cachedResultName": "Delete Rules"
},
"options": {},
"operation": "search"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": true,
"typeVersion": 2.1
},
{
"id": "d6ad6091-2c7e-41b9-a9b3-b8715208cec0",
"name": "Contact",
"type": "n8n-nodes-base.airtable",
"position": [
3080,
240
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appNmgIGA4Fhculsn",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn",
"cachedResultName": "AI Email Assistant"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tbl8gTTEn96uFRDHE",
"cachedResultUrl": "https://airtable.com/appNmgIGA4Fhculsn/tbl8gTTEn96uFRDHE",
"cachedResultName": "Contacts"
},
"options": {},
"operation": "search",
"filterByFormula": "={Email}='{{ $('Loop Over Items').item.json.from.address }}'"
},
"credentials": {
"airtableTokenApi": {
"id": "Bgr0Fi30Oek2jpXT",
"name": "Airtable Personal Access Token account"
}
},
"executeOnce": false,
"typeVersion": 2.1,
"alwaysOutputData": true
},
{
"id": "bc1ede01-fa21-4446-a4e1-1a725a3a4887",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"position": [
2720,
260
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "fcdd837d-8852-4dcf-924c-aba4f2cddeba",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"position": [
3420,
220
],
"parameters": {
"mode": "chooseBranch",
"numberInputs": 4
},
"typeVersion": 3
},
{
"id": "f790dd9b-19bb-4649-975e-00a511f2dd9f",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
3020,
60
],
"parameters": {
"color": 4,
"height": 400,
"content": "## Match Contact\nCheck if the sender is an existing contact. Note in this workflow the contacts are dynamically loaded from Monday.com"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {},
"versionId": "e0fed20f-21be-4e21-bcc9-8af7062229dd",
"connections": {
"If": {
"main": [
[
{
"node": "Set Importance",
"type": "main",
"index": 0
}
],
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "AI: Analyse Email",
"type": "main",
"index": 0
}
]
]
},
"Rules": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Contact": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Categories": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 2
}
]
]
},
"Delete Rules": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 3
}
]
]
},
"Set Category": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Email Messages": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Set Importance": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Contact",
"type": "main",
"index": 0
}
]
]
},
"AI: Analyse Email": {
"main": [
[
{
"node": "Set Category",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI: Analyse Email",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Convert to Markdown": {
"main": [
[
{
"node": "Email Messages",
"type": "main",
"index": 0
}
]
]
},
"Microsoft Outlook23": {
"main": [
[
{
"node": "Convert to Markdown",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI: Analyse Email",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Monday.com - Get Contacts": {
"main": [
[
{
"node": "Airtable - Contacts",
"type": "main",
"index": 0
}
]
]
},
"Check Mail Schedule Trigger": {
"main": [
[
{
"node": "Microsoft Outlook23",
"type": "main",
"index": 0
}
]
]
},
"Update Contacts Schedule Trigger": {
"main": [
[
{
"node": "Monday.com - Get Contacts",
"type": "main",
"index": 0
}
]
]
},
"When clicking Test workflow": {
"main": [
[
{
"node": "Microsoft Outlook23",
"type": "main",
"index": 0
},
{
"node": "Rules",
"type": "main",
"index": 0
},
{
"node": "Categories",
"type": "main",
"index": 0
},
{
"node": "Delete Rules",
"type": "main",
"index": 0
}
]
]
}
}
}