Workflow: Manualtrigger Workflow
Integrations: gmail, manualTrigger, splitInBatches, stopAndError

{"nodes": [{"name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "position": [-40, 240], "parameters": {}, "typeVersion": 1, "id": "8e17720a-122f-4c48-a960-4f1fa4f44208", "notes": "This manualTrigger node performs automated tasks as part of the workflow."}, {"name": "Gmail", "type": "n8n-nodes-base.gmail", "position": [150, 240], "parameters": {"resource": "message", "operation": "getAll", "returnAll": true, "additionalFields": {"q": "-in:chats unsubscribe -license -key -password", "format": "ids"}}, "credentials": {"gmailOAuth2": "Gmail"}, "typeVersion": 1, "id": "b7a89331-ceeb-43fb-9a50-b627546995de", "notes": "This gmail node performs automated tasks as part of the workflow."}, {"name": "Delete Old Gmail", "type": "n8n-nodes-base.gmail", "position": [500, 410], "parameters": {"resource": "message", "messageId": "={{$json[\"id\"]}}", "operation": "delete"}, "credentials": {"gmailOAuth2": "Gmail"}, "typeVersion": 1, "id": "04396a7c-d6dd-4c2b-befe-7497d62db5fe", "notes": "This gmail node performs automated tasks as part of the workflow."}, {"name": "SplitInBatches", "type": "n8n-nodes-base.splitInBatches", "position": [310, 240], "parameters": {"options": {}, "batchSize": 100}, "typeVersion": 1, "id": "cc0c1d98-b7ce-4603-a22d-075cb861c77a", "notes": "This splitInBatches node performs automated tasks as part of the workflow."}, {"id": "error-7f401c6f", "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-7f7a8040", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:48.559652", "updatedAt": "2025-09-29T07:07:48.559661", "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."}