وكيل ذكي لمساعدة صندوق البريد
يقرأ كل رسالة جديدة ويقرر: مسودة رد، أو مهمة، أو تنبيه — أو تجاهلها.
كيف تعمل
- تصل رسالة جديدة.
- يقرر الوكيل ما تحتاجه: رد، أو مهمة، أو تنبيه عاجل، أو لا شيء.
- يكتب مسودات الردود في نفس المحادثة، وينشئ مهام في Notion بمواعيدها، وينبهك على Slack.
- تراجع المسودات وتضغط إرسال.
ماذا يستطيع أن يفعل
على عكس الأتمتة الثابتة، يقرر الوكيل أي أدواته يستخدم وبأي ترتيب — ويتذكر المحادثة.
- يتجاهل النشرات والإشعارات
- يكتب مسودات ردود بلغة المرسل في نفس المحادثة
- يحوّل الطلبات والمواعيد النهائية إلى مهام في Notion
- ينبهك على Slack بالرسائل العاجلة
التعليمات (System prompt)
التعليمات التي تشكّل سلوك الوكيل. موجودة بالفعل داخل قالب n8n — انسخها إلى Make أو Zapier، وعدّل أجزاء YOUR_….
You are an email assistant for YOUR_NAME. For each new email, decide what to do and use your tools. You NEVER send emails, you only draft them.
Decide:
1. Newsletter, notification or marketing → do nothing.
2. Needs a reply → use "Draft reply" with a short, polite reply in the sender's language. Use [brackets] for anything YOUR_NAME must fill in. Never invent facts, prices or commitments.
3. Contains a task or deadline for YOUR_NAME → use "Create task" with a clear title and the due date if one is mentioned.
4. Urgent (a client problem, a payment issue, a same-day deadline) → use "Alert me" with a one-line summary.
An email can need several actions. Finish with a one-line summary of what you did.قواعد الأمان
مدمجة في التعليمات والأدوات:
- لا يرسل أي بريد أبدًا — ينشئ مسودات فقط
- لا يخترع حقائق أو أسعارًا أو التزامات؛ ويستخدم [أقواسًا] لما تكمله أنت
يستخدم مفتاح الذكاء الاصطناعي الخاص بك (Claude أو OpenAI أو غيرهما). التكلفة تعتمد على النموذج وطول المحادثة — والنموذج الصغير السريع يجعل معظم المحادثات بجزء من السنت.
المخطط
ابنِها بأداتك
اختر أداتك — نفس الأتمتة، خطوة بخطوة.
انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_. خطوات الذكاء الاصطناعي تستخدم نموذج Claude، ويمكنك استبداله بـ OpenAI أو Gemini أو Ollama.
عرض الكود (247 سطر)
{
"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": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyX",
"value": 5,
"unit": "minutes"
}
]
},
"simple": false,
"filters": {
"q": "category:primary is:unread"
},
"options": {}
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "New email",
"type": "n8n-nodes-base.gmailTrigger",
"typeVersion": 1.2,
"position": [
0,
0
]
},
{
"parameters": {
"promptType": "define",
"text": "=From: {{ $json.from.text }}\nSubject: {{ $json.subject }}\nDate: {{ $json.date }}\n\n{{ ($json.text || '').slice(0, 6000) }}",
"options": {
"systemMessage": "=You are an email assistant for YOUR_NAME. For each new email, decide what to do and use your tools. You NEVER send emails, you only draft them.\n\nDecide:\n1. Newsletter, notification or marketing → do nothing.\n2. Needs a reply → use \"Draft reply\" with a short, polite reply in the sender's language. Use [brackets] for anything YOUR_NAME must fill in. Never invent facts, prices or commitments.\n3. Contains a task or deadline for YOUR_NAME → use \"Create task\" with a clear title and the due date if one is mentioned.\n4. Urgent (a client problem, a payment issue, a same-day deadline) → use \"Alert me\" with a one-line summary.\n\nAn email can need several actions. Finish with a one-line summary of what you did."
}
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Inbox agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.9,
"position": [
300,
0
]
},
{
"parameters": {
"model": {
"__rl": true,
"value": "claude-sonnet-5",
"mode": "list"
},
"options": {}
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Claude model",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.3,
"position": [
-40,
220
]
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $json.threadId }}",
"contextWindowLength": 10
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
130,
220
]
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "Saves a reply as a Gmail draft in the same thread. It is never sent automatically.",
"resource": "draft",
"operation": "create",
"subject": "=Re: {{ $('New email').item.json.subject }}",
"message": "={{ $fromAI('reply', \"The full reply text\", 'string') }}",
"options": {
"threadId": "={{ $('New email').item.json.threadId }}",
"sendTo": "={{ $('New email').item.json.from.value[0].address }}"
}
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Draft reply",
"type": "n8n-nodes-base.gmailTool",
"typeVersion": 2.1,
"position": [
300,
220
]
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "Creates a task in the Notion tasks database.",
"resource": "databasePage",
"operation": "create",
"databaseId": {
"__rl": true,
"value": "YOUR_TASKS_DATABASE_ID",
"mode": "id"
},
"title": "={{ $fromAI('task', \"Clear, short task title\", 'string') }}",
"propertiesUi": {
"propertyValues": [
{
"key": "Due|date",
"date": "={{ $fromAI('due', \"Due date YYYY-MM-DD, or empty if none\", 'string') }}"
}
]
},
"options": {}
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Create task",
"type": "n8n-nodes-base.notionTool",
"typeVersion": 2.2,
"position": [
470,
220
]
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "Sends an urgent one-line alert to Slack.",
"select": "channel",
"channelId": {
"__rl": true,
"value": "#inbox-alerts",
"mode": "name"
},
"text": "={{ $fromAI('alert', \"One-line summary of what is urgent and why\", 'string') }}",
"otherOptions": {}
},
"id": "35c47c31-b9cf-4487-a721-f2e9d58ac8d0",
"name": "Alert me",
"type": "n8n-nodes-base.slackTool",
"typeVersion": 2.2,
"position": [
640,
220
]
}
],
"connections": {
"New email": {
"main": [
[
{
"node": "Inbox agent",
"type": "main",
"index": 0
}
]
]
},
"Claude model": {
"ai_languageModel": [
[
{
"node": "Inbox agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Memory": {
"ai_memory": [
[
{
"node": "Inbox agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Draft reply": {
"ai_tool": [
[
{
"node": "Inbox agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create task": {
"ai_tool": [
[
{
"node": "Inbox agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Alert me": {
"ai_tool": [
[
{
"node": "Inbox agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}في Make، أنشئ سيناريو جديدًا وأضف هذه الوحدات بالترتيب:
- Gmail › Watch Emails (search: category:primary is:unread)
- Make AI Agents › Run an agent — give it these tools: “Draft reply” (Gmail), “Create task” (Notion), “Alert me” (Slack); paste the system prompt as the agent's instructions
- كل تشغيل لوحدة يستهلك عمليات (operations) في Make — والباقة المجانية تتضمن حصة شهرية.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
في Zapier، أنشئ Zap جديدًا وأضف هذه الخطوات بالترتيب:
- Gmail — New Email Matching Search (category:primary is:unread)
- Zapier Agents — create an agent (or AI by Zapier for a single step) — give it these tools: “Draft reply” (Gmail), “Create task” (Notion), “Alert me” (Slack); paste the system prompt as the agent's instructions
- الـ Zaps التي فيها أكثر من خطوتين تحتاج باقة Zapier مدفوعة.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
نصائح
- شغّله على تصنيف تجريبي لمدة أسبوع قبل توجيهه لكل صندوق البريد.
أتمتات مشابهة
وكيل ذكي يحوّل ملاحظات الاجتماعات إلى مهام
الصق ملاحظات اجتماعك؛ فينشئ الوكيل المهام بأصحابها، ويكتب مسودة بريد المتابعة، وينشر ملخصًا.
وكيل ذكي لتحصيل الفواتير المتأخرة
كل صباح يراجع الوكيل الفواتير المتأخرة، ويكتب مسودات تذكير بالنبرة المناسبة، وينبّهك للفواتير التي تحتاج مكالمة.
وكيل ذكاء اصطناعي لخدمة العملاء
وكيل محادثة يجيب من أسئلتك الشائعة، ويبحث عن الطلبات، ويحوّل الحالات الصعبة إلى موظف.