Turn labelled emails into Notion tasks

Label an email "To-do" and it becomes a Notion task with a link back to the email.

Medium Saves ~3 hours/month ProductivityBy Flowngn team

Works with n8n · Make · Zapier

How it works

Trigger: Schedule — every 15 minutes
  1. Get emails with your "To-do" label.
  2. Create a Notion task with the subject, sender and a link to the email.
  3. Remove the label so the email isn't added twice.

Diagram

Every 15 minutesSchedule TriggerGGet To-do emailsGmailNCreate Notion taskNotionGRemove To-do labelGmail
Trigger App

Build it

Pick your tool — same automation, step by step.

Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.

Workflow JSON
Show code (152 lines)
{
  "name": "Turn labelled emails into Notion tasks (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## Turn labelled emails into Notion tasks\nLabel an email \"To-do\" and it becomes a Notion task with a link back to the email.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "260675b8-87c1-4557-ac65-acf59885bd17",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 15
            }
          ]
        }
      },
      "id": "260675b8-87c1-4557-ac65-acf59885bd17",
      "name": "Every 15 minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "operation": "getAll",
        "returnAll": true,
        "filters": {
          "labelIds": [
            "YOUR_TODO_LABEL_ID"
          ]
        }
      },
      "id": "260675b8-87c1-4557-ac65-acf59885bd17",
      "name": "Get To-do emails",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "create",
        "databaseId": {
          "__rl": true,
          "value": "YOUR_TASKS_DATABASE_ID",
          "mode": "id"
        },
        "title": "={{ $json.Subject }}",
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "From|rich_text",
              "textContent": "={{ $json.From }}"
            },
            {
              "key": "Email link|url",
              "urlValue": "=https://mail.google.com/mail/u/0/#all/{{ $json.id }}"
            }
          ]
        },
        "options": {}
      },
      "id": "260675b8-87c1-4557-ac65-acf59885bd17",
      "name": "Create Notion task",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        600,
        0
      ]
    },
    {
      "parameters": {
        "operation": "removeLabels",
        "messageId": "={{ $('Get To-do emails').item.json.id }}",
        "labelIds": [
          "YOUR_TODO_LABEL_ID"
        ]
      },
      "id": "260675b8-87c1-4557-ac65-acf59885bd17",
      "name": "Remove To-do label",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        900,
        0
      ]
    }
  ],
  "connections": {
    "Every 15 minutes": {
      "main": [
        [
          {
            "node": "Get To-do emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get To-do emails": {
      "main": [
        [
          {
            "node": "Create Notion task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Notion task": {
      "main": [
        [
          {
            "node": "Remove To-do label",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

Open in the playground to edit →

Tips

  • Get your label's ID from the Gmail node: Label → Get Many.

Related flows