Workflow: 📦 New Email ➔ Create Google Task
Integrations: gmailTrigger, googleTasks, stickyNote, stopAndError

{"id": "z0C6H2kYSgML2dib", "meta": {"instanceId": "workflow-d6a79759", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:45.551195", "updatedAt": "2025-09-29T07:07:45.551214", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "\ud83d\udce6 New Email \u2794 Create Google Task", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "nodes": [{"id": "fdba3386-940b-4ca4-81a9-c76e363a7227", "name": "Gmail Trigger", "type": "n8n-nodes-base.gmailTrigger", "position": [60, 0], "parameters": {"filters": {"q": "label:To-Do"}, "pollTimes": {"item": [{"mode": "everyMinute"}]}, "authentication": "{{ $credentials.serviceAccount }}"}, "credentials": {"googleApi": {"id": "6u0XyjLYbWGHq1M4", "name": "Gmail account"}}, "typeVersion": 1.2, "notes": "This gmailTrigger node performs automated tasks as part of the workflow."}, {"id": "6973ee87-995d-40b2-aab3-12af2a34ea7e", "name": "Google Tasks", "type": "n8n-nodes-base.googleTasks", "position": [280, 0], "parameters": {"title": "={{$json[\"subject\"]}}", "additionalFields": {"notes": "={{$json[\"snippet\"]}}", "dueDate": "={{ $now.plus(1, day).toLocaleString() }}"}}, "credentials": {"googleTasksOAuth2Api": {"id": "bwDydGxO2qvAXRCo", "name": "Google Tasks account"}}, "typeVersion": 1, "notes": "This googleTasks node performs automated tasks as part of the workflow."}, {"id": "d5f1c380-04dc-4638-8d8f-59535a5ea531", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-60, -100], "parameters": {"width": 600, "height": 280, "content": "## \ud83d\udce6 \ud83d\udce6 New Email \u2192 Create Todo in Google Tasks\nCreate Todo in Google Tasks whenever receives new email with \"To Do\" label."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "b0ac6967-b805-4f72-981f-51270cb17dbe", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [-60, 200], "parameters": {"width": 600, "height": 200, "content": "## Required Setup:\nMake sure the Gmail label \"To-Do\" exists. (You can create it manually in Gmail settings if it doesn't.)\n\nConnect your Gmail and Google Tasks accounts via OAuth2 in n8n credentials.\n\nGrant necessary access scopes to read emails and manage tasks."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "error-146787db", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [1000, 400], "parameters": {"message": "Workflow execution error", "options": {}}}], "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": "16d1e0a6-b60b-4190-a74b-c5bd7626cfdb", "connections": {"6973ee87-995d-40b2-aab3-12af2a34ea7e": {"main": [[{"node": "error-handler-6973ee87-995d-40b2-aab3-12af2a34ea7e-850fcffb", "type": "main", "index": 0}]]}}, "description": "Automated workflow: \ud83d\udce6 New Email \u2794 Create Google Task. This workflow integrates 4 different services: gmailTrigger, stickyNote, stopAndError, googleTasks. It contains 5 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: \ud83d\udce6 New Email \u2794 Create Google Task. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}