Latenode

Automatically sync Gmail emails to a Notion database

This template watches a Gmail label, maps subject, a short body snippet, and the message link in JavaScript, and creates a Notion database row.

Connect Gmail and Notion, then pick the label you file mail into. Share the database with your Notion integration and add a message-id property so later runs can skip mail you already logged.

Updated Sep 16, 2026Est. run: 14sEst. cost: $0.0009
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns labeled Gmail into Notion database rows
  • Writes subject, snippet, and the Gmail link
  • Matches on message id so repeats can be skipped
  • Removes the label after a successful write

How it works

1
Trigger

Watch the Gmail label

The scenario starts when a message gets the Gmail label you choose.

2
Logic

Map the email fields

JavaScript copies subject, a body snippet, the Gmail link, and the message id.

3
Action

Create the Notion row

Notion adds a database row. Look up the message id first if you want to skip mail you already logged.

4
Action

Clear the Gmail label

Gmail removes the label from that message so the same mail is not processed twice.

Setup guide

1

Connect Gmail

Add a Gmail connection with access to the inbox and label you will watch.

2

Connect Notion

Add a Notion connection and share the target database with the integration. Add properties for title, snippet, link, and message id.

3

Point the trigger at the label

Watch new labeled email on that Gmail label. Map fields in JavaScript, query Notion by message id, then create the row when nothing matches.

4

Remove the label after a write

After a successful Notion row, remove the label from the Gmail message. Apply the label to a sample thread and confirm the row appears.

Requirements

A Gmail label Latenode can watch
A Notion database shared with your Latenode Notion connection
A message-id property on that database if you skip repeats

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.