Automate task creation by converting labeled emails in Gmail into actionable tasks within a Notion database. This comprehensive n8n workflow removes the original label when the task is marked complete.
Download this n8n workflow template and start using it instantly.
This is a perfect n8n workflow for:
Individuals using Gmail for task tracking who need a more powerful project management backend like Notion.
Automation enthusiasts looking for advanced n8n templates integrating scheduling, conditional logic, and bidirectional sync.
Teams seeking to standardize task capture directly from email communications.
Users who want to leverage the Notion n8n node for robust data manipulation.
Manually transferring tasks from your inbox to a project management system is tedious and error-prone. This specialized n8n workflow solves that problem by providing a seamless, automated bridge between Gmail labels and Notion databases. By simply applying a specific label to an email, the system automatically checks if the email already exists in Notion (preventing duplicates), and if not, creates a new database entry, including the email subject, snippet, and a direct link back to the email thread.
The real power of this n8n automation lies in its bidirectional capability: when you mark the task as 'Complete' within Notion, a secondary n8n trigger fires, instantly removing the original label from the email in Gmail, keeping your inbox clean and synchronized with your project status. This is a highly efficient example of advanced n8n templates for personal productivity.
This n8n workflow operates using two distinct entry points to ensure full synchronization:
To deploy this powerful n8n workflow, follow these steps:
[UPDATE ME]) with your valid Notion API key.REPLACE ME) in the 'Get emails from label and last request time', 'Remove label from target email', and 'Find my email address' n8n node settings.Label_9178764513576607415 with the ID of the specific Gmail label you intend to use as your n8n trigger. On schedule (Schedule Trigger n8n trigger):
Function: Starts the Gmail polling process periodically.
Key Configuration: Set to run every 1 minute.
Get emails from label and last request time (Gmail n8n node):
Function: Fetches emails from Gmail that have the designated label and were received since the last workflow execution, based on the time derived by the previous n8n node.
Key Configuration: Uses a specific labelId filter and sets Return All to True.
Try get database page (Notion n8n node):
Function: Serves as the duplicate checker. It searches the Notion database for a page where the 'Thread ID' property matches the current email's ID.
Key Configuration: Operation set to getAll, filtered by Rich Text value matching the incoming $json.id.
If database page not found (If n8n node):
Function: Controls the flow path based on the duplicate check. If the Notion property is empty, it proceeds to create the task.
Key Configuration: Checks if propertythreadid is isEmpty.
Create database page (Notion n8n node):
Function: Creates the new Notion task page using data extracted from the email (Subject, Snippet, and Thread ID).
Key Configuration: Dynamically maps Gmail data to Notion properties like Title and URL, demonstrating powerful n8n templating capabilities.
On updated database page (Notion Trigger n8n trigger):
Function: Listens for updates specifically within the configured Notion database. This is a crucial n8n trigger for the bidirectional sync.
Key Configuration: Listens for the pagedUpdatedInDatabase event.
If checked off (If n8n node):
Function: Determines if the update signal means the task has been marked complete.
Key Configuration: Checks if the Boolean value of Complete is True.
Remove label from target email (Gmail n8n node):
Function: Performs the final action: cleaning up the Gmail inbox by removing the specified task label.
Key Configuration: Operation removeLabels, targets the specific email message ID.
Use this robust n8n workflow to send personalized 10-minute interview reminders from Google Calendar events directly to Slack DMs, utilizing a static data ledger to prevent duplicate messages.

Use this powerful n8n workflow to monitor Kubernetes logs stored in Grafana Loki, automatically deduplicate recurring errors using a custom n8n node, and send unique, actionable alerts directly to Slack.

Use this n8n workflow to automatically fetch daily weather updates for any city using OpenWeatherMap and send them directly to your phone via Plivo SMS, scheduled with an n8n trigger.

Use this robust n8n workflow to automatically sync links posted in a Telegram channel to your self-hosted Hoarder and Readeck bookmarking apps, ensuring every important link is captured.


Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.







































