← All N8N workflows
Data & databasesDate TimeGmailHTTP RequestIfMerge

Send labeled email to a Notion database

Configured with Date Time, Gmail, HTTP Request, Notion, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerOn scheduleSchedule TriggerTransformDerive last requesttimeDate TimeMessagingGet emails from labeland last request timeGmailIntegrationCreate database pageNotionIntegrationTry get database pageNotionRoutingIf checked offIfTriggerOn updated databasepageNotion TriggerMessagingRemove label fromtarget emailGmailRoutingNot yet checked off, donothingNo OpTransformMergeMergeRoutingIf found, do nothingNo OpRoutingIf database page notfoundIfWeb / APIFind my email addressHTTP Request

Node categories in this workflow

  • Trigger
  • Transform
  • Messaging
  • Integration
  • Routing
  • Web / API

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
On scheduleTriggerSchedule TriggerSee node parameters
Derive last request timeTransformDate TimesubtractFromDate
Get emails from label and last request timeMessagingGmailgetAll
Create database pageIntegrationNotiondatabasePage
Try get database pageIntegrationNotiondatabasePage / getAll
If checked offRoutingIfSee node parameters
On updated database pageTriggerNotion TriggerSee node parameters
Remove label from target emailMessagingGmailremoveLabels
Not yet checked off, do nothingRoutingNo OpSee node parameters
MergeTransformMergeSee node parameters
If found, do nothingRoutingNo OpSee node parameters
If database page not foundRoutingIfSee node parameters
Find my email addressWeb / APIHTTP RequestSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • gmailOAuth2
  • notionApi

Workflow notes

Send labeled email to a Notion database

Send labeled email to a Notion database

This workflow sends the contents of an email to a Notion database. The email must be labeled with a specific label for the workflow to trigger. The email subject will be the title of the Notion page, and a snippet of the email body will be the content of the Notion page. The email link will be added to the Notion page as a property.

How it works

On scheduled intervals, find all emails with a specific label. For each email, check if the email already exists in the Notion database. If it does not exist, create a new page in the Notion database, otherwise do nothing. When the task in the Notion database is checked off, the label will be removed from the email.

Setup

This workflow requires that you set up a Notion database or use an existing one with at least the following fields:

  • Title (title)
  • Thread ID (text)
  • Email thread (URL)

Additionally, create a label that will be used to trigger the workflow in Gmail. In this workflow, the label is called "Notion".

Send labeled email to a Notion database

Send labeled email to a Notion database

Purpose and structure

This folder contains the Send labeled email to a Notion database workflow. Its executable nodes use dateTime, gmail, httpRequest, if, merge, noOp, notion, notionTrigger, scheduleTrigger. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

On schedule, On updated database page

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Datetime/0311_Datetime_Schedule_Create_Webhook.json MIT; preserve source notices.

More in Data & databases