Kể từ ngày 13 tháng 6 năm 2023, Hành động trò chuyện không còn được dùng nữa. Để biết thêm thông tin, hãy xem phần Hành động trò chuyện ngừng hoạt động.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hãy sử dụng trang này để tìm các mẫu theo những tính năng mà Actions on Google hỗ trợ.
Chọn một mẫu bên dưới để xem mẫu đầy đủ trong kho lưu trữ Actions on Google trên GitHub. Từ kho lưu trữ GitHub, bạn có thể sao chép hoặc tải các mẫu xuống để giúp bạn tạo Hành động của riêng mình.
Các mẫu trên GitHub
Bảng sau đây liệt kê các dự án mẫu về Thao tác của chúng tôi. Bạn có thể lọc bảng này theo các tính năng mà bạn muốn xem trong mẫu.
Một Hành động phản hồi bằng một thành phần trò chuyện khác dựa trên yêu cầu của người dùng. Thao tác này chứa nhiều loại phản hồi như phản hồi đơn giản, phản hồi đa dạng, phản hồi trực quan và phản hồi bằng nội dung nghe nhìn.
Thẻ cơ bản, nút, thẻ hình ảnh, danh sách, bộ sưu tập, phản hồi đa phương tiện, phản hồi đơn giản, thẻ bảng
Một Thao tác kết xuất một hình tam giác xoay ở chế độ toàn màn hình bằng Interactive Canvas. Dự án Actions này cũng chứa một ứng dụng web đơn giản dùng cho Interactive Canvas.
Một Thao tác mô phỏng một cửa hàng trà, nơi người dùng có tài khoản được liên kết có thể đặt hàng ảo và lưu trữ các lựa chọn ưu tiên của họ.
Trong Thao tác, người dùng có thể chuyển sang một luồng trò chuyện cho phép họ liên kết tài khoản.
Một Hành động cho phép người dùng đặt hàng bằng hai phương thức thanh toán (Google Pay và do người bán quản lý) và nhận biên nhận. Thao tác này kiểm tra các yêu cầu về giao dịch, đồng thời minh hoạ nhiều khía cạnh của việc xây dựng một quy trình giao dịch.
Một Thao tác cho phép người dùng đăng ký nhận thông tin cập nhật hằng ngày hoặc thông báo đẩy cho một lớp học thể dục giả tưởng bằng các cảnh hệ thống được cung cấp.
Một Hành động cung cấp cho người dùng thông tin về Google theo nhiều danh mục dựa trên câu trả lời của người dùng. Người dùng có thể chọn tìm hiểu về lịch sử của Google hoặc về trụ sở chính của Google.
Actions Builder, phản hồi đa dạng, phản hồi đa phương thức, Interactive Canvas, các loại tuỳ chỉnh, chuyển cảnh, đường liên kết sâu
[null,null,["Cập nhật lần gần đây nhất: 2025-07-24 UTC."],[[["\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,["# Sample index\n\nUse 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-----------------\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----------\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)."]]