وكيل ذكاء اصطناعي لخدمة العملاء

وكيل محادثة يجيب من أسئلتك الشائعة، ويبحث عن الطلبات، ويحوّل الحالات الصعبة إلى موظف.

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

تعمل مع n8n · Make · Zapier

كيف تعمل

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

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

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

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

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

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

التعليمات (System prompt)
You are the customer support assistant for YOUR_BUSINESS.

Your job: answer customers' questions accurately and help them with their orders.

Tools:
- "Search FAQ": our questions-and-answers sheet. Use it for anything about products, shipping, returns, payments or policies. Answer only from what it returns.
- "Look up order": finds an order by its order number. Ask for the number if the customer hasn't given it.
- "Escalate to human": emails the support team. Use it when the customer is upset, asks for a refund or an exception, or you can't find the answer.

Rules:
- Never invent policies, prices or delivery dates. If the tools don't have the answer, say so and offer to escalate.
- Never ask for card numbers, passwords or other sensitive data.
- Before escalating, collect the customer's name and email, and tell them a person will reply.
- Keep replies short (2–4 sentences), friendly, and in the customer's language.

قواعد الأمان

مدمجة في التعليمات والأدوات:

  • لا يخترع سياسات أو أسعارًا أو مواعيد توصيل أبدًا
  • لا يطلب أرقام بطاقات أو كلمات مرور أبدًا
  • الاسترداد والاستثناءات تذهب دائمًا إلى موظف

يستخدم مفتاح الذكاء الاصطناعي الخاص بك (Claude أو OpenAI أو غيرهما). التكلفة تعتمد على النموذج وطول المحادثة — والنموذج الصغير السريع يجعل معظم المحادثات بجزء من السنت.

المخطط

Website chatChat TriggerSupport agentAI AgentClaude modelAnthropic Chat Mo…◷MemorySimple MemoryGSearch FAQGoogle Sheets ToolGLook up orderGoogle Sheets ToolGEscalate to hu…Gmail Tool
مشغّل ذكاء اصطناعي أداة للوكيل

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_. خطوات الذكاء الاصطناعي تستخدم نموذج Claude، ويمكنك استبداله بـ OpenAI أو Gemini أو Ollama.

ملف Workflow JSON
عرض الكود (242 سطر)
{
  "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": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "public": true,
        "mode": "hostedChat",
        "initialMessages": "Hi! 👋 How can I help you today?",
        "options": {
          "responseMode": "lastNode"
        }
      },
      "id": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Website chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ],
      "webhookId": "2c527cac-899b-4e84-aed5-20e53f8aab89"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "=You are the customer support assistant for YOUR_BUSINESS.\n\nYour job: answer customers' questions accurately and help them with their orders.\n\nTools:\n- \"Search FAQ\": our questions-and-answers sheet. Use it for anything about products, shipping, returns, payments or policies. Answer only from what it returns.\n- \"Look up order\": finds an order by its order number. Ask for the number if the customer hasn't given it.\n- \"Escalate to human\": emails the support team. Use it when the customer is upset, asks for a refund or an exception, or you can't find the answer.\n\nRules:\n- Never invent policies, prices or delivery dates. If the tools don't have the answer, say so and offer to escalate.\n- Never ask for card numbers, passwords or other sensitive data.\n- Before escalating, collect the customer's name and email, and tell them a person will reply.\n- Keep replies short (2–4 sentences), friendly, and in the customer's language."
        }
      },
      "id": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Support 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": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Claude model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        -40,
        220
      ]
    },
    {
      "parameters": {
        "contextWindowLength": 10
      },
      "id": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        130,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Returns all rows of our FAQ sheet (columns: question, answer). Use it to answer questions about products, shipping, returns, payments and policies.",
        "operation": "read",
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "FAQ",
          "mode": "name"
        },
        "options": {}
      },
      "id": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Search FAQ",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        300,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Finds a customer's order by order number. Returns status, items, total and tracking.",
        "operation": "read",
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "Orders",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "order_id",
              "lookupValue": "={{ $fromAI('order_id', \"The customer's order number\", 'string') }}"
            }
          ]
        },
        "options": {}
      },
      "id": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Look up order",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        470,
        220
      ]
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "Emails the support team so a person takes over. Include the customer's name, email and a short summary.",
        "sendTo": "support@yourcompany.com",
        "subject": "={{ $fromAI('subject', \"Short subject line for the support team\", 'string') }}",
        "emailType": "text",
        "message": "={{ $fromAI('summary', \"Summary of the issue, including the customer's name and email\", 'string') }}",
        "options": {
          "appendAttribution": false
        }
      },
      "id": "2c527cac-899b-4e84-aed5-20e53f8aab89",
      "name": "Escalate to human",
      "type": "n8n-nodes-base.gmailTool",
      "typeVersion": 2.1,
      "position": [
        640,
        220
      ]
    }
  ],
  "connections": {
    "Website chat": {
      "main": [
        [
          {
            "node": "Support agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude model": {
      "ai_languageModel": [
        [
          {
            "node": "Support agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "Support agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Search FAQ": {
      "ai_tool": [
        [
          {
            "node": "Support agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Look up order": {
      "ai_tool": [
        [
          {
            "node": "Support agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Escalate to human": {
      "ai_tool": [
        [
          {
            "node": "Support agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

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

نصائح

  • ابدأ بأكثر 20 سؤالًا شيوعًا في جدول الأسئلة، وأضف المزيد مع الأسئلة الحقيقية.
  • مشغّل Chat Trigger في n8n يعطيك صفحة محادثة جاهزة وأداة تضعها في موقعك.

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