Email Label to Google Task Automation - n8n Workflow

Automate task creation instantly. This highly efficient n8n workflow watches for specific Gmail labels (e.g., 'To-Do') and instantly creates corresponding Google Tasks with a defined due date.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Busy Professionals: Individuals who need an organized way to convert email actions into concrete tasks.
Inbox Zero Practitioners: Users utilizing Gmail labels to triage their inbox efficiently.
Automation Enthusiasts: Those looking for robust, ready-to-use n8n templates for personal productivity.
Project Coordinators: Teams that manage tasks originating from client communications or internal email threads.

Overview

Managing action items buried in your inbox can be challenging. This productive n8n workflow solves that exact problem by providing a seamless integration between your Gmail filtering system and Google Tasks. Instead of manually copying details from an email into a task management application, you simply apply a predefined label (like 'To-Do') in Gmail. This triggers the automation, ensuring that every labeled email is immediately converted into a task, complete with the email's subject line and snippet as context. This robust n8n automation template drastically reduces context switching and ensures no critical follow-up item is forgotten, proving the high value of a focused n8n node configuration.

How it Works

This automation operates on a simple, efficient loop powered by n8n. The process begins with the Gmail Trigger n8n node, which is configured to poll your inbox every minute, specifically searching for emails tagged with the exact query label:To-Do. Once the n8n trigger detects a new match, the execution moves to the Google Tasks n8n node. This subsequent n8n node performs the core action: creating a new task. The email’s subject line is dynamically mapped to the task's title, and the email snippet provides valuable context in the task's notes field. Crucially, the n8n workflow automatically sets the task’s due date to one day from the current execution time, ensuring immediate visibility for the required action item. This seamless flow demonstrates the power of a well-configured n8n workflow template.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data and import it directly into your n8n instance using the 'New' -> 'Import from JSON' function.

  2. Verify Gmail Label: Ensure that the Gmail label 'To-Do' exists in your Gmail account. The n8n trigger relies on this specific label for identification.

  3. Configure Credentials (Gmail): Click on the Gmail Trigger n8n node and set up or select your Google API credentials (OAuth2 or Service Account), granting necessary scopes to read email data.

  4. Configure Credentials (Google Tasks): Click on the Google Tasks n8n node and set up or select your Google Tasks OAuth2 credentials, ensuring permission to manage tasks.

  5. Activate the n8n template: Set the workflow status from 'Inactive' to 'Active' to start the automatic polling process. The Gmail n8n trigger will begin checking for labeled emails immediately.

Node Details

Gmail Trigger (n8n trigger):
Function: Serves as the starting point of the n8n workflow, periodically checking Gmail for new emails.
Key Configuration: Uses the filter query label:To-Do to specifically target emails that have been tagged for action. It is set to poll the mailbox every minute.
Google Tasks (n8n node):
Function: Creates a new task in Google Tasks using data pulled from the previous Gmail n8n node.
Key Configuration:
Title: Set dynamically using expression ={{$json["subject"]}}.
Notes: Set using the email snippet expression ={{$json["snippet"]}}.
* Due Date: Automatically calculated using the expression ={{ $now.plus(1, day).toLocaleString() }}, setting the task due for the following day.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by
Aayushman Sharma
Aayushman Sharma

Featured*