[null,null,["最后更新时间 (UTC):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)."]]