Skip to content

Instantly share code, notes, and snippets.

@AlexanderCohen
Last active February 20, 2025 06:57
Show Gist options
  • Save AlexanderCohen/62750a709a31a2d3b8e5aad828ad59d9 to your computer and use it in GitHub Desktop.
Save AlexanderCohen/62750a709a31a2d3b8e5aad828ad59d9 to your computer and use it in GitHub Desktop.
{
"nodes": [
{
"parameters": {
"content": "# 4. Assign Labels\n\n### This will be the most time consuming task to get the automation set up. This will require you to manually assign with label in your gmail is associated with the categorisation.\n\n\n\n## ⚠️ IMPORTANT INFORMATION\n### If you do not want the email to be removed from your main inbox, you can simply delete the node.\n\n### The labels are currently set for Gmail Accounts, if you are using Microsoft office, simply replace these nodes with Microsoft office nodes. \n\n",
"height": 2120,
"width": 460
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2220,
0
],
"id": "420a4fc0-7933-47db-b622-6dcec7b915ca",
"name": "Sticky Note12"
},
{
"parameters": {
"content": "## 3. Set your Custom Instructions\n- Adapt the classification instructions to suit your unique use case\n- Do this by double clicking on the \n- **⚠️ IMPORTANT** Be sure to update the classification rules in the next tab if you add or remove any categories.",
"height": 360,
"width": 600,
"color": 5
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
540,
660
],
"id": "e1c3fbdb-f066-481d-8f93-a9e00549aef5",
"name": "Sticky Note11"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.2,
"position": [
800,
1200
],
"id": "ddb46d5e-de86-4fd2-9e15-51c9e3e6842e",
"name": "Anthropic Chat Model"
},
{
"parameters": {
"content": "## 2. Set your AI Service \n- Set which AI Service you'd like to use",
"height": 320,
"width": 600,
"color": 5
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
540,
1040
],
"id": "1a27a131-c6da-4313-adf9-bc11b68e52a4",
"name": "Sticky Note10"
},
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"filters": {
"readStatus": "unread"
},
"options": {}
},
"type": "n8n-nodes-base.microsoftOutlookTrigger",
"typeVersion": 1,
"position": [
140,
1100
],
"id": "52ae1941-4925-421a-94cc-6fc94a465081",
"name": "Microsoft Outlook Trigger"
},
{
"parameters": {
"content": "## 1. Set your Email Provider\n- Simply connect your email provider and set the credentials. Delete the connection for any other email providers.\n- Ensure that filters are set for Unread emails only!\n- When ready, drag the connection so it \n\n",
"height": 700,
"width": 440,
"color": 5
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
40,
660
],
"id": "a75f8af6-1177-4e6d-9af8-9cd28ba16d84",
"name": "Sticky Note9"
},
{
"parameters": {
"content": "# START HERE\n\n## Some help guides have been provided to help you get these nodes set up and running\n\n\n## Setting Node Credentials\n- In order to use this automation you will need to apply your credentials to each of individual workflow nodes. To do this, simply click on the node and then select your credential from the dropdown. \n\n\n\n## Steps Required.\n\n### 1. **Set up your email trigger**\n### 2. **Set your AI Provider**\n### 3. **Configure your Agent instructions**\n### 4. **Assign your Labels** \n\n\n\n### NEED HELP?\n- Where do I find my credentials. --> Read this guide: https://docs.n8n.io/credentials/add-edit-credentials/\n- If you'd like help self hosting and build more complex tooling, feel free to send us an email at [email protected] or [email protected]\n",
"height": 2120,
"width": 2200,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
0,
0
],
"id": "5de1c673-0595-4547-b407-bdf4536ad9e0",
"name": "Sticky Note8"
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_8442027257611780616"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
1660
],
"id": "ee2463d1-f86b-4887-86d1-4a954298d26c",
"name": "Apply Internal Label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834"
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_4797541454861514442"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
1400
],
"id": "7802e727-8b78-4002-a5c9-bf8abe912ada",
"name": "Apply App Update Label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834"
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_1745947081328979458"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
1140
],
"id": "424b6da8-b529-4118-bb54-6a18686eddeb",
"name": "Apply Personal Label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834",
"alwaysOutputData": false
},
{
"parameters": {
"operation": "removeLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"INBOX"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1780,
880
],
"id": "3755b551-0cd5-4169-874b-384c7d5ee1aa",
"name": "Remove Client from Inbox",
"webhookId": "6abd6007-8d28-49f6-bb18-75c561e49cf7"
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_2952753068178095426"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
880
],
"id": "6291ed64-7a24-47da-9114-26ec6c241732",
"name": "Apply Client label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834",
"alwaysOutputData": false
},
{
"parameters": {
"operation": "removeLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"INBOX"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1780,
620
],
"id": "65e13063-f107-4e82-bc3d-02bec328106e",
"name": "Remove Marketing from Inbox",
"webhookId": "6abd6007-8d28-49f6-bb18-75c561e49cf7",
"notesInFlow": true
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_1140370974057176266"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
620
],
"id": "794eaf2a-658e-4800-a258-ed66b42d8cac",
"name": "Apply Marketing Label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834",
"alwaysOutputData": false,
"notesInFlow": true
},
{
"parameters": {
"operation": "removeLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"INBOX"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1780,
360
],
"id": "69427bcc-fd93-4a9a-a589-576210d8b011",
"name": "Remove Receipts from Inbox",
"webhookId": "6abd6007-8d28-49f6-bb18-75c561e49cf7",
"notesInFlow": true
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_2990011455425439405"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
360
],
"id": "3fcea48b-1c95-4b64-b55b-58bf135df368",
"name": "Apply Receipt Label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834",
"alwaysOutputData": false,
"notesInFlow": true
},
{
"parameters": {
"operation": "removeLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"INBOX"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1780,
120
],
"id": "0056652a-56eb-4c5f-9d8b-bc7871f28fbe",
"name": "Remove from Inbox",
"webhookId": "6abd6007-8d28-49f6-bb18-75c561e49cf7"
},
{
"parameters": {
"operation": "addLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"Label_9162027366693770110"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1560,
120
],
"id": "70101113-2b6b-4c14-93d2-7f4564fe508b",
"name": "Apply Meeting Label",
"webhookId": "771377ae-8628-4409-b6b0-43627a30f834",
"alwaysOutputData": false
},
{
"parameters": {
"prompt": "=Your Task:\nEvaluate the following email to determine it's appropriate category.\n\nInstruction:\nAnalyse the following email's contents, sender, and message, and categorize it into one of the following six categories:\n\n client_communications: Emails related to work or business exchanges with clients.\n\n application_notifications: Automated emails from applications or systems, including alerts or status updates.\n\n receipts_and_invoices: Emails containing payment confirmations, purchase receipts, or billing details.\n\n personal_correspondence: Emails of a personal or informal nature, including messages from family or friends.\n\n meeting_and_appointment: Emails arranging, confirming, or rescheduling meetings or appointments.\n\n newsletter_and_marketing_update: Promotional or informational emails sent as part of a subscription or marketing campaign.\n\n internal: When the sender is an internal Team member (@REPLACEDOMAINHERE.com email) and only COMPANYNAME employees are the recipient\n\nSender: \n{{ encodeURI($json.From) }}\n\nrecipients:\n{{ encodeURI($json.To) }}\n\nSubject:\n{{ encodeURI($json.Subject) }}\n\nEmail for Analysis:\n{{ encodeURI($json.text) }}\n\nExpected Output:\nState the category that best fits the email. return the result as a snakecase category E.g (client_communications, application_notification etc) with no explination. \n\n\n"
},
"id": "7f0e7609-f584-4d48-b31e-981a60e0412f",
"name": "Classify email & Sort",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
860,
820
],
"typeVersion": 1
},
{
"parameters": {
"modelName": "models/gemini-2.0-flash-thinking-exp",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
1000,
1200
],
"id": "c125e2af-9e46-401a-8ef2-e09b1c968aba",
"name": "Google Gemini Chat Model"
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "15bfcb94-9781-4fae-bbf6-fda92715e1b9",
"leftValue": "={{ $json.text }}",
"rightValue": "meeting_and_appointment",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Meetings"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "3c67ecdb-8cb2-4790-a1e6-810db86a2c8d",
"leftValue": "={{ $json.text }}",
"rightValue": "receipts_and_invoices",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Receipts & Inovices"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "80ea789d-82a1-4c56-a2cf-52cb411b86f5",
"leftValue": "={{ $json.text }}",
"rightValue": "newsletter_and_marketing_update",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Marketing"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "e41648bc-bf72-425c-83ed-b36f91612cb9",
"leftValue": "={{ $json.text }}",
"rightValue": "client_communications",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Client Comms"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "70b0ba58-9097-4c73-ae68-eaf00f83c1f4",
"leftValue": "={{ $json.text }}",
"rightValue": "personal_correspondence",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Personal"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "b47465ae-143b-40b8-b070-c890af2ebd46",
"leftValue": "={{ $json.text }}",
"rightValue": "application_notifications",
"operator": {
"type": "string",
"operation": "contains"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Application Updates"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "d19809c9-dc96-46d5-80a4-41cf25367bac",
"leftValue": "={{ $json.text }}",
"rightValue": "scope_go",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "ScopeGo Internal"
}
]
},
"options": {
"allMatchingOutputs": true
}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
1200,
640
],
"id": "985fe4b4-242d-42f3-95a5-89ec9e4d3029",
"name": "By classification"
},
{
"parameters": {
"operation": "removeLabels",
"messageId": "={{ $('ID').item.json.id }}",
"labelIds": [
"INBOX"
]
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1800,
1140
],
"id": "537fa2a0-9edf-4909-8923-87e9d0e569cc",
"name": "Remove Label - Inbox 5",
"webhookId": "6abd6007-8d28-49f6-bb18-75c561e49cf7"
},
{
"parameters": {
"operation": "markAsRead",
"messageId": "={{ $('ID').item.json.id }}"
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1980,
620
],
"id": "82da6fe5-9ee1-4642-91ea-98c545c1a819",
"name": "Mark Read",
"webhookId": "6abd6007-8d28-49f6-bb18-75c561e49cf7",
"notesInFlow": true
},
{
"parameters": {
"content": "## Internal Team\n",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
1580
],
"typeVersion": 1,
"id": "d0b407b4-44fb-4208-b11e-da686eb20679",
"name": "Sticky Note7"
},
{
"parameters": {
"content": "## Manual Trigger Loop\n \n- Use this useful for testing and to trigger manually\n",
"height": 180,
"width": 1280,
"color": 5
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
880,
1840
],
"id": "58035222-28f9-49ca-a2ae-4d7ee076fed8",
"name": "Sticky Note6"
},
{
"parameters": {
"values": {
"string": [
{
"name": "id",
"value": "={{ $json.id }}"
}
]
},
"options": {
"dotNotation": false
}
},
"name": "ID",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
560,
820
],
"id": "70735315-c07d-4ae1-8392-851f09158443"
},
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"filters": {
"readStatus": "unread"
}
},
"type": "n8n-nodes-base.gmailTrigger",
"typeVersion": 1.2,
"position": [
140,
880
],
"id": "ea3548c8-fd0a-4561-8ed9-72330eb0d597",
"name": "Gmail Trigger",
"credentials": {
"gmailOAuth2": {
"id": "RjAEc6gQYzmlXUEP",
"name": "Gmail account"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
1360,
1860
],
"id": "0135928a-9176-458b-a6ef-f3db4d04f128",
"name": "When clicking ‘Test workflow’"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "1f36f061-965d-4478-8927-2a64a48a5065",
"leftValue": "={{ $json.id }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "empty",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
1980,
1880
],
"id": "6b8d45b8-3072-43eb-b7e5-0aaea59b7b8c",
"name": "If"
},
{
"parameters": {
"options": {
"reset": "={{ false }}"
}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
1760,
1860
],
"id": "6d3ff9cc-c0c1-4b6f-b156-53089e797c92",
"name": "Loop Over Items"
},
{
"parameters": {
"resource": "message",
"operation": "getAll",
"limit": 100,
"additionalFields": {
"q": "has:nouserlabels"
}
},
"name": "Fetch Emails",
"type": "n8n-nodes-base.gmail",
"typeVersion": 1,
"position": [
1520,
1860
],
"id": "e581e85f-e0d6-4030-acc7-b45f527e2dbb"
},
{
"parameters": {
"content": "## Application Updates",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
1320
],
"typeVersion": 1,
"id": "f0dfec3c-b17d-45ca-9493-1b2b32bfdbf8",
"name": "Sticky Note5"
},
{
"parameters": {
"content": "## Personal\n",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
1060
],
"typeVersion": 1,
"id": "00f4357e-1663-4b09-bc27-ca951b0a2284",
"name": "Sticky Note4"
},
{
"parameters": {
"content": "## Meetings & Appointment Setting\n",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
40
],
"typeVersion": 1,
"id": "b99e93b7-6bd0-4a56-82bf-96e01e3f8d39",
"name": "Sticky Note3"
},
{
"parameters": {
"content": "## Client Comms",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
800
],
"typeVersion": 1,
"id": "7b8810b7-7cd4-49e1-ab96-92a8a51f66e3",
"name": "Sticky Note2"
},
{
"parameters": {
"content": "## Marketing\n",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
540
],
"typeVersion": 1,
"id": "54b29fa3-66fa-4f99-9c91-25c425ed50d5",
"name": "Sticky Note1"
},
{
"parameters": {
"content": "## Receipts\n",
"height": 220,
"width": 680
},
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
280
],
"typeVersion": 1,
"id": "4593d40c-fba8-4514-8f36-8e816c1bd3df",
"name": "Sticky Note"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
620,
1200
],
"id": "c30291ef-d0db-4c8e-93aa-db0106d27984",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "sv09iMyjnHKmtZl6",
"name": "OpenAi account"
}
}
}
],
"connections": {
"Microsoft Outlook Trigger": {
"main": [
[
{
"node": "ID",
"type": "main",
"index": 0
}
]
]
},
"Apply Internal Label": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Apply App Update Label": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Apply Personal Label": {
"main": [
[
{
"node": "Remove Label - Inbox 5",
"type": "main",
"index": 0
}
]
]
},
"Remove Client from Inbox": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Apply Client label": {
"main": [
[
{
"node": "Remove Client from Inbox",
"type": "main",
"index": 0
}
]
]
},
"Remove Marketing from Inbox": {
"main": [
[
{
"node": "Mark Read",
"type": "main",
"index": 0
}
]
]
},
"Apply Marketing Label": {
"main": [
[
{
"node": "Remove Marketing from Inbox",
"type": "main",
"index": 0
}
]
]
},
"Remove Receipts from Inbox": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Apply Receipt Label": {
"main": [
[
{
"node": "Remove Receipts from Inbox",
"type": "main",
"index": 0
}
]
]
},
"Remove from Inbox": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Apply Meeting Label": {
"main": [
[
{
"node": "Remove from Inbox",
"type": "main",
"index": 0
}
]
]
},
"Classify email & Sort": {
"main": [
[
{
"node": "By classification",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[]
]
},
"By classification": {
"main": [
[
{
"node": "Apply Meeting Label",
"type": "main",
"index": 0
}
],
[
{
"node": "Apply Receipt Label",
"type": "main",
"index": 0
}
],
[
{
"node": "Apply Marketing Label",
"type": "main",
"index": 0
}
],
[
{
"node": "Apply Client label",
"type": "main",
"index": 0
}
],
[
{
"node": "Apply Personal Label",
"type": "main",
"index": 0
}
],
[
{
"node": "Apply App Update Label",
"type": "main",
"index": 0
}
],
[
{
"node": "Apply Internal Label",
"type": "main",
"index": 0
}
]
]
},
"Remove Label - Inbox 5": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Mark Read": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"ID": {
"main": [
[
{
"node": "Classify email & Sort",
"type": "main",
"index": 0
}
]
]
},
"Gmail Trigger": {
"main": [
[
{
"node": "ID",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Fetch Emails",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[],
[
{
"node": "ID",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Fetch Emails": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Classify email & Sort",
"type": "ai_languageModel",
"index": 0
}
]
]
}
},
"pinData": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment