Workflow: Manualtrigger Workflow
Integrations: function, manualTrigger, stopAndError

{"nodes": [{"name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "position": [220, 80], "parameters": {}, "typeVersion": 1, "id": "6c5995d0-dfbb-49d4-acd6-7e29a6f0ef33", "notes": "This manualTrigger node performs automated tasks as part of the workflow."}, {"name": "Mock data", "type": "n8n-nodes-base.function", "position": [420, 80], "parameters": {"functionCode": "// Code here will run only once, no matter how many input items there are.\n// More info and help: {{ $env.WEBHOOK_URL }}\n\n\nreturn [ { json: { amount_USD: 50 } }, { json: { amount_USD: 20 } }, { json: { amount_USD: 60 } } ];"}, "typeVersion": 1, "id": "c250a762-ef07-4829-8013-fe1bdb898246", "notes": "This function node performs automated tasks as part of the workflow."}, {"name": "Summing function", "type": "n8n-nodes-base.function", "position": [660, 80], "parameters": {"functionCode": "// Code here will run only once, no matter how many input items there are.\n// More info and help: {{ $env.WEBHOOK_URL }}\n\n//Setup an empty variable to hold the count\nlet total = 0;\n\n//Loop over the incoming items of data\nfor (item of items) {\n  //For each item of data, add the amount_USD to our total counter\n  total += item.json.amount_USD;\n}\n\n//Returns a well formed JSON object with just the total_value . You can either add more data to this returned object OR use the set node afterwards to do it in a no-code way.\nreturn [ { json: { total_value: total } } ];"}, "typeVersion": 1, "id": "9b7e448f-11c3-4ba6-a3a4-ce9614b8ef52", "notes": "This function node performs automated tasks as part of the workflow."}, {"id": "error-3da54171", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [1000, 400], "parameters": {"message": "Workflow execution error", "options": {}}}], "connections": {}, "name": "Manualtrigger Workflow", "description": "Automated workflow: Manualtrigger Workflow. This workflow processes data and performs automated tasks.", "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "meta": {"instanceId": "workflow-27d03f5b", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:48.668554", "updatedAt": "2025-09-29T07:07:48.668579", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "notes": "Excellent quality workflow: Manualtrigger Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}