WesalBotDocsالدليل wesalbot.wesal.aiالموقع الرئيسي
Documentationالدليل

Build Arabic AI voice agents with WesalBotابنِ وكلاء صوتيين عرباً بالذكاء الاصطناعي مع وصال بوت

WesalBot answers phone and web calls with AI agents that speak Arabic and English. This guide walks you through building an agent, choosing its AI models, testing it, and putting it on your phone lines.

يرد وصال بوت على المكالمات الهاتفية ومكالمات الويب بوكلاء ذكاء اصطناعي يتحدثون العربية والإنجليزية. يرشدك هذا الدليل خطوة بخطوة لبناء وكيل، واختيار نماذجه، واختباره، وربطه بخطوطك الهاتفية.

How WesalBot worksكيف يعمل وصال بوت

Every turn of a conversation passes through three AI models, guided by your agent's workflow:

تمر كل جولة في المحادثة عبر ثلاثة نماذج ذكاء اصطناعي، يوجّهها مسار وكيلك:

Caller Speech recognitionASR · voice → text Language modelLLM + workflow+ integrations VoiceTTS · text → speech 🔊
PartالجزءWhat it doesماذا يفعل
AgentالوكيلThe assistant your callers talk to: its instructions, greeting, models and settings.المساعد الذي يتحدث معه المتصلون: تعليماته وترحيبه ونماذجه وإعداداته.
WorkflowالمسارThe steps a conversation can follow: greet, collect details, call an API, transfer.الخطوات التي تتبعها المحادثة: الترحيب، جمع البيانات، استدعاء نظام، التحويل.
ModelsالنماذجThe speech recognition, language and voice models the agent uses.نماذج التعرف على الكلام واللغة والصوت التي يستخدمها الوكيل.
ChannelsالقنواتWhere calls come from: phone numbers over SIP trunks, or web calls from the browser.مصدر المكالمات: أرقام هاتفية عبر SIP، أو مكالمات ويب من المتصفح.

Sign in and rolesالدخول والصلاحيات

Sign in to the customer portal at app.wesal.ai with the account your WesalCX contact created for you. Each company works in its own workspace; your agents, models, calls and recordings are visible only to your team.

ادخل إلى بوابة العملاء على app.wesal.ai بالحساب الذي أنشأه لك فريق وصال. لكل شركة مساحة عمل مستقلة، ولا يرى وكلاءك ونماذجك ومكالماتك وتسجيلاتك إلا فريقك.

RoleالدورCan doالصلاحيات
OwnerالمالكEverything, including account settings, users, API keys and call recording rules.كل شيء، بما في ذلك إعدادات الحساب والمستخدمين ومفاتيح API وقواعد التسجيل.
AdminالمسؤولBuild and edit agents, workflows and integrations; view calls.بناء الوكلاء والمسارات والتكاملات وتعديلها، وعرض المكالمات.
ViewerالمشاهدView agents, calls, transcripts and analytics without changing them.عرض الوكلاء والمكالمات والنصوص والتحليلات دون تعديل.
Tip: the exact role names in your portal can differ slightly depending on your plan. Ask your account owner if you can't see a menu.
ملاحظة: قد تختلف أسماء الأدوار قليلاً حسب باقتك. اسأل مالك الحساب إذا لم تظهر لك إحدى القوائم.

Create your first agentأنشئ وكيلك الأول

  1. Open Agents and choose New agent. Give it a clear name, such as "Clinic reception".
  2. Write the instructions. Describe in plain language who the agent is, what it helps with, its tone, and what it must never do. Short, specific rules work best.
  3. Set the greeting: the first sentence callers hear, e.g. "Welcome to the clinic, how can I help you today?"
  4. Choose models. Leave speech recognition on Platform default unless you need a specific one, pick a language model and a voice. See AI models.
  5. Save, then press Test call to talk to your agent from the browser.
  1. افتح الوكلاء واختر وكيل جديد. أعطه اسماً واضحاً مثل «استقبال العيادة».
  2. اكتب التعليمات بلغة بسيطة: من هو الوكيل، وبماذا يساعد، ونبرته، وما يجب ألا يفعله. القواعد القصيرة والمحددة تعطي أفضل النتائج.
  3. حدد الترحيب: أول جملة يسمعها المتصل، مثل «أهلاً بك في العيادة، كيف أقدر أخدمك؟»
  4. اختر النماذج. اترك التعرف على الكلام على الافتراضي للمنصة ما لم تحتج نموذجاً محدداً، واختر نموذج اللغة والصوت. راجع النماذج.
  5. احفظ ثم اضغط مكالمة تجريبية لتتحدث مع وكيلك من المتصفح.

Writing good instructionsكتابة تعليمات جيدة

  • State the goal first: "You book, move and cancel dental appointments."
  • Say which dialect to use: "Reply in Saudi dialect; switch to English if the caller does."
  • Keep answers short; callers can't skim a long paragraph.
  • Tell the agent when to transfer: "If the caller asks about billing disputes, transfer to a human."
  • ابدأ بالهدف: «مهمتك حجز مواعيد الأسنان وتعديلها وإلغاؤها.»
  • حدد اللهجة: «رد باللهجة السعودية، وانتقل للإنجليزية إذا تحدث بها المتصل.»
  • اجعل الردود قصيرة، فالمتصل لا يستطيع تصفح فقرة طويلة.
  • أخبر الوكيل متى يحوّل: «إذا سأل المتصل عن نزاع في الفواتير، حوّل المكالمة لموظف.»

Workflow builderمنشئ المسارات

For agents that need a defined path, open the agent's workflow and build it on the canvas. Drag steps from the palette, connect them, and configure each one in the side panel.

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

StepالخطوةUse it toالاستخدام
Start / greetingالبداية / الترحيبOpen the call with a fixed or AI-written greeting.افتتاح المكالمة بترحيب ثابت أو يكتبه الذكاء الاصطناعي.
AI stepخطوة ذكيةLet the language model handle part of the conversation with its own instructions.ترك جزء من المحادثة لنموذج اللغة بتعليمات خاصة به.
ConditionشرطBranch based on what the caller said or on data from an integration.التفرع بناءً على كلام المتصل أو بيانات من نظام.
IntegrationتكاملCall your API to look up or save information during the call.استدعاء نظامك للاستعلام عن معلومات أو حفظها أثناء المكالمة.
TransferتحويلHand the call to a human agent or another number.تحويل المكالمة إلى موظف أو رقم آخر.
EndإنهاءClose the call politely.إنهاء المكالمة بلباقة.
Tip: keep each AI step focused on one job. Several small steps are easier to test and change than one big one.
نصيحة: اجعل كل خطوة ذكية مركزة على مهمة واحدة. الخطوات الصغيرة أسهل في الاختبار والتعديل من خطوة كبيرة.

AI models and API keysالنماذج ومفاتيح API

Each agent uses three models. You can use the models your workspace already has, or add your own with your provider's API key.

يستخدم كل وكيل ثلاثة نماذج. يمكنك استخدام النماذج المتاحة في مساحة عملك، أو إضافة نماذجك الخاصة بمفتاح API من المزود.

TypeالنوعSupported providersالمزودون المدعومونYou needالمطلوب
Speech recognition (ASR)التعرف على الكلامHUMAIN Voice, ElevenLabs Scribe, Jais ASR, OpenAI, Google Cloud, Azure SpeechAPI key, model name, language (e.g. ar)مفتاح API، اسم النموذج، اللغة (مثل ar)
Language model (LLM)نموذج اللغةGoogle Gemini, OpenAI, any OpenAI-compatible APIGoogle Gemini وOpenAI وأي واجهة متوافقة مع OpenAIAPI key and model nameمفتاح API واسم النموذج
Voice (TTS)الصوتHUMAIN Voice, ElevenLabs, Hamsa, Google Cloud, Azure Speech, OpenAIAPI key and a voice name or IDمفتاح API واسم الصوت أو معرّفه

Add a modelإضافة نموذج

  1. Go to Settings → Models and choose Add.
  2. Pick the use (speech recognition, voice or language model) and the provider.
  3. Fill in the fields shown for that provider and paste your API key. Keys are stored encrypted and never shown again.
  4. Press Test. A successful test means calls can use the model.
  5. Select the model on an agent, or set it as your default.
  1. اذهب إلى الإعدادات ← النماذج واختر إضافة.
  2. اختر الاستخدام (تعرف على الكلام أو صوت أو نموذج لغة) والمزود.
  3. املأ الحقول الخاصة بالمزود والصق مفتاح API. تُحفظ المفاتيح مشفّرة ولا تُعرض مرة أخرى.
  4. اضغط اختبار. نجاح الاختبار يعني أن المكالمات تستطيع استخدام النموذج.
  5. اختر النموذج في الوكيل، أو اجعله الافتراضي.

Provider notesملاحظات المزودين

  • HUMAIN Voice: speech recognition models such as bayan_ar; voice model nebula with an optional voice ID (UUID) from your HUMAIN account. Calls stop working if the account runs out of credit.
  • ElevenLabs: use the API key that starts with sk_, not the key ID. Speech recognition uses Scribe (scribe_v2 or scribe_v3) with language ar or auto; voices need a voice ID.
  • Jais ASR: runs on a dedicated speech server that may be switched off outside working hours; ask your administrator before selecting it.
  • HUMAIN Voice: نماذج تعرف على الكلام مثل bayan_ar، ونموذج الصوت nebula مع معرّف صوت اختياري (UUID) من حسابك. تتوقف المكالمات إذا نفد رصيد الحساب.
  • ElevenLabs: استخدم مفتاح API الذي يبدأ بـ sk_ وليس معرّف المفتاح. يستخدم التعرف على الكلام نموذج Scribe (scribe_v2 أو scribe_v3) مع اللغة ar أو auto، وتحتاج الأصوات معرّف صوت.
  • Jais ASR: يعمل على خادم كلام مخصص قد يكون متوقفاً خارج أوقات العمل؛ راجع المسؤول قبل اختياره.

Platform default speech recognitionالتعرف الافتراضي على الكلام

Agents set to Platform default use the speech recognition model chosen by your administrator. When the default changes, those agents follow automatically; agents with a specific model keep it.

الوكلاء المضبوطون على الافتراضي للمنصة يستخدمون نموذج التعرف الذي يحدده المسؤول. عند تغييره يتبعه هؤلاء الوكلاء تلقائياً، أما الوكلاء ذوو النموذج المحدد فيحتفظون به.

Pronunciationالنطق

If the voice mispronounces a brand, a doctor's name or an abbreviation, add it on the Pronunciation page: enter the word as written and how it should be said (for example, spell it out in Arabic letters). The rule applies to every agent in your workspace.

إذا أخطأ الصوت في نطق علامة تجارية أو اسم طبيب أو اختصار، أضفه في صفحة النطق: اكتب الكلمة كما تُكتب وكيف يجب أن تُنطق (مثلاً بكتابتها بالحروف العربية). تنطبق القاعدة على كل الوكلاء في مساحة عملك.

WrittenالمكتوبSay asيُنطق
WesalCXوصال سي إكس
Dr.دكتور

Integrationsالتكاملات

Integrations let an agent talk to your systems over HTTPS APIs.

تتيح التكاملات للوكيل التواصل مع أنظمتك عبر واجهات HTTPS.

  • During the call: the agent calls an API to fetch or save data, for example "find the caller's next appointment" or "create a ticket". Describe what the integration does so the language model knows when to use it.
  • After the call: a post-call integration sends the call details (such as the transcript, summary and outcome) to your system, e.g. your CRM or helpdesk.
  • أثناء المكالمة: يستدعي الوكيل واجهة لجلب البيانات أو حفظها، مثل «اعرف موعد المتصل القادم» أو «أنشئ تذكرة». صف ما يفعله التكامل ليعرف نموذج اللغة متى يستخدمه.
  • بعد المكالمة: يرسل تكامل ما بعد المكالمة تفاصيلها (كالنص والملخص والنتيجة) إلى نظامك، مثل نظام إدارة العملاء أو الدعم.
Security: only public HTTPS endpoints are allowed. Store tokens in the integration's secret field, never in the agent's instructions.
الأمان: يُسمح فقط بعناوين HTTPS العامة. احفظ رموز الدخول في حقل السر الخاص بالتكامل، ولا تضعها أبداً في تعليمات الوكيل.

Conversation settingsإعدادات المحادثة

SettingالإعدادWhat it doesالوظيفة
Turn detectionاكتشاف نهاية الكلامDecides when the caller has finished speaking, using voice activity and a smart end-of-turn model, so the agent neither interrupts nor waits too long.يحدد متى أنهى المتصل كلامه باستخدام كشف الصوت ونموذج ذكي، فلا يقاطعه الوكيل ولا ينتظر طويلاً.
Interruptions (barge-in)المقاطعةCallers can talk over the agent to stop it. Sensitivity controls how much speech is needed; lower sensitivity suits noisy places.يستطيع المتصل التحدث أثناء كلام الوكيل لإيقافه. تتحكم الحساسية في مقدار الكلام المطلوب؛ الحساسية المنخفضة أنسب للأماكن الصاخبة.
Noise suppressionتقليل الضوضاءFilters steady background noise and quieter voices in the background before speech recognition. On by default.يصفّي الضوضاء المستمرة والأصوات الخافتة في الخلفية قبل التعرف على الكلام. مفعّل افتراضياً.
TransferالتحويلWhere calls go when the caller asks for a person or the workflow reaches a transfer step.وجهة المكالمة عندما يطلب المتصل موظفاً أو يصل المسار إلى خطوة تحويل.

Test callsالمكالمات التجريبية

Press Test call on an agent to talk to it from your browser. Allow microphone access when asked. Use headphones for the most realistic result, and try both dialects, interruptions and off-topic questions before going live.

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

Tip: each test call appears in the calls list with its transcript and call ID, which helps when you ask support to look at a specific call.
نصيحة: تظهر كل مكالمة تجريبية في قائمة المكالمات مع نصها ومعرّفها، وهذا يساعد عند طلب الدعم لمكالمة محددة.

Phone numbers and SIPالأرقام الهاتفية وSIP

WesalBot receives phone calls over SIP trunks from your telecom provider or contact center platform. Your numbers stay with your provider; calls are routed to WesalBot.

يستقبل وصال بوت المكالمات الهاتفية عبر خطوط SIP من مزود الاتصالات أو منصة مركز الاتصال لديك. تبقى أرقامك لدى مزودك، وتُوجَّه المكالمات إلى وصال بوت.

  1. Share your provider's SIP details (IP addresses or host) with WesalCX, or add the trunk in the portal if it's enabled for you.
  2. Point your number (DID) at the WesalBot SIP address you receive.
  3. Assign the number to an agent.
  4. Call the number to check the greeting, then try a transfer.
  1. شارك بيانات SIP الخاصة بمزودك (عناوين IP أو المضيف) مع فريق وصال، أو أضف الخط من البوابة إذا كان متاحاً لك.
  2. وجّه رقمك (DID) إلى عنوان SIP الخاص بوصال بوت الذي يصلك.
  3. اربط الرقم بوكيل.
  4. اتصل بالرقم لتتأكد من الترحيب، ثم جرّب التحويل.

Calls and recordingsالمكالمات والتسجيلات

Every call is listed with its time, duration, agent, outcome (e.g. completed or transferred) and transcript. Open a call to read the conversation turn by turn and, if recording is on, play the audio.

تُعرض كل مكالمة مع وقتها ومدتها والوكيل والنتيجة (مكتملة أو محوّلة مثلاً) والنص. افتح المكالمة لقراءة المحادثة جولة بجولة، والاستماع للتسجيل إذا كان التسجيل مفعّلاً.

  • Call recording can be turned on or off by the owner in Settings → Call recording.
  • Retention: recordings are kept according to your workspace's storage rule. Automatic clean-up can be paused so that no recording is deleted.
  • تسجيل المكالمات يفعّله المالك أو يوقفه من الإعدادات ← تسجيل المكالمات.
  • مدة الاحتفاظ: تُحفظ التسجيلات حسب قاعدة التخزين في مساحة عملك، ويمكن إيقاف الحذف التلقائي مؤقتاً حتى لا يُحذف أي تسجيل.

Live view and analyticsالمتابعة المباشرة والتحليلات

The live view shows calls in progress. The dashboard summarises call volume, minutes used, outcomes and transfers over time, so you can spot busy hours and topics the agent should handle better.

تعرض المتابعة المباشرة المكالمات الجارية، وتلخّص لوحة المعلومات عدد المكالمات والدقائق المستخدمة والنتائج والتحويلات عبر الوقت، لتعرف أوقات الذروة والمواضيع التي يحتاج الوكيل لتحسينها.

Troubleshootingحل المشكلات

SymptomالمشكلةLikely cause and fixالسبب المحتمل والحل
Greeting plays, then the agent never answersيُسمع الترحيب ثم لا يرد الوكيلThe speech recognition model is failing, usually a wrong or expired API key. Open the model in Settings → Models, re-enter the key and press Test. For ElevenLabs, use the key starting with sk_.نموذج التعرف على الكلام لا يعمل، وغالباً بسبب مفتاح API خاطئ أو منتهٍ. افتح النموذج في الإعدادات ← النماذج، وأعد إدخال المفتاح واضغط اختبار. في ElevenLabs استخدم المفتاح الذي يبدأ بـ sk_.
Call disconnects right after it startsتنقطع المكالمة فور بدئهاThe voice model can't speak the greeting, often because the provider account has no credit left. Top up the provider account, or choose another voice.نموذج الصوت لا يستطيع نطق الترحيب، وغالباً لنفاد رصيد حساب المزود. اشحن الحساب أو اختر صوتاً آخر.
Agent keeps stopping mid-sentenceيتوقف الوكيل في منتصف الجملةBackground noise or voices are treated as interruptions. Lower the interruption sensitivity and make sure noise suppression is on.تُعامل الضوضاء أو الأصوات الخلفية كمقاطعة. خفّض حساسية المقاطعة وتأكد من تفعيل تقليل الضوضاء.
Names are pronounced wronglyالأسماء تُنطق بشكل خاطئAdd them on the Pronunciation page.أضفها في صفحة النطق.
Agent answers in the wrong dialectيرد الوكيل بلهجة غير مطلوبةState the dialect explicitly in the instructions and greeting, and check the speech recognition language.حدد اللهجة بوضوح في التعليمات والترحيب، وتحقق من لغة نموذج التعرف على الكلام.
Contacting support? Include the call ID from the calls list; it lets the team find the exact call logs.
تتواصل مع الدعم؟ أرفق معرّف المكالمة من قائمة المكالمات ليتمكن الفريق من الوصول إلى سجلاتها مباشرة.

Glossaryالمصطلحات

ASRAutomatic speech recognition: converts speech to text.التعرف التلقائي على الكلام: تحويل الكلام إلى نص.
TTSText to speech: the agent's voice.تحويل النص إلى كلام: صوت الوكيل.
LLMLarge language model: decides what the agent says and does.نموذج لغوي كبير: يقرر ما يقوله الوكيل وما يفعله.
SIP trunkThe standard connection that carries phone calls between your provider and WesalBot.الاتصال القياسي الذي ينقل المكالمات بين مزودك ووصال بوت.
Barge-inThe caller interrupting the agent while it speaks.مقاطعة المتصل للوكيل أثناء حديثه.
DIDA direct phone number callers dial.رقم الهاتف المباشر الذي يتصل به العملاء.

Supportالدعم

Questions, a demo, or help going live? Email [email protected] or contact your WesalCX account manager.

لديك سؤال أو تريد عرضاً تجريبياً أو مساعدة في التشغيل؟ راسلنا على [email protected] أو تواصل مع مدير حسابك في وصال.