Test Your Bot & Sessions اختبار البوت والجلسات
Use the Chat Tester to validate responses, and understand how conversations and sessions are tracked. استخدم أداة اختبار المحادثة للتحقق من الردود، وافهم كيف تُتابَع المحادثات والجلسات.
Before you go live (and after every update), you should test your bot and understand what your users experience. This lesson covers the Chat Tester and the Conversations view.
The Chat Tester
The Chat Tester is a live preview of your bot, accessible from the right panel inside any project. It uses the exact same knowledge base, system prompt, and settings as the production bot.
To use it:
- Open your project and locate the Chat Tester panel on the right side
- Type a message as if you were a customer
- The bot responds in real time
- You can also click Reset to start a fresh session
What to test:
- Your most common customer questions
- Edge cases — questions your bot might not know
- The welcome message (triggered when you first open the tester)
- Multilingual: try switching to Arabic or English mid-conversation
What is a Session?
A session is one complete conversation between a real user and your bot, through a connected channel. Sessions start when a user sends their first message and end after a period of inactivity (usually 30 minutes).
Each session has:
- User identifier — phone number (WhatsApp), Telegram username, etc.
- Channel — which channel the conversation came from
- Timestamp — when the session started and ended
- Message history — full transcript of the conversation
Viewing Conversations
Inside your project, click the Conversations tab. You'll see a chronological list of all real user sessions. Click on any session to view the full transcript.
Use this to:
- Understand how real users phrase their questions
- Spot where the bot gives incorrect or incomplete answers
- Identify patterns in what topics are discussed most
Human Handoff
If a user needs to speak with a human agent, the bot will route them based on your Out-of-Scope Message setting. You can customise this message to direct them to:
- An email address
- A phone number
- A WhatsApp contact
- A support ticket link
Future versions of Mugib will include a built-in live agent handoff feature.
قبل الإطلاق (وبعد كل تحديث)، يجب عليك اختبار بوتك وفهم ما يختبره مستخدموك. هذا الدرس يغطي أداة اختبار المحادثة وعرض المحادثات.
أداة اختبار المحادثة
أداة اختبار المحادثة هي معاينة حية لبوتك، متاحة من اللوحة اليمنى داخل أي مشروع. تستخدم نفس قاعدة المعرفة والـ system prompt والإعدادات تماماً كالبوت الإنتاجي.
لاستخدامها:
- افتح مشروعك وضع لوحة اختبار المحادثة على الجانب الأيمن
- اكتب رسالة كأنك عميل
- يرد البوت في الوقت الفعلي
- يمكنك أيضاً النقر على إعادة ضبط لبدء جلسة جديدة
ماذا تختبر:
- أسئلة عملائك الأكثر شيوعاً
- الحالات الحدية — أسئلة قد لا يعرفها بوتك
- رسالة الترحيب (تُطلق عند أول فتح للأداة)
- متعدد اللغات: جرّب التبديل للعربية أو الإنجليزية في منتصف المحادثة
ما هي الجلسة؟
الجلسة هي محادثة كاملة بين مستخدم حقيقي وبوتك، عبر قناة مربوطة. تبدأ الجلسات عندما يرسل المستخدم أول رسالة وتنتهي بعد فترة من عدم النشاط (عادةً 30 دقيقة).
كل جلسة تتضمن:
- معرّف المستخدم — رقم الهاتف (واتساب)، اسم مستخدم تيليجرام، إلخ.
- القناة — القناة التي جاءت منها المحادثة
- الطابع الزمني — متى بدأت وانتهت الجلسة
- سجل الرسائل — نص كامل للمحادثة
عرض المحادثات
داخل مشروعك، انقر تبويب المحادثات. ستجد قائمة زمنية بجميع جلسات المستخدمين الحقيقيين. انقر على أي جلسة لعرض النص الكامل.
استخدم هذا لـ:
- فهم كيف يُصيغ المستخدمون الحقيقيون أسئلتهم
- اكتشاف مواضع إعطاء البوت إجابات غير صحيحة أو ناقصة
- تحديد الأنماط في المواضيع الأكثر نقاشاً
التحويل للإنسان
إذا احتاج مستخدم للتحدث مع موظف بشري، سيُوجّهه البوت بناءً على إعداد رسالة خارج النطاق. يمكنك تخصيص هذه الرسالة لتوجيههم إلى:
- بريد إلكتروني
- رقم هاتف
- جهة واتساب للتواصل
- رابط تذكرة دعم
الإصدارات المستقبلية من مجيب ستتضمن ميزة تحويل مدمجة لوكيل حي.
Ready to build your AI agent?
Start your free trial and put what you've learned into practice.
Start Free Trial