Send labeled email to a Notion database
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs on a schedule (every minute) (plus 1 other trigger). Along the way it connects Gmail and Notion. It also calls gmail.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every minute) (plus 1 other trigger).
- Derive last request time (Date & Time): formats or calculates dates
- If: checks a condition and branches into true / false
- Get emails from label and last request time (Gmail): get many
- Remove label from target email (Gmail): remove labels
- Try get database page (Notion): get many (database page)
- Merge: merges the data from its input branches
- If: checks a condition and branches into true / false
- Find my email address (HTTP Request): calls gmail.googleapis.com
- Create database page (Notion): work with database page
Services it uses
Other Notion + Gmail templates (120)
HTTP calls to: gmail.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Date & Time
n8n-nodes-base.dateTime - Gmail
n8n-nodes-base.gmail - Notion
n8n-nodes-base.notion - If
n8n-nodes-base.if - Notion Trigger
n8n-nodes-base.notionTrigger - No Operation, do nothing
n8n-nodes-base.noOp - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest
From the author
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…