تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
للتطوير باستخدام Dialogflow، يجب أولاً إنشاء مشروع Actions
ووكيل Dialogflow. ويتيح لك امتلاك مشروع الوصول إلى وحدة تحكّم المطوّرين
لإدارة الإجراء الخاص بك وتوزيعه. يحتوي وكيل Dialogflow على جميع الأغراض
التي تحدِّد الإجراء.
مرر لأسفل إلى قسم خيارات إضافية وانقر على بطاقة محادثة.
انقر على تطوير في القائمة العلوية، ثم انقر على الإجراءات في القائمة اليمنى.
انقر على إضافة الإجراء الأول.
في بطاقة الجمهور المخصّص حسب النية بالشراء، انقر على إنشاء.
تظهر وحدة تحكّم Dialogflow بالمعلومات التي تتم تعبئتها تلقائيًا
في الوكيل. انقر على إنشاء لحفظ الوكيل.
وحدة التحكّم في Dialogflow
من المفترض أن تظهر الآن وحدة التحكّم في Dialogflow ولوحة القائمة على يمين الصفحة. إذا كنت تستخدم شاشة صغيرة والقائمة مخفية، انقر على menu في أعلى يمين الصفحة.
تعرِض النافذة المركزية قائمة أغراض الوكيل. وفقًا للإعدادات التلقائية،
تبدأ برامج Dialogflow لغرضَين. يرحّب الهدف التلقائي للترحيب
بالمستخدمين. يتطابق وكيلك مع الهدف التلقائي للإجراء عندما لا يفهم ما يقوله المستخدمون.
يقع مُحاكي Dialogflow على الجانب الأيمن من الصفحة. يتيح لك المحاكي تجربة
وكيلك عن طريق نطق الرسائل أو كتابتها. في محاكي Dialogflow، انقر على التجربة الآن، واكتب أي شيء، ثم اضغط على enter.
الشكل 1. لقطة شاشة لوحدة تحكّم Dialogflow تعرض موظّفًا.
إنشاء هدفك الأول
يستخدم Dialogflow الأغراض لتصنيف نوايا المستخدم. تتضمّن الأهداف
عبارات التدريب، وهي أمثلة على ما قد يقوله المستخدم لوكيلك.
على سبيل المثال، قد يسأل المستخدم الذي يريد معرفة اسم الوكيل، "ما اسمك؟" "هل لديك اسم؟" أو يكفي أن تقول "اسم". تحتوي هذه العبارات على
الهدف النهائي نفسه: الحصول على اسم وكيلك.
لإنشاء وكيل يتولّى معالجة هذه الحالة، اتّبِع الخطوات التالية:
انقر على add بجانب الأهداف في قائمة التنقّل.
أدخِل Name في حقل النص اسم الغرض.
في قسم عبارات التدريب، انقر على إضافة عبارات التدريب.
أدخِل العبارات التالية (اضغط على مفتاح enter بعد كل عبارة):
What is your name?
Do you have a name?
name
في قسم الردود، انقر على إضافة رد.
أدخِل الرد التالي في نافذة Text Response (الرد النصي):
My name is Dialogflow!
انقر على حفظ.
تجربة السمات والبيانات
لاختبار الغرض الجديد من الاسم، في محاكي Dialogflow، اكتب "ما اسمك؟" واضغط على Enter.
يمكن لوكيلك أن يجيب عن سؤالك بشكل صحيح حتى عندما تطرح أسئلة
مختلفة تمامًا عن العبارات التدريبية (على سبيل المثال، "ما اسمك؟" مقابل "ما اسمك؟").
تستخدم منصة Dialogflow عبارات تدريب لتدريب نموذج تعلُّم الآلة، ما يساعد الوكيل على مطابقة أصوات المستخدمين مع الأغراض الصحيحة.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eTo begin developing with Dialogflow, you need to set up an Actions project and a Dialogflow agent using the Actions console.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow utilizes intents, containing training phrases and responses, to understand and respond to user requests.\u003c/p\u003e\n"],["\u003cp\u003eYou can test your Dialogflow agent using the built-in simulator by typing or speaking messages.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow employs machine learning to match user input to the appropriate intents, even if the phrasing differs slightly from training phrases.\u003c/p\u003e\n"]]],[],null,["# Create a project and Dialogflow agent (Dialogflow)\n\nTo develop with Dialogflow, you first need to create an Actions project and a\nDialogflow agent. Having a project allows you to access the developer console to\nmanage and distribute your Action. The Dialogflow agent contains all the intents\nthat define your Action.\n| **Note:** When creating a new project, Actions on Google enables [Firebase](//firebase.google.com/), Google's developer platform that provides a number of services for app developers. Relative terms of service information can be found in the [Actions on Google Terms Explanation](/assistant/console/policies/terms-explanation).\n\nCreate an Actions project and Dialogflow agent\n----------------------------------------------\n\n1. Go to the [Actions console](//console.actions.google.com/).\n2. Click **New project**.\n3. Enter a name for your project and click **Create Project** .\n4. Scroll down to the **More options** section and click on the **Conversational** card.\n5. Click **Develop** in the top menu, then click **Actions** in the left menu.\n6. Click **Add Your First Action**.\n7. On the **Custom intent** card, click **Build**.\n8. The Dialogflow console appears with the information automatically populated in an agent. Click **Create** to save the agent.\n\nThe Dialogflow console\n----------------------\n\nYou should now see the Dialogflow console and the menu panel on the left. If\nyou're on a small screen and the menu is hidden, click\n*menu* in the upper left corner.\n\nThe center window shows the list of intents for the agent. By default,\nDialogflow agents start with two intents. The *Default Welcome Intent* greets\nyour users. Your agent matches the *Default Fallback Intent* when it doesn't\nunderstand what the users say.\n\nThe Dialogflow simulator is on the right side of the page. The simulator lets\nyou try out your agent by speaking or typing messages. In the Dialogflow\nsimulator, click **Try it now**, type anything, and press enter.\n\n**Figure 1**. A screenshot of the Dialogflow console showing an agent.\n\nCreate your first intent\n------------------------\n\nDialogflow uses intents to categorize a user's intentions. Intents have\n*Training Phrases*, which are examples of what a user might say to your agent.\nFor instance, a user who wants to know your agent's name might ask, \"What is\nyour name?\", \"Do you have a name?\", or simply say \"name\". These phrases have the\nsame end goal: to get the name of your agent.\n\nTo create an agent that handles this case, follow these steps:\n\n1. Click *add* next to **Intents** in the navigation menu.\n2. Enter `Name` in the **Intent name** text field.\n3. In the **Training Phrases** section, click **Add Training Phrases**.\n4. Enter the following phrases (press enter after each phrase):\n - `What is your name?`\n - `Do you have a name?`\n - `name`\n5. In the **Responses** section, click **Add Response**.\n6. Enter the following response in the **Text Response** window:\n - `My name is Dialogflow!`\n7. Click **Save**.\n\nTry it out\n----------\n\nTo test your new *Name* intent, in the Dialogflow simulator, type \"What's\nyour name?\" and press enter.\n\nYour agent can respond to your question correctly even when you ask questions\nthat aren't exactly the same as the training phrases (for example, \"What's your\nname?\" versus \"What is your name?\").\n\nDialogflow uses training phrases to train a machine learning model, which helps\nthe agent match user utterances to the correct intents."]]