حوّل رسائل Gmail المصنفة إلى مهام في Notion

صنّف رسالة بـ "To-do" فتصبح مهمة في Notion مع رابط للرسالة.

متوسط توفّر ~3 ساعة شهريًا الإنتاجيةبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: جدول زمني — كل 15 دقيقة
  1. اجلب الرسائل التي تحمل تصنيف "To-do".
  2. أنشئ مهمة في Notion بالموضوع والمرسل ورابط الرسالة.
  3. أزل التصنيف حتى لا تُضاف الرسالة مرتين.

المخطط

Every 15 minutesSchedule TriggerGGet To-do emailsGmailNCreate Notion taskNotionGRemove To-do labelGmail
مشغّل تطبيق

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_.

ملف Workflow JSON
عرض الكود (152 سطر)
{
  "name": "حوّل رسائل Gmail المصنفة إلى مهام في Notion (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## حوّل رسائل Gmail المصنفة إلى مهام في Notion\nصنّف رسالة بـ \"To-do\" فتصبح مهمة في Notion مع رابط للرسالة.\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": []
}

← افتحها في ساحة التجربة لتعديلها

نصائح

  • احصل على معرّف التصنيف من عقدة Gmail: Label ← Get Many.

أتمتات مشابهة