{
  "workflow": {
    "id": 3768,
    "name": "Automatically create Google Tasks from Gmail labeled emails",
    "views": 1383,
    "recentViews": 0,
    "totalViews": 1383,
    "createdAt": "2025-04-28T08:08:03.684Z",
    "description": "### Automatically create Google Tasks from new Gmail emails labeled \"To-Do\".\n\n**Who is this for?**\n- This template is perfect for individuals and teams who want to boost their productivity by automatically converting important emails into actionable tasks in Google Tasks.\n\n**What problem is this workflow solving**?\n- Manually managing emails and creating tasks can be tedious. This workflow ensures you never miss a follow-up by instantly turning important emails into tasks without switching between apps.\n\n**What this workflow does?**\n- Watches for new emails in Gmail with the label \"To-Do\".\n- Creates a new Google Task with the email subject as the task title and the email snippet as notes.\n- Sets the task due date to 24 hours after the email is received.\n\n**Setup**\n- Create a label \"To-Do\" in your Gmail account if it doesn't already exist.\n- Connect your Gmail and Google Tasks accounts to n8n using OAuth2 credentials.\n- Import the workflow into n8n and activate it.\n\n**How to customize this workflow to your needs?**\n- Change the Gmail label to a different one (e.g., \"Important\", \"Follow-up\").\n- Modify the due date logic in the expression if you want more/less time to complete tasks:\n{{ $now.add(2, 'days').toISOString() }}\n- Add additional Gmail filters (like only unread emails) to refine which emails create tasks.\n\n",
    "workflow": {
      "id": "z0C6H2kYSgML2dib",
      "meta": {
        "instanceId": "2ac84bf1f440a0e879aa6d91666aa16b413615a793da24a417a70de20243c4ba",
        "templateCredsSetupCompleted": true
      },
      "name": "📦 New Email ➔ Create Google Task",
      "tags": [],
      "nodes": [
        {
          "id": "fdba3386-940b-4ca4-81a9-c76e363a7227",
          "name": "Gmail Trigger",
          "type": "n8n-nodes-base.gmailTrigger",
          "position": [
            60,
            0
          ],
          "parameters": {},
          "typeVersion": 1.2
        },
        {
          "id": "6973ee87-995d-40b2-aab3-12af2a34ea7e",
          "name": "Google Tasks",
          "type": "n8n-nodes-base.googleTasks",
          "position": [
            280,
            0
          ],
          "parameters": {},
          "typeVersion": 1
        },
        {
          "id": "d5f1c380-04dc-4638-8d8f-59535a5ea531",
          "name": "Sticky Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -60,
            -100
          ],
          "parameters": {
            "content": ""
          },
          "typeVersion": 1
        },
        {
          "id": "b0ac6967-b805-4f72-981f-51270cb17dbe",
          "name": "Sticky Note1",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            -60,
            200
          ],
          "parameters": {
            "content": ""
          },
          "typeVersion": 1
        }
      ],
      "active": false,
      "pinData": {},
      "settings": {
        "executionOrder": "v1"
      },
      "versionId": "16d1e0a6-b60b-4190-a74b-c5bd7626cfdb",
      "connections": {
        "Gmail Trigger": {
          "main": [
            [
              {
                "node": "Google Tasks",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 51,
    "workflowInfo": {
      "nodeCount": 4,
      "nodeTypes": {
        "n8n-nodes-base.stickyNote": {
          "count": 2
        },
        "n8n-nodes-base.googleTasks": {
          "count": 1
        },
        "n8n-nodes-base.gmailTrigger": {
          "count": 1
        }
      }
    },
    "status": "published",
    "readyToDemo": null,
    "user": {
      "name": "Aayushman Sharma",
      "username": "ajstyle0411",
      "bio": "",
      "verified": true,
      "links": [
        "https://www.linkedin.com/in/aayushman-sharma/"
      ],
      "avatar": "https://gravatar.com/avatar/0e0256718cceba1e7d5067e428cc2c6e737fbba135f113f7f4b9258858a25691?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 332,
        "icon": "file:googleTasks.svg",
        "name": "n8n-nodes-base.googleTasks",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googletasks/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Productivity"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Google Tasks"
        },
        "iconData": {
          "type": "file",
          "file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MDA0IDE5Ljk2OTlDMzEuMzAwNCAyNi43ODM5IDI1Ljc3NjMgMzIuMzAwNCAxOC45Njk5IDMyLjMwMDRDMTIuMTYzNSAzMi4zMDA0IDYuNjM5NDggMjYuNzgzOSA2LjYzOTQ4IDE5Ljk2OTlDNi42Mzk0OCAxMy4xNTU5IDEyLjE1NTkgNy42Mzk0OCAxOC45Njk5IDcuNjM5NDhDMjEuNzY5OSA3LjYzOTQ4IDI0LjM0OTggOC41NzI4IDI2LjQyMTMgMTAuMTUxMUwzMS4xNDEgNS40MzEzOEMyNy44NDc5IDIuNjYxNzcgMjMuNjA2MiAxIDE4Ljk2OTkgMUM4LjQ5MDk0IDEgMCA5LjQ5MDk0IDAgMTkuOTY5OUMwIDMwLjQ0ODkgOC40OTA5NCAzOC45Mzk5IDE4Ljk2OTkgMzguOTM5OUMyOS40NDg5IDM4LjkzOTkgMzcuOTM5OSAzMC40NDg5IDM3LjkzOTkgMTkuOTY5OUMzNy45Mzk5IDE3LjA2MzcgMzcuMjc5NyAxNC4zMDE3IDM2LjExMTIgMTEuODM1NkwzMC45NDM4IDE3LjAxMDZDMzEuMTcxNCAxNy45NTkxIDMxLjMwMDQgMTguOTUzMSAzMS4zMDA0IDE5Ljk2OTlaIiBmaWxsPSIjMjY4NEZDIi8+Cjwvc3ZnPgo="
        },
        "displayName": "Google Tasks",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 4,
            "name": "Productivity"
          }
        ]
      },
      {
        "id": 565,
        "icon": "fa:sticky-note",
        "name": "n8n-nodes-base.stickyNote",
        "codex": {
          "data": {
            "alias": [
              "Comments",
              "Notes",
              "Sticky"
            ],
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers"
              ]
            }
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Sticky Note",
          "color": "#FFD233"
        },
        "iconData": {
          "icon": "sticky-note",
          "type": "icon"
        },
        "displayName": "Sticky Note",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 824,
        "icon": "file:gmail.svg",
        "name": "n8n-nodes-base.gmailTrigger",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/",
                  "icon": "🧬",
                  "label": "Why business process automation with n8n can change your daily life"
                },
                {
                  "url": "https://n8n.io/blog/supercharging-your-conference-registration-process-with-n8n/",
                  "icon": "🎫",
                  "label": "Supercharging your conference registration process with n8n"
                },
                {
                  "url": "https://n8n.io/blog/no-code-ecommerce-workflow-automations/",
                  "icon": "store",
                  "label": "6 e-commerce workflows to power up your Shopify s"
                },
                {
                  "url": "https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/",
                  "icon": "👥",
                  "label": "How to get started with CRM automation (with 3 no-code workflow ideas"
                },
                {
                  "url": "https://n8n.io/blog/automate-google-apps-for-productivity/",
                  "icon": "💡",
                  "label": "15 Google apps you can combine and automate to increase productivity"
                },
                {
                  "url": "https://n8n.io/blog/your-business-doesnt-need-you-to-operate/",
                  "icon": " 🖥️",
                  "label": "Hey founders! Your business doesn't need you to operate"
                },
                {
                  "url": "https://n8n.io/blog/using-automation-to-boost-productivity-in-the-workplace/",
                  "icon": "💪",
                  "label": "Using Automation to Boost Productivity in the Workplace"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.gmailtrigger/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
                }
              ]
            },
            "categories": [
              "Communication"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "Gmail Trigger"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMTkzIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZmlsbD0iIzQyODVGNCIgZD0iTTU4LjE4MiAxOTIuMDVWOTMuMTRMMjcuNTA3IDY1LjA3NyAwIDQ5LjUwNHYxMjUuMDkxYzAgOS42NTggNy44MjUgMTcuNDU1IDE3LjQ1NSAxNy40NTV6Ii8+PHBhdGggZmlsbD0iIzM0QTg1MyIgZD0iTTE5Ny44MTggMTkyLjA1aDQwLjcyN2M5LjY1OSAwIDE3LjQ1NS03LjgyNiAxNy40NTUtMTcuNDU1VjQ5LjUwNWwtMzEuMTU2IDE3LjgzNy0yNy4wMjYgMjUuNzk4eiIvPjxwYXRoIGZpbGw9IiNFQTQzMzUiIGQ9Im01OC4xODIgOTMuMTQtNC4xNzQtMzguNjQ3IDQuMTc0LTM2Ljk4OUwxMjggNjkuODY4bDY5LjgxOC01Mi4zNjQgNC42NyAzNC45OTItNC42NyA0MC42NDRMMTI4IDE0NS41MDR6Ii8+PHBhdGggZmlsbD0iI0ZCQkMwNCIgZD0iTTE5Ny44MTggMTcuNTA0VjkzLjE0TDI1NiA0OS41MDRWMjYuMjMxYzAtMjEuNTg1LTI0LjY0LTMzLjg5LTQxLjg5LTIwLjk0NXoiLz48cGF0aCBmaWxsPSIjQzUyMjFGIiBkPSJtMCA0OS41MDQgMjYuNzU5IDIwLjA3TDU4LjE4MiA5My4xNFYxNy41MDRMNDEuODkgNS4yODZDMjQuNjEtNy42NiAwIDQuNjQ2IDAgMjYuMjN6Ii8+PC9zdmc+"
        },
        "displayName": "Gmail Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 6,
            "name": "Communication"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 43,
        "name": "Personal Productivity"
      }
    ],
    "image": []
  }
}