ملخص مسائي للرسائل غير المقروءة على تيليجرام
كل مساء، تصلك قائمة برسائل اليوم غير المقروءة (المرسل والعنوان) على تيليجرام حتى لا يفوتك شيء مهم.
كيف تعمل
المشغّل: جدول زمني — كل يوم الساعة 18:00
- اجلب رسائل اليوم غير المقروءة دون العروض والتواصل الاجتماعي.
- كوّن قائمة بالمرسلين والعناوين.
- أرسلها إلى تيليجرام.
المخطط
مشغّل تطبيق كود
الكود
كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.
// Lists today's unread emails (sender + subject) as one Telegram message.
const mails = $input.all().map((item) => item.json).filter((m) => m.id);
if (!mails.length) return [{ json: { message: "📭 Inbox zero: no unread emails from today." } }];
const lines = mails.slice(0, 20).map((m) => {
const from = String(m.From || m.from?.text || "").replace(/<.*>/, "").trim();
return `• ${from}: ${m.Subject || m.subject || "(no subject)"}`;
});
const more = mails.length > 20 ? `\n…and ${mails.length - 20} more` : "";
return [{ json: { message: `📬 ${mails.length} unread emails today\n\n${lines.join("\n")}${more}` } }];ابنِها بأداتك
اختر أداتك — نفس الأتمتة، خطوة بخطوة.
انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_.
عرض الكود (130 سطر)
{
"name": "ملخص مسائي للرسائل غير المقروءة على تيليجرام (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## ملخص مسائي للرسائل غير المقروءة على تيليجرام\nكل مساء، تصلك قائمة برسائل اليوم غير المقروءة (المرسل والعنوان) على تيليجرام حتى لا يفوتك شيء مهم.\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": "3c103bed-d1db-4cc9-a2c4-9657bf6cad00",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 18
}
]
}
},
"id": "3c103bed-d1db-4cc9-a2c4-9657bf6cad00",
"name": "Every day 18:00",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "getAll",
"returnAll": true,
"filters": {
"q": "is:unread newer_than:1d -category:promotions -category:social"
}
},
"id": "3c103bed-d1db-4cc9-a2c4-9657bf6cad00",
"name": "Get today's unread",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
300,
0
],
"alwaysOutputData": true
},
{
"parameters": {
"jsCode": "// Lists today's unread emails (sender + subject) as one Telegram message.\nconst mails = $input.all().map((item) => item.json).filter((m) => m.id);\nif (!mails.length) return [{ json: { message: \"📭 Inbox zero: no unread emails from today.\" } }];\n\nconst lines = mails.slice(0, 20).map((m) => {\n const from = String(m.From || m.from?.text || \"\").replace(/<.*>/, \"\").trim();\n return `• ${from}: ${m.Subject || m.subject || \"(no subject)\"}`;\n});\nconst more = mails.length > 20 ? `\\n…and ${mails.length - 20} more` : \"\";\n\nreturn [{ json: { message: `📬 ${mails.length} unread emails today\\n\\n${lines.join(\"\\n\")}${more}` } }];"
},
"id": "3c103bed-d1db-4cc9-a2c4-9657bf6cad00",
"name": "Build digest",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
600,
0
]
},
{
"parameters": {
"chatId": "YOUR_CHAT_ID",
"text": "={{ $json.message }}",
"additionalFields": {
"appendAttribution": false
}
},
"id": "3c103bed-d1db-4cc9-a2c4-9657bf6cad00",
"name": "Send to Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
900,
0
]
}
],
"connections": {
"Every day 18:00": {
"main": [
[
{
"node": "Get today's unread",
"type": "main",
"index": 0
}
]
]
},
"Get today's unread": {
"main": [
[
{
"node": "Build digest",
"type": "main",
"index": 0
}
]
]
},
"Build digest": {
"main": [
[
{
"node": "Send to Telegram",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}في Make، أنشئ سيناريو جديدًا وأضف هذه الوحدات بالترتيب:
- Schedule the scenario: Every day 18:00
- Gmail › Watch Emails (by label)
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Telegram Bot › Send a Text Message or a Reply
- كل تشغيل لوحدة يستهلك عمليات (operations) في Make — والباقة المجانية تتضمن حصة شهرية.
- دوال Make المدمجة (map و sum و formatDate…) تغني عن معظم خطوات Code؛ وللمنطق المعقد استخدم وحدة كود.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
في Zapier، أنشئ Zap جديدًا وأضف هذه الخطوات بالترتيب:
- Schedule by Zapier — Every day 18:00
- Gmail — New Labeled Email
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Telegram — Send Message
- الـ Zaps التي فيها أكثر من خطوتين تحتاج باقة Zapier مدفوعة.
- الـ Webhooks والفلاتر/المسارات و Code by Zapier ميزات مدفوعة في بعض باقات Zapier.
- Code by Zapier يشغّل JavaScript: أعد استخدام الكود بالأعلى، مع قراءة المدخلات من inputData بدلًا من $json.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
نصائح
- غيّر البحث في خطوة Gmail، مثل إضافة -from:noreply لتقليل الإشعارات.
أتمتات مشابهة
الإنتاجيةمتوسط
الموافقة على طلبات الإجازة من تيليجرام
الموظف يملأ نموذج الإجازة، والمدير يوافق أو يرفض بضغطة على تيليجرام، ويصل الموظف بريد بالقرار.
Google Forms → Google Sheets → Telegram → Gmail4 س/شهر
الإنتاجيةسهل
جدول يومك على تيليجرام
كل صباح، تصلك مواعيد اليوم في رسالة تيليجرام واحدة مرتبة.
Google Calendar → Telegram2 س/شهر
الإنتاجيةمتوسط
ملخص أخبار يومي بالذكاء الاصطناعي
كل صباح، يلخص الذكاء الاصطناعي أحدث المقالات من مصدر أخبار في بريد واحد قصير.
RSS → AI model → Gmail5 س/شهر