對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
索引範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以在這個頁面中,依據支援的 Actions on Google 功能尋找範例。
選取下方範例,即可在 Actions on Google GitHub 存放區中查看完整範例。您可以從 GitHub 存放區複製或下載範例,協助您建構自己的動作。
GitHub 上的範例
下表列出我們的範例 Actions 專案。您可以根據想在範例中使用的功能,篩選這個表格。
智慧型住宅
想讓使用者透過 Google 助理控制 IoT 裝置嗎?請參閱智慧型住宅範例。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-24 (世界標準時間)。
[[["容易理解","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-24 (世界標準時間)。"],[[["\u003cp\u003eThis page provides access to a variety of Actions on Google sample projects that demonstrate different features.\u003c/p\u003e\n"],["\u003cp\u003eYou can browse and download these samples from the Actions on Google GitHub repository to help you build your own Actions.\u003c/p\u003e\n"],["\u003cp\u003eSamples are categorized by features such as Account Linking, Transactions, Interactive Canvas, and more, allowing you to easily find relevant examples.\u003c/p\u003e\n"],["\u003cp\u003eSmart home developers can find separate samples for controlling IoT devices with Google Assistant on a dedicated smart home page.\u003c/p\u003e\n"]]],[],null,["Use this page to find samples by the Actions on Google features they support.\nSelect a sample below to view the full sample in the\n[Actions on Google GitHub repo](https://github.com/actions-on-google). From the GitHub repo,\nyou can clone or download samples to help you build your own Actions.\n\nSamples on GitHub\n\nThe following table lists our sample Actions projects. You can filter this table\nby the features you'd like to see used in the sample. \n\n| Sample | Description | Highlighted features |\n|----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [Hello World](https://github.com/actions-on-google/actions-builder-hello-world-nodejs) | A simple Action that responds to the user with \"Hello world\" from both a scene condition and a webhook event handler. | Scene, webhook, simple response |\n| [Conversation components](https://github.com/actions-on-google/actions-builder-conversation-components-nodejs) | An Action that responds with a different conversation component based on what the user asks for. This Action contains a mixture of simple, rich, visual selection, and media responses. | Basic card, button, image card, list, collection, media response, simple response, table card |\n| [Interactive Canvas](https://github.com/actions-on-google/actions-builder-canvas-nodejs) | An Action that renders a spinning triangle in full screen using Interactive Canvas. This Actions project also contains a simple web app used for Interactive Canvas. | Interactive Canvas |\n| [Account linking](https://github.com/actions-on-google/actions-builder-account-linking-nodejs) | An Action that simulates a tea shop where users with linked accounts can place fictional orders and store their preferences. In the Action, users can transition to a conversation flow that allows them to link accounts. | Account linking |\n| [Transactions](https://github.com/actions-on-google/actions-builder-transactions-nodejs) | An Action that lets a user place an order using two different payment options (Google Pay and merchant-managed) and receive a receipt. The Action checks for transaction requirements and also demonstrates different aspects of building a transaction flow. | Transactions |\n| [Daily updates and push notifications](https://github.com/actions-on-google/actions-builder-updates-nodejs) | An Action that allows users to subscribe to daily updates or push notifications for a fictional gym class using provided system scenes. | Daily updates, push notifications |\n| [Facts About Google](https://github.com/actions-on-google/actions-builder-facts-about-google-nodejs) | An Action that presents a user with facts about Google in different categories based on the user's response. Users can choose to learn about Google's history or about its headquarters. | Actions Builder, rich responses, multi-modal responses, Interactive Canvas, custom types, scene transitions, deep links |\n| [Localization](https://github.com/actions-on-google/actions-builder-question-l10n-nodejs) | An Action that demonstrates supporting localization and organizing a project to support multiple languages and locales. | Localization |\n| [Custom NLU](https://github.com/actions-on-google/actions-builder-custom-nlu-nodejs) | An Action that demonstrates how to organize an Actions project to support your own custom natural language understanding (NLU) in webhook code. | Custom NLU |\n\nSmart home\n\nWant to enable users to control your IoT device with Google Assistant?\nCheck out our [smart home samples](https://developers.google.com/assistant/smarthome/samples)."]]