What This Workflow Does
This workflow watches Gmail for new emails labeled “To-Do” and makes new tasks in Google Tasks from those emails.
It saves time by changing email follow-ups into tasks automatically.
This prevent missed tasks and helps keep work organized.
Who Should Use This Workflow
People who put “To-Do” labels on Gmail emails and want to make tasks fast.
It is good for anyone who uses Google Tasks and wants to avoid typing tasks again.
Tools and Services Used
- Gmail: Email service with a “To-Do” label to mark tasks.
- Google Tasks: Task management to add new tasks automatically.
- n8n: Automation platform to connect Gmail and Google Tasks.
- OAuth2 Credentials: Used to connect n8n securely to Gmail and Google Tasks.
How This Workflow Works (Inputs → Process → Output)
Inputs
New emails in Gmail with label “To-Do”.
Processing Steps
- Watch Gmail inbox every minute for emails with “To-Do” label.
- Get email subject and a short part of the message (snippet).
- Create a Google Task using subject as the task title.
- Add snippet as task notes.
- Set task due date to one day after the current date.
Output
New tasks in Google Tasks for each labeled email.
Beginner Step-by-Step: How to Use This Workflow in n8n
Step 1: Import the Workflow
- Download the workflow file using the Download button on this page.
- Open n8n editor.
- Click “Import from File” and select the downloaded file.
Step 2: Configure Credentials
- Add your Gmail OAuth2 credential or service account with Gmail API access.
- Add Google Tasks OAuth2 credential to allow task creation.
Step 3: Update Settings If Needed
- Check the Gmail Trigger node’s filter query is
label:To-Do. - Change Google Tasks node due date expression if you want a different due date.
Step 4: Test the Workflow
- Run the workflow once to make sure it creates a test task from a labeled email.
- Check Google Tasks for the new task.
Step 5: Activate the Workflow
- Toggle the workflow’s active switch in n8n editor’s top right corner.
- Let it watch your Gmail inbox regularly and create tasks automatically.
For better data control or to run this workflow on a private server, consider using self-host n8n.
Customization Ideas
- Change the Gmail label filter to include other labels like
label:Urgentorlabel:FollowUp. - Modify the task due date by changing the expression, for example, make it 3 days later with
plus(3, day). - Add more task details like priority or links by editing Additional Fields in the Google Tasks node.
- Add a Gmail Send node after tasks creation to send confirmation emails.
Troubleshooting
Problem: No tasks created although emails are labeled “To-Do.”
Cause: Label name misspelled or missing from Gmail Trigger query.
Fix: Check exact label spelling and that emails have the label. Confirm Gmail Trigger filter query is label:To-Do.
Problem: Google Tasks node shows authentication errors.
Cause: OAuth2 credential expired or missing required permission.
Fix: Reauthenticate Google Tasks OAuth2 credential with correct scopes in n8n.
Pre-Production Checklist
- Confirm “To-Do” label exists and is applied to some emails.
- Test that Gmail Trigger captures labeled emails.
- Verify new tasks appear in Google Tasks after running workflow.
- Check OAuth2 credentials are valid and have needed scopes.
- Backup important data before fully using the workflow.
Deployment Guide
Turn on the workflow in n8n after testing.
Watch execution history for errors at first.
Note that polling Gmail every minute uses Google API limits; monitor quotas to prevent problems.
Summary of Results
✓ Saves time by automatic task creation from emails.
✓ Reduces missed tasks by syncing Gmail labels to Google Tasks.
✓ Keeps task list clear with email subject and snippet.
✓ Easy to set up with standard Gmail and Google Tasks accounts.
