وكيل مبيعات ذكي على واتساب (بالعربية)

يبيع على واتساب بلهجة العميل: يراجع منتجاتك، ويجيب الأسئلة، ويأخذ طلبات الدفع عند الاستلام.

وكيل ذكيمتقدم توفّر ~30 ساعة شهريًا وكلاء الذكاء الاصطناعيبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: واتساب — عميل يرسل رسالة
  1. يراسل العميل رقم واتساب بيزنس الخاص بك.
  2. يرد الوكيل بلهجته ويراجع جدول المنتجات للأسعار والمقاسات والمخزون.
  3. عندما يكون العميل جاهزًا، يؤكد كل التفاصيل والإجمالي ثم يحفظ الطلب.
  4. ينبّه فريقك على تيليجرام بالطلبات الجديدة أو عند الحاجة لموظف.

ماذا يستطيع أن يفعل

على عكس الأتمتة الثابتة، يقرر الوكيل أي أدواته يستخدم وبأي ترتيب — ويتذكر المحادثة.

  • يتحدث بالمصرية أو الخليجية أو الفصحى — أو الإنجليزية
  • يراجع منتجاتك قبل ذكر أي سعر أو توفر
  • يقترح بدائل عند نفاد منتج
  • يأخذ طلبات الدفع عند الاستلام ويحفظها في جدول الطلبات
  • يتذكر محادثة كل عميل برقم هاتفه
  • ينبّه فريقك على تيليجرام بالطلبات الجديدة والتحويل لموظف

التعليمات (System prompt)

التعليمات التي تشكّل سلوك الوكيل. موجودة بالفعل داخل قالب n8n — انسخها إلى Make أو Zapier، وعدّل أجزاء YOUR_….

التعليمات (System prompt)
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 أو غيرهما). التكلفة تعتمد على النموذج وطول المحادثة — والنموذج الصغير السريع يجعل معظم المحادثات بجزء من السنت.

المخطط

WIncoming messageWhatsApp Trigger{ }Get questionCodeSales agentAI AgentClaude modelAnthropic Chat Mo…◷MemorySimple MemoryGSearch productsGoogle Sheets ToolGCreate orderGoogle Sheets ToolTNotify teamTelegram ToolWReply on WhatsAppWhatsApp Business Cloud
مشغّل تطبيق كود ذكاء اصطناعي أداة للوكيل

الكود

كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.

Get question · عقدة 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.

ملف Workflow JSON
عرض الكود (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": []
}

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

نصائح

  • الردود خلال 24 ساعة من رسالة العميل حرة؛ أما الرسائل بعدها فتحتاج قوالب معتمدة.
  • حدّث جدول المنتجات باستمرار — الوكيل يثق فيه بالكامل.

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