mails2notion V2

Setup - Disable the Gmail Trigger and enable the manual trigger here - Execute the workflow once - Copy the Gmail Label IDs from the output of the "Required labels" node to the "Globals" node - Disable the manual trigger here and and enable the Gmail Trigger again - Activate the workflow, so it runs automatically in the background

Workflow Structure (25 nodes)
100%
Gmail Trigger
Gmail Trigger
Set
Globals
Filter
Filter for unprocessed mails
Set
Extract Route ID
Airtable
Get Route by ID
Filter
Active Routes Only
Langchain.lm Chat Open Ai
OpenAI Chat Model1
Langchain.agent
Generate Actionable Task
Langchain.tool Calculator
Calculator1
Langchain.output Parser Structured
Structured Output Parser1
Langchain.lm Chat Open Ai
OpenAI Chat Model
Langchain.agent
Get Summary & Meta Data
Langchain.tool Calculator
Calculator
Langchain.output Parser Structured
Structured Output Parser
Code
Format Notion Page Blocks
Http Request
Create Notion Page
Airtable
Deactivate Route
Gmail
Send notification about deactivated route
Gmail
Add Label "Processed"
Gmail
Add Label "Error"
Manual Trigger
When clicking ‘Test workflow’
Gmail
Get all labels
Filter
Required labels
No Op
No Operation, do nothing
Gmail
Send notification about missing route
Node Types:
default
logic
transform
action
http
trigger
code
Requires credentials

Prerequisites

Required Credentials (3)

Airtable Token

Used by: Deactivate Route, Get Route by ID

Docs

Gmail

Used by: Add Label "Processed", Add Label "Error" +4 more

Docs

OpenAI

Used by: OpenAI Chat Model, OpenAI Chat Model1

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~50 min
Score: 70/100
Custom Code
7 Integrations

When to Use This Workflow

Automated Reporting

Automatically collect and organize data into spreadsheets for analysis.

Spend less time on data entry and more time on insights.

Email Automation

Automate email responses, forwarding, or organization based on rules.

Handle routine email tasks automatically and focus on what matters.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

workflow.json
{
  "id": "30r9acI1XVIIwAMi",
  "meta": {
    "instanceId": "378c072a34d9e63949fd9cf26b8d28ff276a486e303f0d8963f23e1d74169c1b",
    "templateCredsSetupCompleted": true
  },
  "name": "mails2notion V2",
  "tags": [],
  "nodes": [
    {
      "id": "3f649e97-e568-47ff-b175-bf63d859d95f",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2560,
        240
      ],
      "parameters": {
        "model": "gpt-4o",
        "options": {
...

Workflow Details

Nodes
38
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

AI Agent for project management and meetings with Airtable and Fireflies

Replace API key for Fireflies

Agent
Lmchatopenai
Toolworkflow
Gmailtool
18 nodesEvent
Curated

Handling Job Application Submissions with AI and n8n Forms

1. Application Form To Upload CV [Learn more the Form Trigger node](https://docs.n8n.io/integrations/builtin/core-nodes/...

Lmchatopenai
Outputparserstructured
Form
Airtable
23 nodesEvent
Curated

AI Agent to chat with Airtable and analyze data

Replace Mapbox public key - <yourpublickey> in code

Lmchatopenai
Agent
Memorybufferwindow
Chat
41 nodesEvent
Curated

AI Logo Sheet Extractor to Airtable

Attribute Creation and Mapping those created or existing Ids

Form
Agent
Outputparserstructured
Airtable
44 nodesEvent
Curated

Enrich Property Inventory Survey with Image Recognition and AI Agent

1. Use Airtable to Capture Survey Photos [Read more about AirTable](https://docs.n8n.io/integrations/builtin/app-nodes/n...

Lmchatopenai
Airtable
Executeworkflow
Http-request
29 nodesEvent
Curated

Automate Competitor Research with Exa.ai, Notion and AI Agents

Try It Out! This workflow builds a competitor research agent using Exa.ai as a starting point. The HTTP Request tool is...

Lmchatopenai
Toolhttprequest
Outputparserstructured
Notion
39 nodesManual
Curated