وكيل مبيعات ذكي على واتساب (بالعربية)
يبيع على واتساب بلهجة العميل: يراجع منتجاتك، ويجيب الأسئلة، ويأخذ طلبات الدفع عند الاستلام.
كيف تعمل
- يراسل العميل رقم واتساب بيزنس الخاص بك.
- يرد الوكيل بلهجته ويراجع جدول المنتجات للأسعار والمقاسات والمخزون.
- عندما يكون العميل جاهزًا، يؤكد كل التفاصيل والإجمالي ثم يحفظ الطلب.
- ينبّه فريقك على تيليجرام بالطلبات الجديدة أو عند الحاجة لموظف.
ماذا يستطيع أن يفعل
على عكس الأتمتة الثابتة، يقرر الوكيل أي أدواته يستخدم وبأي ترتيب — ويتذكر المحادثة.
- يتحدث بالمصرية أو الخليجية أو الفصحى — أو الإنجليزية
- يراجع منتجاتك قبل ذكر أي سعر أو توفر
- يقترح بدائل عند نفاد منتج
- يأخذ طلبات الدفع عند الاستلام ويحفظها في جدول الطلبات
- يتذكر محادثة كل عميل برقم هاتفه
- ينبّه فريقك على تيليجرام بالطلبات الجديدة والتحويل لموظف
التعليمات (System prompt)
التعليمات التي تشكّل سلوك الوكيل. موجودة بالفعل داخل قالب n8n — انسخها إلى Make أو Zapier، وعدّل أجزاء YOUR_….
You are the WhatsApp sales assistant for YOUR_STORE, an online store in Egypt.
Reply in the customer's language and dialect (Egyptian Arabic, Gulf Arabic, Modern Standard Arabic or English). Be warm, short and helpful, like a good shop assistant. Use at most one emoji per message.
Tools:
- "Search products": our catalog (name, price, sizes, colors, stock). Always check it before quoting a price or availability.
- "Create order": saves a confirmed order. Use it ONLY after the customer has confirmed product, size, quantity, full name, phone, city and address, and you have repeated the total back to them.
- "Notify team": alerts our team. Use it for every new order, and when the customer asks for a person or asks something you can't answer.
Rules:
- Never invent products, prices, discounts or delivery times.
- Payment is cash on delivery. Never ask for card details in chat.
- If a product is out of stock, suggest the closest alternative from the catalog.
- If the customer asks for a human, use "Notify team" and tell them someone will reply soon.قواعد الأمان
مدمجة في التعليمات والأدوات:
- لا يخترع منتجات أو أسعارًا أو خصومات أبدًا
- يكرر الطلب والإجمالي للتأكيد قبل الحفظ
- لا يطلب بيانات البطاقة أبدًا — الدفع عند الاستلام فقط
يستخدم مفتاح الذكاء الاصطناعي الخاص بك (Claude أو OpenAI أو غيرهما). التكلفة تعتمد على النموذج وطول المحادثة — والنموذج الصغير السريع يجعل معظم المحادثات بجزء من السنت.
المخطط
الكود
كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.
// Keeps only text messages and pulls out who sent it and what they asked.
const msg = $input.first().json.messages?.[0];
if (!msg || msg.type !== "text") return [];
return [{ json: { from: msg.from, question: msg.text.body } }];ابنِها بأداتك
اختر أداتك — نفس الأتمتة، خطوة بخطوة.
انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_. خطوات الذكاء الاصطناعي تستخدم نموذج Claude، ويمكنك استبداله بـ OpenAI أو Gemini أو Ollama.
عرض الكود (297 سطر)
{
"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": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"updates": [
"messages"
]
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Incoming message",
"type": "n8n-nodes-base.whatsAppTrigger",
"typeVersion": 1,
"position": [
0,
0
],
"webhookId": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1"
},
{
"parameters": {
"jsCode": "// Keeps only text messages and pulls out who sent it and what they asked.\nconst msg = $input.first().json.messages?.[0];\nif (!msg || msg.type !== \"text\") return [];\n\nreturn [{ json: { from: msg.from, question: msg.text.body } }];"
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Get question",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
300,
0
]
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.question }}",
"options": {
"systemMessage": "=You are the WhatsApp sales assistant for YOUR_STORE, an online store in Egypt.\n\nReply in the customer's language and dialect (Egyptian Arabic, Gulf Arabic, Modern Standard Arabic or English). Be warm, short and helpful, like a good shop assistant. Use at most one emoji per message.\n\nTools:\n- \"Search products\": our catalog (name, price, sizes, colors, stock). Always check it before quoting a price or availability.\n- \"Create order\": saves a confirmed order. Use it ONLY after the customer has confirmed product, size, quantity, full name, phone, city and address, and you have repeated the total back to them.\n- \"Notify team\": alerts our team. Use it for every new order, and when the customer asks for a person or asks something you can't answer.\n\nRules:\n- Never invent products, prices, discounts or delivery times.\n- Payment is cash on delivery. Never ask for card details in chat.\n- If a product is out of stock, suggest the closest alternative from the catalog.\n- If the customer asks for a human, use \"Notify team\" and tell them someone will reply soon."
}
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Sales agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.9,
"position": [
600,
0
]
},
{
"parameters": {
"model": {
"__rl": true,
"value": "claude-sonnet-5",
"mode": "list"
},
"options": {}
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Claude model",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.3,
"position": [
260,
220
]
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $('Get question').item.json.from }}",
"contextWindowLength": 10
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
430,
220
]
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "Returns our product catalog (name, price, sizes, colors, stock). Check it before quoting any price or availability.",
"operation": "read",
"documentId": {
"__rl": true,
"value": "YOUR_SPREADSHEET_ID",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Products",
"mode": "name"
},
"options": {}
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Search products",
"type": "n8n-nodes-base.googleSheetsTool",
"typeVersion": 4.5,
"position": [
600,
220
]
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "Saves a confirmed cash-on-delivery order. Only call after the customer confirmed every detail and the total.",
"operation": "append",
"documentId": {
"__rl": true,
"value": "YOUR_SPREADSHEET_ID",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Orders",
"mode": "name"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"date": "={{ $now.toISO() }}",
"phone": "={{ $('Get question').item.json.from }}",
"name": "={{ $fromAI('name', \"Customer's full name\", 'string') }}",
"product": "={{ $fromAI('product', \"Product name, size and color\", 'string') }}",
"quantity": "={{ $fromAI('quantity', \"Quantity\", 'number') }}",
"total": "={{ $fromAI('total', \"Order total in EGP\", 'number') }}",
"city": "={{ $fromAI('city', \"Delivery city\", 'string') }}",
"address": "={{ $fromAI('address', \"Full delivery address\", 'string') }}"
}
},
"options": {}
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Create order",
"type": "n8n-nodes-base.googleSheetsTool",
"typeVersion": 4.5,
"position": [
770,
220
]
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "Sends a message to our team's Telegram group: new orders, requests for a human, or questions you can't answer.",
"chatId": "YOUR_TEAM_CHAT_ID",
"text": "={{ $fromAI('message', \"What the team needs to know, including the customer's phone\", 'string') }}",
"additionalFields": {
"appendAttribution": false
}
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Notify team",
"type": "n8n-nodes-base.telegramTool",
"typeVersion": 1.2,
"position": [
940,
220
]
},
{
"parameters": {
"operation": "send",
"phoneNumberId": "YOUR_PHONE_NUMBER_ID",
"recipientPhoneNumber": "={{ $('Get question').item.json.from }}",
"textBody": "={{ $json.output }}"
},
"id": "3f36c28d-dcaa-4fe7-afb0-dde2cffcb7d1",
"name": "Reply on WhatsApp",
"type": "n8n-nodes-base.whatsApp",
"typeVersion": 1,
"position": [
900,
0
]
}
],
"connections": {
"Incoming message": {
"main": [
[
{
"node": "Get question",
"type": "main",
"index": 0
}
]
]
},
"Get question": {
"main": [
[
{
"node": "Sales agent",
"type": "main",
"index": 0
}
]
]
},
"Sales agent": {
"main": [
[
{
"node": "Reply on WhatsApp",
"type": "main",
"index": 0
}
]
]
},
"Claude model": {
"ai_languageModel": [
[
{
"node": "Sales agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Memory": {
"ai_memory": [
[
{
"node": "Sales agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Search products": {
"ai_tool": [
[
{
"node": "Sales agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create order": {
"ai_tool": [
[
{
"node": "Sales agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Notify team": {
"ai_tool": [
[
{
"node": "Sales agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}في Make، أنشئ سيناريو جديدًا وأضف هذه الوحدات بالترتيب:
- WhatsApp Business Cloud › Watch Events (messages)
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Make AI Agents › Run an agent — give it these tools: “Search products” (Google Sheets), “Create order” (Google Sheets), “Notify team” (Telegram Bot); paste the system prompt as the agent's instructions
- WhatsApp Business Cloud › Send a Message
- كل تشغيل لوحدة يستهلك عمليات (operations) في Make — والباقة المجانية تتضمن حصة شهرية.
- دوال Make المدمجة (map و sum و formatDate…) تغني عن معظم خطوات Code؛ وللمنطق المعقد استخدم وحدة كود.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
في Zapier، أنشئ Zap جديدًا وأضف هذه الخطوات بالترتيب:
- WhatsApp — New Message
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Zapier Agents — create an agent (or AI by Zapier for a single step) — give it these tools: “Search products” (Google Sheets), “Create order” (Google Sheets), “Notify team” (Telegram); paste the system prompt as the agent's instructions
- WhatsApp — Send Message
- الـ Zaps التي فيها أكثر من خطوتين تحتاج باقة Zapier مدفوعة.
- الـ Webhooks والفلاتر/المسارات و Code by Zapier ميزات مدفوعة في بعض باقات Zapier.
- Code by Zapier يشغّل JavaScript: أعد استخدام الكود بالأعلى، مع قراءة المدخلات من inputData بدلًا من $json.
- قد تختلف أسماء الوحدات والخطوات قليلًا مع تحديث Make و Zapier لتطبيقاتهما.
نصائح
- الردود خلال 24 ساعة من رسالة العميل حرة؛ أما الرسائل بعدها فتحتاج قوالب معتمدة.
- حدّث جدول المنتجات باستمرار — الوكيل يثق فيه بالكامل.
أتمتات مشابهة
وكيل ذكي للطلبات والمرتجعات على واتساب (بالعربية)
يجيب عن "طلبي فين؟"، ويعطي تحديثات التوصيل، ويسجل المرتجعات والاستبدال — بلهجة العميل.
وكيل ذكي للعقارات على واتساب
يفهم ما يريده العميل، ويقترح وحدات مناسبة، ويحجز المعاينات — بالعربية أو الإنجليزية.
وكيل ذكي لطلبات المطعم على واتساب
يأخذ طلبات التوصيل على واتساب من قائمتك، ويؤكد الإجمالي، ويرسل الطلب للمطبخ.