تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
استخدم خدمات Firebase المتنوعة لإعداد وظائف الإجراءات الخاصة بك وتشغيلها وتوسيع نطاقها.
وظائف السحابة الإلكترونية لبرنامج Firebase
يُحدِّد تنفيذ الطلب وظيفة الإجراء وعناصر المحادثة. إذا كان الإجراء الخاص بك يتفاعل مع واجهات برمجة التطبيقات الخارجية أو يتطلّب منطقًا معقّدًا أو يحتاج إلى القراءة والتخزين في قاعدة بيانات، سيحتاج إلى تنفيذ. باستخدام وظائف السحابة الإلكترونية لبرنامج Firebase، تتم استضافة تنفيذ الإجراء الخاص بك كخدمة ويب تستخدم بروتوكول HTTP، ما يجعل عملية النشر والصيانة سريعة وسهلة.
في حين أنه يمكنك استخدام أي خدمة ويب HTTP لتنفيذها في "المهام مع مساعد Google"، تُعدّ وظائف السحابة الإلكترونية لبرنامج Firebase إحدى أسهل الطرق لتحديد تنفيذ الإجراء الخاص بك:
يمكنك نشر نقطة النهاية بسرعة وبسلاسة، مع تقليل الوقت المستغرق في ضبط إعدادات واجهة سطر الأوامر (CLI) أو استيراد مكتبات إضافية.
يمكنك الدمج بسهولة مع خدمات السحابة الإلكترونية الأخرى لمنصة Firebase مثل Cloud Firestore.
يتم تغيير حجم موارد الحوسبة تلقائيًا وفقًا لاستخدام الإجراء الخاص بك، لذا لا داعي للقلق بشأن صيانة الخادم على الإطلاق.
إعداد توصيل الطلبات بدون تقديم بطاقة ائتمان أو معلومات فوترة
تستخدم العديد من المهام محتوى الوسائط التفاعلية المتقدّمة في محادثاتها، وذلك بهدف تحسين تجربة المستخدم. وإذا لم يفعلوا ذلك، فيجب عليهم ذلك! عادةً ما تصبح التطبيقات التي تستخدم الصور والمقاطع الصوتية بدلاً من النصوص أكثر حيويةً ولا تُنسى، ما يؤدي إلى زيادة تفاعل المستخدمين والاحتفاظ بهم.
تسهِّل ميزة "استضافة Firebase" استضافة ملفات الوسائط المتعددة التفاعلية الثابتة لاستخدامها في الإجراء الخاص بك. يمكنك الاطّلاع على دليل البدء لاستخدام استضافة Firebase للحصول على مزيد من المعلومات.
إذا كنت مستخدمًا حاليًا في Firebase، يمكنك أيضًا بسهولة إعادة استخدام أي مواد عرض استضَافتها لتطبيقات الويب أو الأجهزة الجوّالة.
يمكنك الاطّلاع على هذا النموذج الذي يستخدم "استضافة Firebase" والتعرّف على مزيد من المعلومات حول كيفية استخدام ذلك لاستضافة ملفات الإجراءات من خلال الانتقال إلى مستندات استضافة Firebase.
التخزين في السحابة الإلكترونية لبرنامج Firebase
إذا كان الإجراء الخاص بك ينشئ ملفات خاصة بالمستخدمين، ستمنحك خدمة Cloud Storage لبرنامج Firebase مكانًا لتخزينها. عليك السماح للمستخدمين بالوصول إلى المحتوى الذي تنشئه لهم أينما كانوا، سواء كان ذلك سجلّاً لردود الإجراء الخاص بك في ملف نصي أو ملف صورة.
وهذا يعني أيضًا أن بيانات المستخدم يمكن أن تظل موجودة عبر أنظمة أساسية متعددة. على سبيل المثال، يُنشئ تطبيق الويب صورة لأحد المستخدمين. باستخدام مساحة التخزين، يمكن للمستخدم نفسه الوصول إلى هذه الصورة من خلال الإجراء الخاص بك. عند استخدام تطبيقك المتوافق مع الأجهزة الجوّالة، إذا كان الاتصال متقطعًا، سيتوقف تنزيل ملفات المستخدم مؤقتًا ثم يتم استئنافها عندما تتحسن الإشارة.
قد يتطلب الإجراء الخاص بك خلفية لتخزين البيانات البسيطة. Cloud Firestore هو حلّ مستضاف على السحابة الإلكترونية يعمل على تخزين البيانات ومزامنتها.
توفّر Cloud Firestore تكاملاً سلسًا مع منتجات Firebase وGoogle Cloud Platform الأخرى، بما في ذلك Cloud Functions، ما يعني أنّها مثالية للاستخدام مع "المهام مع مساعد Google".
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eFirebase services like Cloud Functions, Hosting, Storage, and Firestore can enhance your Actions on Google experience.\u003c/p\u003e\n"],["\u003cp\u003eCloud Functions for Firebase enables you to easily deploy, maintain, and scale your Action's logic and integrations with other services.\u003c/p\u003e\n"],["\u003cp\u003eFirebase Hosting simplifies the process of using rich media content (images, sound clips) within your Actions to create a more engaging user experience.\u003c/p\u003e\n"],["\u003cp\u003eCloud Storage for Firebase provides a secure and accessible location to store and manage user-specific data and files generated by your Action.\u003c/p\u003e\n"],["\u003cp\u003eCloud Firestore offers a cloud-based database solution to store and synchronize data for your Action, integrating seamlessly with other Firebase services.\u003c/p\u003e\n"]]],["Firebase services enhance Actions' functionality. Cloud Functions for Firebase host Actions' fulfillment as an HTTP service, enabling quick deployment and integration with other Firebase services like Cloud Firestore for data storage. Firebase Hosting simplifies hosting rich media for engaging user experiences. Cloud Storage for Firebase allows storing user-specific files, ensuring cross-platform data persistence. These tools streamline Actions development and management, from deployment to data handling.\n"],null,["# Firebase services\n\nUse various Firebase services to set up, run, and extend the functionality of\nyour Actions.\n\nCloud Functions for Firebase\n----------------------------\n\nFulfillment defines your Action's functionality and conversational elements. If your Action interacts with external APIs, requires complex logic, or needs to read and store to a database, it will need fulfillment. With Cloud Functions for Firebase, your Action's fulfillment is hosted as an HTTP web service, making deployment and maintenance quick and easy.\n\nWhile you can use any HTTP web service for fulfillment on Actions on Google, Cloud Functions for Firebase is one of the easiest ways to define fulfillment for your Action:\n\n1. Deploy your endpoint rapidly and seamlessly, with minimal time spent configuring CLI settings or importing additional libraries.\n2. Effortlessly integrate with other Firebase cloud services such as [Cloud Firestore](https://firebase.google.com/products/firestore/).\n3. Computing resources are automatically scaled according to your Action's usage, so you don't need to worry about server maintenance at all.\n4. Setup fulfillment without providing a credit card or billing information.\n\n| **Note:** Global variables may be cached across function executions. See more information on [function lifespans](//cloud.google.com/functions/docs/concepts/exec#function_instance_lifespan).\n| **Note:** While the free version of Firebase is perfect for creating and hosting your fulfillment, it does not allow for outbound network calls. If you need this functionality, you will want to upgrade to the [Blaze plan](https://firebase.google.com/pricing/).\n\nTo get started, visit the docs for [Cloud Functions for Firebase](https://firebase.google.com/docs/functions/).\n\nFirebase Hosting\n----------------\n\nMany Actions use rich media content in their conversations, to improve the user experience. And if they don't, they should! Apps that use images and sound clips rather than just text typically end up being much more vibrant and memorable, and as a result see higher engagement and retention among users.\n\nFirebase Hosting makes it extremely simple to host static rich media files for use in your Action. See the [Firebase Hosting get started guide](https://firebase.google.com/docs/hosting/quickstart) for more information.\n\nIf you are an existing Firebase user, you can also easily re-use any assets you have hosted for your mobile or web apps.\n\nCheck out [this](https://github.com/actions-on-google/dialogflow-number-genie-nodejs) sample which uses Firebase Hosting and learn more about how this can be used to host your Action files, by visiting our [Firebase Hosting docs](https://firebase.google.com/docs/hosting/).\n\nCloud Storage for Firebase\n--------------------------\n\nIf your Action generates user-specific files, Cloud Storage for Firebase will give you a place to store it. Whether it's a log of your Action's responses in a text file or an image file, allow your users to access content you create for them, wherever they are.\n\nThis also means your user's data can persist across multiple platforms. For instance, your web app generates an image for a user. By using storage, that image is accessible to that same user, through your Action. When using your mobile app, if connectivity is spotty, the download of the user's files will pause and then resume when their signal improves.\n\nTo learn more, visit our [Cloud Storage for Firebase docs](https://firebase.google.com/docs/storage/).\n\nCloud Firestore\n---------------\n\nYour Action may require a backend to store simple data. Cloud Firestore is a cloud-hosted solution that stores and syncs data.\n\nCloud Firestore offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions, which means its perfect for use with Actions on Google.\n\nLearn more by visiting the [Cloud Firestore docs](https://firebase.google.com/docs/firestore)."]]