{ "id": "nkPjDxMrrkKbgHaV", "meta": { "instanceId": "workflow-01cb7f3c", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:44.383842", "updatedAt": "2025-09-29T07:07:44.383860", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "name": "Effortless Email Management with AI", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "nodes": [ { "id": "9d77e26f-de2b-4bd4-b0f0-9924a8f459a6", "name": "Email Trigger (IMAP)", "type": "n8n-nodes-base.emailReadImap", "position": [ -2000, -180 ], "parameters": { "options": {} }, "credentials": { "imap": { "id": "k31W9oGddl9pMDy4", "name": "IMAP info@n3witalia.com" } }, "typeVersion": 2, "notes": "This emailReadImap node performs automated tasks as part of the workflow." }, { "id": "cf2d020b-b125-4a20-8694-8ed0f7acf755", "name": "Markdown", "type": "n8n-nodes-base.markdown", "position": [ -1740, -180 ], "parameters": { "html": "={{ $json.textHtml }}", "options": {} }, "typeVersion": 1, "notes": "This markdown node performs automated tasks as part of the workflow." }, { "id": "41bfceff-0155-4643-be60-ee301e2d69e1", "name": "Send Email", "type": "n8n-nodes-base.emailSend", "position": [ 400, -320 ], "webhookId": "a79ae1b4-648c-4cb4-b6cd-04ea3c1d9314", "parameters": { "html": "={{ $('Edit Fields').item.json.email }}", "options": {}, "subject": "=Re: {{ $('Email Trigger (IMAP)').item.json.subject }}", "toEmail": "={{ $('Email Trigger (IMAP)').item.json.from }}", "fromEmail": "={{ $('Email Trigger (IMAP)').item.json.to }}" }, "credentials": { "smtp": { "id": "hRjP3XbDiIQqvi7x", "name": "SMTP info@n3witalia.com" } }, "typeVersion": 2.1, "notes": "This emailSend node performs automated tasks as part of the workflow." }, { "id": "2aff581a-8b64-405c-b62f-74bf189fd7b1", "name": "Qdrant Vector Store", "type": "n8n-nodes-base.noOp", "position": [ -320, 600 ], "parameters": { "mode": "retrieve-as-tool", "options": {}, "toolName": "company_knowladge_base", "toolDescription": "Extracts information regarding the request made.", "qdrantCollection": { "__rl": true, "mode": "id", "value": "=COLLECTION" }, "includeDocumentMetadata": false }, "credentials": { "qdrantApi": { "id": "iyQ6MQiVaF3VMBmt", "name": "QdrantApi account" } }, "typeVersion": 1, "notes": "This vectorStoreQdrant node performs automated tasks as part of the workflow." }, { "id": "6e3f6df0-8924-47d9-855c-51205d19e86d", "name": "Embeddings OpenAI", "type": "n8n-nodes-base.noOp", "position": [ -440, 800 ], "parameters": { "options": {} }, "credentials": { "openAiApi": { "id": "CDX6QM4gLYanh0P4", "name": "OpenAi account" } }, "typeVersion": 1.2, "notes": "This embeddingsOpenAi node performs automated tasks as part of the workflow." }, { "id": "37ac411b-4a74-44d1-917e-b07d1c9ca221", "name": "Email Summarization Chain", "type": "n8n-nodes-base.noOp", "position": [ -1480, -180 ], "parameters": { "options": { "binaryDataKey": "YOUR_CREDENTIAL_HERE", "summarizationMethodAndPrompts": { "values": { "prompt": "=Write a concise summary of the following in max 100 words:\n\n\"{{ $json.data }}\"\n\nDo not enter the total number of words used.", "combineMapPrompt": "=Write a concise summary of the following in max 100 words:\n\n\"{{ $json.data }}\"\n\nDo not enter the total number of words used." } } }, "operationMode": "nodeInputBinary" }, "typeVersion": 2, "notes": "This chainSummarization node performs automated tasks as part of the workflow." }, { "id": "91edbac9-847b-4f31-a8dd-09418bd93642", "name": "Write email", "type": "n8n-nodes-base.noOp", "position": [ -1040, -180 ], "parameters": { "text": "=Write the text to reply to the following email:\n\n{{ $json.response.text }}", "options": { "systemMessage": "You are an expert at answering emails. You need to answer them professionally based on the information you have. This is a business email. Be concise and never exceed 100 words. Only the body of the email, not create the subject" }, "promptType": "define", "hasOutputParser": true }, "typeVersion": 1.7, "notes": "This agent node performs automated tasks as part of the workflow." }, { "id": "1da0e72a-db97-4216-a1a5-038cebaf7e10", "name": "OpenAI", "type": "n8n-nodes-base.noOp", "position": [ -180, 280 ], "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "gpt-4o-mini" }, "options": {} }, "credentials": { "openAiApi": { "id": "CDX6QM4gLYanh0P4", "name": "OpenAi account" } }, "typeVersion": 1.2, "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow." }, { "id": "af2d6284-4c8f-4a07-b689-d0f55aaabd26", "name": "Gmail", "type": "n8n-nodes-base.gmail", "position": [ -300, -180 ], "webhookId": "d6dd2e7c-90ea-4b65-9c64-523d2541a054", "parameters": { "sendTo": "info@n3w.it", "message": "=
where necessary. Be concise and never exceed 100 words. Only the body of the email" }, "promptType": "define", "hasOutputParser": true }, "typeVersion": 1.7, "notes": "This agent node performs automated tasks as part of the workflow." }, { "id": "ecd9d3f8-2e79-4e5f-a73d-48de60441376", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [ 340, -120 ], "parameters": { "width": 340, "height": 220, "content": "The Email Reviewer agent, taking inspiration from human feedback, rewrites the email" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." } ], "active": false, "pinData": {}, "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "versionId": "de11da52-1513-4797-8070-b64e84b84158", "connections": { "21a0c991-65dc-483e-9b98-5cedaba7ae13": { "main": [ [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-137b4ef5", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-283f78ea", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-247d3162", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-f5c5ee17", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-fe70d74b", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-1dc4a876", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-2bae4827", "type": "main", "index": 0 } ], [ { "node": "error-handler-21a0c991-65dc-483e-9b98-5cedaba7ae13-f448a52c", "type": "main", "index": 0 } ] ] }, "9a048d7d-bcdf-40b7-b33a-94b811083eac": { "main": [ [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-99c4e472", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-d958e8ba", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-7f1c61ea", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-e120d46c", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-dc0080d6", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-04678254", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-6fdd3dd0", "type": "main", "index": 0 } ], [ { "node": "error-handler-9a048d7d-bcdf-40b7-b33a-94b811083eac-139039c2", "type": "main", "index": 0 } ] ] }, "9d77e26f-de2b-4bd4-b0f0-9924a8f459a6": { "main": [ [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-965e4867", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-f3896032", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-c9ee6798", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-350cf334", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-a9f55486", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-a26551b2", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-d39fa3ab", "type": "main", "index": 0 } ], [ { "node": "error-handler-9d77e26f-de2b-4bd4-b0f0-9924a8f459a6-f7a1c4e2", "type": "main", "index": 0 } ] ] }, "41bfceff-0155-4643-be60-ee301e2d69e1": { "main": [ [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-1ba67bae", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-29450198", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-58e640a2", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-cfee716c", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-42f2c658", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-5984fe3f", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-34c075e4", "type": "main", "index": 0 } ], [ { "node": "error-handler-41bfceff-0155-4643-be60-ee301e2d69e1-5287b11f", "type": "main", "index": 0 } ] ] }, "6e3f6df0-8924-47d9-855c-51205d19e86d": { "main": [ [ { "node": "error-handler-6e3f6df0-8924-47d9-855c-51205d19e86d-f23cf01d", "type": "main", "index": 0 } ] ] }, "1da0e72a-db97-4216-a1a5-038cebaf7e10": { "main": [ [ { "node": "error-handler-1da0e72a-db97-4216-a1a5-038cebaf7e10-c225d49b", "type": "main", "index": 0 } ] ] }, "db494d2d-5390-4f83-9b87-3409fef31a7d": { "main": [ [ { "node": "error-handler-db494d2d-5390-4f83-9b87-3409fef31a7d-84fc3382", "type": "main", "index": 0 } ] ] }, "e30dbe6f-482e-47f9-b5b8-62c1113e6c8b": { "main": [ [ { "node": "error-handler-e30dbe6f-482e-47f9-b5b8-62c1113e6c8b-9977f518", "type": "main", "index": 0 } ] ] }, "c15fd52f-b142-408e-af06-aeed10a1cf85": { "main": [ [ { "node": "error-handler-c15fd52f-b142-408e-af06-aeed10a1cf85-a84bc774", "type": "main", "index": 0 } ] ] } }, "description": "Automated workflow: Effortless Email Management with AI. This workflow integrates 19 different services: stickyNote, vectorStoreQdrant, lmChatOpenAi, emailSend, textClassifier. It contains 42 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: Effortless Email Management with AI. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }