{
  "name": "📦 New Email ➔ Create Google Task",
  "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": "serviceAccount"
      },
      "typeVersion": 1.2
    },
    {
      "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() }}"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d5f1c380-04dc-4638-8d8f-59535a5ea531",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -100
      ],
      "parameters": {
        "width": 600,
        "height": 280,
        "content": "## 📦 📦 New Email → Create Todo in Google Tasks\nCreate Todo in Google Tasks whenever receives new email with \"To Do\" label."
      },
      "typeVersion": 1
    },
    {
      "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
    },
    {
      "id": "c61cebf4-ce70-53fc-8957-bf5118877419",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -860,
        -100
      ],
      "parameters": {
        "content": "# 📦 New Email ➔ Create Google Task\n\n## Purpose and structure\nThis folder contains the **📦 New Email ➔ Create Google Task** workflow. Its executable nodes use `gmailTrigger`, `googleTasks`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nGmail Trigger\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Googletasks/2031_Googletasks_Gmail_Create_Triggered.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Google Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
