n8n

How to Automate Gmail to Notion Task Tracking?

Turn labeled emails into clear tasks in Notion. Ideal for teams that triage an inbox and want every follow up tracked in one place. Add a Gmail label and a task appears with context and a direct link to the thread.

A scheduled check runs every minute to find labeled emails. A time step figures out the last check time so only new items are fetched. Each email is checked in Notion by the Gmail thread ID to avoid duplicates. If no match exists, the flow gets your Google account email, builds a direct Gmail URL, and creates a Notion page with the subject as the title, a short snippet, and the email link. A Notion event listener watches the database. When the Complete box is checked, the label is removed from the original Gmail message.

Set up a Notion database with Title, Thread ID rich text, Email thread URL, and a Complete checkbox. Connect Gmail and Notion credentials, choose your label, and map the fields. Expect less copy and paste and faster follow ups. Useful for sales leads, support replies, and operations tasks that start in the inbox.

What are the key features?

  • Runs on a schedule every minute to check for labeled emails.
  • Calculates the last check time to avoid reprocessing old messages.
  • Pulls Gmail messages by a specific label for clean triage.
  • Looks up Notion records by Thread ID to stop duplicates.
  • Builds a direct Gmail thread link using your Google account email.
  • Creates Notion pages with title from subject and a body snippet.
  • Listens for Notion page updates and detects when Complete is checked.
  • Removes the Gmail label when the task is completed in Notion.

What are the benefits?

  • Reduce manual work from 30 minutes a day to 3 minutes
  • Connect Gmail and Notion so emails and tasks stay in sync
  • Prevent duplicate tasks with a unique Gmail thread ID
  • Improve follow up speed with a direct email link in Notion
  • Handle more email volume without extra steps

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail and Notion. See the Tools Required section above for links to create accounts with these services.
  3. Create a label in Gmail that you will use to mark emails that should become tasks.
  4. In n8n, open the Gmail node that fetches emails. In the Credential to connect with dropdown, click Create new credential and follow the on screen instructions to connect your Google account.
  5. Open each Notion node. In the Credential to connect with dropdown, click Create new credential and follow the on screen steps. In Notion, share your database with the integration so it can read and write.
  6. Prepare your Notion database with these properties: Title title, Thread ID rich text, Email thread URL, and Complete checkbox. Copy the database ID from Notion.
  7. In the Notion nodes and the Notion trigger, select the same database ID so reads and writes go to one place.
  8. In the Schedule Trigger, set the interval to every minute or choose a cadence that fits your team.
  9. In the Gmail fetch node, select your Gmail label. If the label is not listed, refresh the node or reauthorize the credential.
  10. In the Notion lookup node, set the filter to match Thread ID equals the Gmail message or thread ID used in the Gmail node output.
  11. In the Notion create page node, map Subject to the title, snippet to the body block, Thread ID to the rich text field, and the Gmail URL to the Email thread field.
  12. Enable the workflow. Label a test email in Gmail and watch for a new page in Notion. Confirm the subject, snippet, and link are correct.
  13. Edit the Notion page and check Complete. Confirm the Gmail label is removed from the original message.
  14. Troubleshoot common issues: if pages are not created, share the database with the Notion integration and check property names. If the label does not remove, verify the stored ID matches the value expected by the Gmail node. Review execution logs for any node errors.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

Notion

Sign up

Free plan: $0 per member / mo (Public API included)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.