تذكير بمهام اليوم من Notion
تصلك رسالة Slack بكل مهام Notion المستحقة اليوم.
كيف تعمل
المشغّل: جدول زمني — أيام العمل الساعة 9:00
- ابحث في قاعدة مهام Notion عن المهام المستحقة اليوم وغير المنتهية.
- جمّعها حسب الشخص.
- أرسل لكل شخص (أو لقناة واحدة) قائمته في Slack.
المخطط
مشغّل تطبيق كود
الكود
كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.
// Groups today's tasks by assignee. Adjust the property names to match your database.
const byPerson = {};
for (const { json: task } of $input.all()) {
const who = task.property_assignee?.[0] || "Unassigned";
(byPerson[who] ||= []).push(`• ${task.name}`);
}
const sections = Object.entries(byPerson).map(([who, tasks]) => `*${who}*\n${tasks.join("\n")}`);
if (!sections.length) return [];
return [{ json: { text: `📋 Due today:\n\n${sections.join("\n\n")}` } }];ابنِها بأداتك
اختر أداتك — نفس الأتمتة، خطوة بخطوة.
انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_.
عرض الكود (139 سطر)
{
"name": "تذكير بمهام اليوم من Notion (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## تذكير بمهام اليوم من Notion\nتصلك رسالة Slack بكل مهام 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": "34314253-203f-42a9-ad2e-39673f3cb5f5",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 9 * * 1-5"
}
]
}
},
"id": "34314253-203f-42a9-ad2e-39673f3cb5f5",
"name": "Weekdays 9:00",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
0,
0
]
},
{
"parameters": {
"resource": "databasePage",
"operation": "getAll",
"databaseId": {
"__rl": true,
"value": "YOUR_DATABASE_ID",
"mode": "id"
},
"returnAll": true,
"filterType": "json",
"filterJson": "={ \"and\": [ { \"property\": \"Due\", \"date\": { \"equals\": \"{{ $today.toFormat('yyyy-MM-dd') }}\" } }, { \"property\": \"Status\", \"status\": { \"does_not_equal\": \"Done\" } } ] }",
"options": {}
},
"id": "34314253-203f-42a9-ad2e-39673f3cb5f5",
"name": "Tasks due today",
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [
300,
0
]
},
{
"parameters": {
"jsCode": "// Groups today's tasks by assignee. Adjust the property names to match your database.\nconst byPerson = {};\n\nfor (const { json: task } of $input.all()) {\n const who = task.property_assignee?.[0] || \"Unassigned\";\n (byPerson[who] ||= []).push(`• ${task.name}`);\n}\n\nconst sections = Object.entries(byPerson).map(([who, tasks]) => `*${who}*\\n${tasks.join(\"\\n\")}`);\nif (!sections.length) return [];\n\nreturn [{ json: { text: `📋 Due today:\\n\\n${sections.join(\"\\n\\n\")}` } }];"
},
"id": "34314253-203f-42a9-ad2e-39673f3cb5f5",
"name": "Group by person",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
600,
0
]
},
{
"parameters": {
"select": "channel",
"channelId": {
"__rl": true,
"value": "#team",
"mode": "name"
},
"text": "={{ $json.text }}",
"otherOptions": {}
},
"id": "34314253-203f-42a9-ad2e-39673f3cb5f5",
"name": "Post to #team",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
900,
0
]
}
],
"connections": {
"Weekdays 9:00": {
"main": [
[
{
"node": "Tasks due today",
"type": "main",
"index": 0
}
]
]
},
"Tasks due today": {
"main": [
[
{
"node": "Group by person",
"type": "main",
"index": 0
}
]
]
},
"Group by person": {
"main": [
[
{
"node": "Post to #team",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}في Make، أنشئ سيناريو جديدًا وأضف هذه الوحدات بالترتيب:
- Schedule the scenario: Weekdays 9:00
- Notion › Search Objects (database items)
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Slack › Create a Message
- كل تشغيل لوحدة يستهلك عمليات (operations) في Make — والباقة المجانية تتضمن حصة شهرية.
- دوال Make المدمجة (map و sum و formatDate…) تغني عن معظم خطوات Code؛ وللمنطق المعقد استخدم وحدة كود.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
في Zapier، أنشئ Zap جديدًا وأضف هذه الخطوات بالترتيب:
- Schedule by Zapier — Weekdays 9:00
- Notion — Find Database Item
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Slack — Send Channel Message
- الـ Zaps التي فيها أكثر من خطوتين تحتاج باقة Zapier مدفوعة.
- الـ Webhooks والفلاتر/المسارات و Code by Zapier ميزات مدفوعة في بعض باقات Zapier.
- Code by Zapier يشغّل JavaScript: أعد استخدام الكود بالأعلى، مع قراءة المدخلات من inputData بدلًا من $json.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
نصائح
- شارك قاعدة البيانات مع تكامل Notion وإلا فلن تظهر.
أتمتات مشابهة
الإنتاجيةسهل
صفحات Notion الجديدة ← Slack
أعلن عن كل صفحة جديدة في قاعدة بيانات Notion — طلبات أو مستندات أو مهام — في Slack.
Notion → Slack2 س/شهر
الإنتاجيةمتوسط
حوّل رسائل Gmail المصنفة إلى مهام في Notion
صنّف رسالة بـ "To-do" فتصبح مهمة في Notion مع رابط للرسالة.
Gmail → Notion3 س/شهر
الإنتاجيةسهل
ردود Google Forms في Slack
كل رد جديد على Google Form يُنشر في قناة Slack.
Google Sheets → Slack2 س/شهر