{ "id": "mW6b4dMHkIDfnaIj", "meta": { "instanceId": "workflow-520237f0", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:47.061066", "updatedAt": "2025-09-29T07:07:47.061074", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "name": "My workflow 4", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "nodes": [ { "id": "9ae28c07-bb44-4e64-b38c-a74a9de81b2e", "name": "Receive Feedback", "type": "n8n-nodes-base.webhook", "position": [ -440, 540 ], "webhookId": "89e8d5ec-d442-41ea-9ff1-93a9df0b2aa1", "parameters": { "path": "client-feedback", "options": {}, "httpMethod": "POST" }, "typeVersion": 1, "notes": "This webhook node performs automated tasks as part of the workflow." }, { "id": "770bc041-1846-4ac1-b8dc-61756686f906", "name": "Prepare AI Prompt", "type": "n8n-nodes-base.function", "position": [ -240, 540 ], "parameters": { "functionCode": "\nconst feedback = $json.feedback || \"No feedback provided.\";\nreturn [{\n json: {\n prompt: `Analyze this client feedback: \"${feedback}\"\\n\\n1. Summarize the positive points.\\n2. Suggest improvements.\\n3. Generate a short social media post based on the positive elements.`\n }\n}];\n" }, "typeVersion": 1, "notes": "This function node performs automated tasks as part of the workflow." }, { "id": "0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e", "name": "Analyze with AI", "type": "n8n-nodes-base.httpRequest", "position": [ -40, 540 ], "parameters": { "url": "{{ $env.API_BASE_URL }}", "options": {}, "authentication": "{{ $credentials.predefinedCredentialType }}", "jsonParameters": true }, "typeVersion": 2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "bdbf3a85-e68f-4fe3-b0b4-d44578d11c31", "name": "Format AI Output", "type": "n8n-nodes-base.function", "position": [ 160, 540 ], "parameters": { "functionCode": "\nconst output = $json.response || $json.choices?.[0]?.text || \"No AI output.\";\nconst splitIndex = output.indexOf(\"3.\");\nlet summary = output;\nlet post = \"No post generated.\";\n\nif (splitIndex !== -1) {\n summary = output.substring(0, splitIndex).trim();\n post = output.substring(splitIndex).replace(/^3\\./, \"\").trim();\n}\n\nreturn [{\n json: {\n report: summary,\n post: post\n }\n}];\n" }, "typeVersion": 1, "notes": "This function node performs automated tasks as part of the workflow." }, { "id": "47093d4d-645b-4dc8-a5a4-1b35a649ac97", "name": "Send Feedback Report", "type": "n8n-nodes-base.emailSend", "position": [ 380, 500 ], "parameters": { "text": "={{ $json[\"report\"] }}", "options": {}, "subject": "Client Feedback Summary", "toEmail": "team@email.com", "fromEmail": "your@email.com" }, "typeVersion": 1, "notes": "This emailSend node performs automated tasks as part of the workflow." }, { "id": "e49a4898-00d9-4413-ac6d-87aafdfe6ff9", "name": "Send Social Draft", "type": "n8n-nodes-base.telegram", "position": [ 380, 660 ], "webhookId": "07598764-aee9-41ea-82c1-0ded0ac08b57", "parameters": { "text": "={{ $json[\"post\"] }}", "chatId": "YOUR_TELEGRAM_CHAT_ID", "additionalFields": {} }, "typeVersion": 1, "notes": "This telegram 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": "54d175ec-080f-4d2d-9d83-60dd36c8f11b", "connections": { "9ae28c07-bb44-4e64-b38c-a74a9de81b2e": { "main": [ [ { "node": "error-handler-9ae28c07-bb44-4e64-b38c-a74a9de81b2e", "type": "main", "index": 0 } ], [ { "node": "error-handler-9ae28c07-bb44-4e64-b38c-a74a9de81b2e-182d1df0", "type": "main", "index": 0 } ], [ { "node": "error-handler-9ae28c07-bb44-4e64-b38c-a74a9de81b2e-58412d58", "type": "main", "index": 0 } ], [ { "node": "error-handler-9ae28c07-bb44-4e64-b38c-a74a9de81b2e-a35fac17", "type": "main", "index": 0 } ], [ { "node": "error-handler-9ae28c07-bb44-4e64-b38c-a74a9de81b2e-159cb661", "type": "main", "index": 0 } ] ] }, "0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e": { "main": [ [ { "node": "error-handler-0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e", "type": "main", "index": 0 } ], [ { "node": "error-handler-0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e-8126e812", "type": "main", "index": 0 } ], [ { "node": "error-handler-0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e-c8a19aee", "type": "main", "index": 0 } ], [ { "node": "error-handler-0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e-15b51775", "type": "main", "index": 0 } ], [ { "node": "error-handler-0b3a469a-f6f4-4140-9c6f-fd7ba7689c5e-d73c2ff7", "type": "main", "index": 0 } ] ] }, "47093d4d-645b-4dc8-a5a4-1b35a649ac97": { "main": [ [ { "node": "error-handler-47093d4d-645b-4dc8-a5a4-1b35a649ac97-b6be746f", "type": "main", "index": 0 } ], [ { "node": "error-handler-47093d4d-645b-4dc8-a5a4-1b35a649ac97-30c23bea", "type": "main", "index": 0 } ], [ { "node": "error-handler-47093d4d-645b-4dc8-a5a4-1b35a649ac97-95f8e238", "type": "main", "index": 0 } ], [ { "node": "error-handler-47093d4d-645b-4dc8-a5a4-1b35a649ac97-c7ab3bb5", "type": "main", "index": 0 } ] ] }, "e49a4898-00d9-4413-ac6d-87aafdfe6ff9": { "main": [ [ { "node": "error-handler-e49a4898-00d9-4413-ac6d-87aafdfe6ff9-351bad54", "type": "main", "index": 0 } ] ] } }, "description": "Automated workflow: My workflow 4. This workflow processes data and performs automated tasks.", "notes": "Excellent quality workflow: My workflow 4. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }