تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إنّ "الإجراءات القائمة على المحادثة" توسّع وظائف "مساعد Google" من خلال السماح لك بإنشاء تجارب أو محادثات مخصّصة لمستخدمي "مساعد Google". في المحادثة، تعالج "الإجراء المحاور" الطلبات الواردة من "مساعد Google" وتعرض الردود التي تتضمن مكوّنات صوتية ومرئية. يمكن "لإجراءات المحادثة" أيضًا
التواصل مع خدمات الويب الخارجية باستخدام الردود التلقائية على الويب لمزيد من منطق المحادثات أو الأنشطة التجارية قبل عرض الرد.
الشكل 1. مثال على إجراء محادثة
أهمية الإنشاء
تتطلّب واجهات الكمبيوتر النموذجية إدخالاً منظّمًا ويمكن التنبؤ به لتعمل بشكل سليم، ما يجعل استخدام هذه الواجهات أمرًا غير طبيعي وقد يكون صعبًا في بعض الأحيان. إذا لم يتمكن المستخدمون من معرفة هذه المدخلات المهيكلة بسهولة،
فسيواجهون صعوبة في معرفة ما يجب القيام به.
على سبيل المثال، ضع في اعتبارك طلب مستخدم سهلاً مثل "كيف تبدو توقعات الطقس اليوم؟" قد يسأل آخرون أيضًا، "كيف حال الطقس الآن؟"
أو "كيف ستكون درجة الحرارة في القاهرة غدًا؟" حتى مع هذا السؤال البسيط، نلاحظ أنّه يصعب تنفيذ تجارب المحادثات، لأنّ تفسير اللغة الطبيعية ومعالجتها يتطلّب برنامجًا لغويًا قويًا جدًا قادر على فهم الفروقات الدقيقة في اللغة. سيتعين على التعليمات البرمجية معالجة جميع هذه الأنواع المختلفة من الطلبات (وربما طلبات أخرى كثيرة) لتنفيذ المنطق نفسه: البحث عن بعض المعلومات المتوقعة لفترة ما وموقع. لهذا السبب، تتطلب واجهة الكمبيوتر التقليدية طلبات إدخال معيارية ومعروفة على الإضرار بتجربة المستخدم، لأنه من الأسهل التعامل مع المدخلات ذات البنية العالية.
ومع ذلك، عند إنشاء "المهام القائمة على المحادثة"، يتعامل "مساعد Google" مع تقنية فهم اللغات الطبيعية (NLU) نيابةً عنك، وبالتالي يمكنك إنشاء واجهات حوارية مفتوحة بسهولة. تتيح لك أدوات الواجهة هذه فهم الفروق الدقيقة والمتنوعة للّغة البشرية وترجمة ذلك إلى معنى عادي ومنظّم يمكن لتطبيقاتك وخدماتك فهمه. لنلقِ نظرة على كيفية تعامل "الإجراء" مع الأمثلة السابقة لطلبات توقعات الطقس.
الشكل 1. مطابقة الغرض من لغات NLU
للبحث عن توقعات الطقس، قد تحتاج إلى بعض المعلومات،
مثل الوقت الذي يريد المستخدمون فيه توقع الطقس وموقعهم. ومع ذلك، كما ذكرنا سابقًا، قد يطلب مستخدمون مختلفون توقّعات بطريقة مختلفة. يمكن لخدمة "مساعد Google" فهم هذه الاختلافات وترجمتها إلى هدف عادي من المستخدمين للاطّلاع على التوقّعات. يمكنها بعد ذلك تحليل طلب المستخدم للبيانات
ذات الصلة التي تحتاجها لتنفيذ الطلب. في هذه الحالة، هذا هو الوقت والموقع المطلوبين
للمستخدم لتوقعات الطقس. أخيرًا، يمكنك استخدام هذه البيانات للبحث عن حالة الطقس باستخدام واجهة برمجة تطبيقات REST API المتاحة للجميع وعرض حالة الطقس إلى المستخدم في شكل رسالة مطالبة.
حالات الإنشاء
تعمل "المهام القائمة على المحادثة" على أفضل وجه في حالات الاستخدام البسيطة التي تتيح للمستخدمين إنجاز المهام بسرعة،
بالإضافة إلى حالات الاستخدام الشاملة التي تتم من خلال إعادة توجيه الصوت.
غالبًا ما تندرج إجراءات المحادثة الجيدة ضمن الفئات العامة التالية:
أسئلة يستطيع المستخدمون الإجابة عنها بسهولة: الإجراءات التي يمكن إنجازها باستخدام مدخلات مألوفة مثل
الأوقات أو التواريخ، مثل حجز رحلة جوية.
إجراءات سريعة ومفيدة في الوقت نفسه: عادةً ما يمنح ذلك المستخدمين فائدة فورية
لوقت قصير جدًا يقضونه، مثل معرفة متى سيلعب فريقهم الرياضي المفضل
في المرة التالية.
الإجراءات الأكثر ملاءمةً للصوت: وعادةً ما تكون هذه هي المهام التي تريد ممارستها بدون لمس الجهاز، مثل تلقّي التدريب أثناء اليوجا أو التمارين الخفيفة أو الألعاب المصمّمة للتفاعل مع الصوت أولاً.
كيفية الإنشاء
تتيح لك "المهام مع مساعد Google" إنشاء "إجراءات قائمة على المحادثة" إما باستخدام حزمة تطوير البرامج (SDK) للإجراءات
أو "أداة إنشاء الإجراءات" أو كليهما بالتبادل. تتيح لك هذه الميزة اختيار أفضل سير عمل للتطوير لاحتياجاتك، مع منحك المرونة
للتبديل ذهابًا وإيابًا عند الحاجة.
توفّر حزمة تطوير البرامج (SDK) لحزمة "المهام مع مساعد Google" مخططًا موحّدًا يستند إلى ملفات لإنشاء المهام،
ومكتبات للتفاعل مع "مساعد Google"، وواجهة سطر الأوامر لنشر
مشروع الإجراءات وإدارته. تم تصميم "أداة إنشاء المهام" فوق التكنولوجيا نفسها المتاحة
في حزمة تطوير البرامج (SDK) للإجراءات، وتتيح لك إنشاء نموذج باستخدام بيئة تطوير متكاملة (IDE) سهلة الاستخدام وفعّالة.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eConversational Actions on Google Assistant let you create custom voice experiences for users by handling requests and returning audio/visual responses.\u003c/p\u003e\n"],["\u003cp\u003eAssistant's natural language understanding (NLU) handles language nuances, making it easier to build conversational interfaces compared to traditional structured input methods.\u003c/p\u003e\n"],["\u003cp\u003eConversational Actions are best for simple, quick tasks, or immersive, voice-forward experiences.\u003c/p\u003e\n"],["\u003cp\u003eYou can build Actions with the Actions SDK, Actions Builder, or both, offering flexibility in your development workflow.\u003c/p\u003e\n"]]],["Conversational Actions create custom Google Assistant experiences, handling user requests and returning responses with audio and visual components. Assistant manages natural language understanding, translating varied user inputs into structured intents. Actions excel in tasks requiring simple, familiar input, providing quick user benefits, or leveraging voice-first interactions. Developers can build using the Actions SDK, Actions Builder, or a mix of both, offering flexibility in development workflows. The process includes defining user intents, parsing data, and utilizing webhooks to generate customized responses.\n"],null,["# Conversational Actions extend the functionality of Google Assistant by allowing you to\ncreate custom experiences, or conversations, for users of Google\nAssistant. In a conversation, your Conversational Action handles requests from\nAssistant and returns responses with audio and visual components. Conversational Actions\ncan also communicate with external web services with webhooks for added\nconversational or business logic before returning a response.\n**Figure 1.** An example of a Conversational Action\n\nWhy build\n---------\n\nTypical computer interfaces require structured and predictable input to\nfunction properly, which makes the use of these interfaces unnatural and\nsometimes difficult. If users can't easily figure out this structured input,\nthey'll have a hard time figuring out what to do.\n\nFor example, consider an easy user request like, *\"What's the forecast like\ntoday?\"* Other users might also ask, *\"What's the weather like right now?\"*\nor *\"What's the temperature like in San Francisco tomorrow?\"* Even with this\nsimple question, you can see that conversational experiences are hard to\nimplement, because interpreting and processing natural language requires a\nvery robust language parser that's capable of understanding the nuances of\nlanguage. Your code would have to handle all these different types of requests\n(and potentially many more) to carry out the same logic: looking up some\nforecast information for a time and location. For this reason, a traditional\ncomputer interface requires well-known, standard input requests to the detriment\nof the user experience, because it's easier to handle highly structured input.\n\nHowever, when you build Conversational Actions, Assistant handles the\nnatural language understanding (NLU) for you, so you can build open-ended,\nconversational interfaces easily. These interface tools let you understand the\nvast and varied nuances of human language and translate that to standard and\nstructured meaning that your apps and services can understand. Let's take a look\nat how an Action might handle the previous examples for weather forecast\nrequests.\n**Figure 1**. NLU intent matching\n\nTo look up a weather forecast, you might need a few pieces of information,\nlike the time users want the forecast for and their location. However, as we\npreviously mentioned, different users might request a forecast in different\nway. The Assistant can understand these differences and translate them to a\nstandard user intent to get the forecast. It can then parse the user's request\nfor the pertinent data you need to fulfill the request. In this case, that's\nthe user's desired time and location for the weather forecast. Finally, you\ncan use this data to look up the weather with a public REST API and return the\nweather to the user in the form of a prompt.\n\nWhen to build\n-------------\n\nConversational Actions work best for simple use cases that let users get things done\nquickly as well as for immersive use cases that are voice-forward.\nGood Conversational Actions often fall into these general categories:\n\n- **Things people can easily answer.** Actions that can be accomplished with familiar input like times or dates, like booking a flight.\n- **Quick, but useful Actions.** These usually give users immediate benefit for very little time spent, like finding out when their favorite sports team plays next.\n- **Actions that are inherently better suited for voice.** These are typically things you want to do hands-free, like receiving coaching during yoga or light exercise or a game that's been designed for voice-first interactions.\n\nHow to build\n------------\n\nActions on Google lets you build Conversational Actions with either the Actions\nSDK, Actions Builder, or both interchangeably. This feature lets you choose the\nbest development workflow for your needs, while giving you the flexibility of\nswitching back and forth when needed.\n\nThe Actions SDK provides a standardized, file-based schema to build your Actions,\nlibraries to interact with Assistant, and a CLI to deploy and manage your\nActions project. Actions Builder is built on top of the same technology\nas the Actions SDK and lets you build with an easy-to-use and powerful IDE.\n\nSee the [Build overview](/assistant/conversational/build) for more information.\n\nNext steps\n----------\n\nCheck out the following resources to start building now:\n\n- [**Quick start guide**](/assistant/conversational/quickstart) - Get a quick introduction on how to set up your environment and start developing with Actions SDK and Builder.\n- [**Codelabs**](/assistant/conversational/codelabs) - Codelabs offer detailed and in-depth walkthroughs on how to build Actions for the Google Assistant.\n- [**Samples**](/assistant/conversational/samples) - Get all of our samples on Github to start experimenting now."]]