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.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| On schedule | Trigger | Schedule Trigger | See node parameters |
| Derive last request time | Transform | Date Time | subtractFromDate |
| Get emails from label and last request time | Messaging | Gmail | getAll |
| Create database page | Integration | Notion | databasePage |
| Try get database page | Integration | Notion | databasePage / getAll |
| If checked off | Routing | If | See node parameters |
| On updated database page | Trigger | Notion Trigger | See node parameters |
| Remove label from target email | Messaging | Gmail | removeLabels |
| Not yet checked off, do nothing | Routing | No Op | See node parameters |
| Merge | Transform | Merge | See node parameters |
| If found, do nothing | Routing | No Op | See node parameters |
| If database page not found | Routing | If | See node parameters |
| Find my email address | Web / API | HTTP Request | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
gmailOAuth2notionApi
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.