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.
Các thao tác cho phép người dùng tương tác với sản phẩm hoặc dịch vụ của bạn ngay trong Gmail.
Ví dụ: khi gửi thông báo rằng gói thuê bao tạp chí sắp hết hạn, bạn có thể đưa ra lựa chọn gia hạn ngay trong thông báo.
Bạn có thể khai báo các thao tác theo 2 cách: dưới dạng Thao tác trong ứng dụng hoặc Thao tác chuyển đến. Hiện tại, chúng tôi hỗ trợ nhiều loại hành động.
Hành động trong ứng dụng
Các Hành động trong ứng dụng được xử lý ngay trong Gmail mà không chuyển người dùng đến bất kỳ trang web nào khác. Các hành động như vậy bao gồm cả Hành động bằng một cú nhấp.
Thao tác bằng một lần nhấp
Có nhiều trường hợp mà hành vi dự kiến của người dùng là xác nhận một yêu cầu được xác định trước. Ví dụ: khi đăng ký một trang web, người dùng sẽ nhận được email yêu cầu xác nhận việc đăng ký. Tương tự, một trang web đề xuất phim hoặc nhạc có thể nhắc người dùng thêm các mục vào hàng đợi để thưởng thức sau.
Đối với các hoạt động tương tác phức tạp hơn, bạn có thể sử dụng Thao tác chuyển đến để cung cấp đường liên kết trực tiếp đến trang mà người dùng có thể thực hiện thao tác. Khi nhấp vào nút này, người dùng sẽ được chuyển hướng đến trang được chỉ định trong định nghĩa hành động.
Bạn nên sử dụng Go-To Actions cho những thao tác cần nhiều bước hoặc cần thu thập nhiều dữ liệu mà không thể thực hiện từ hộp thư đến. Ví dụ: một hãng hàng không gửi lời nhắc làm thủ tục có thể thêm một Thao tác truy cập để nhanh chóng đưa người dùng đến trang web của hãng hàng không đó để chọn chỗ ngồi hoặc yêu cầu nâng cấp.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[],[],null,["# What Are Actions?\n\nActions enable users to interact with your product or service right inside Gmail.\n\nFor instance, when you send a notification that a magazine subscription is about to expire, you can present the option to renew it right from the notification.\n\nActions can be declared in two ways: as In-App Actions or as Go-To Actions. Multiple types of actions are currently supported.\n\nIn-App Actions\n--------------\n\nIn-App Actions are handled in-place, inside Gmail, without sending the user to any other website. Such actions include One-Click Actions.\n\n### One-Click Action\n\nThere are many scenarios where the expected behavior from the user is to confirm a pre-defined request. For instance, when a user registers to a site, she receives an email asking her to confirm her registration. Similarly, a movie or music recommendations site could prompt a user to add items to a queue to enjoy later.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nOne-click actions in Gmail\n\n\u003cbr /\u003e\n\nTo learn more, see the [One-Click Action Reference](../reference/one-click-action).\n\nGo-To Actions\n-------------\n\nFor more complex interactions, Go-To Actions can be used to provide a direct link to the page where the action can be performed. Clicking the button redirects the user to the page specified in the action definition.\n\nGo-To Actions should be used for actions that require multiple steps, or significant data capture that can't be performed from the inbox. For instance, an airline sending a check-in reminder can add a Go-To Action to quickly take the user to the airline website to select a seat or request an upgrade.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nGo-to actions in Gmail\n\n\u003cbr /\u003e\n\nTo learn more, see the [Go-To Action Reference](../reference/go-to-action).\n\nFurther Reading\n---------------\n\n- [Declaring Actions](/workspace/gmail/markup/actions/declaring-actions)\n\n| **Note:** Some of the schemas used by Google are still going through the standardization process of [schema.org](http://schema.org), and therefore, may change in the future. [Learn More](/workspace/gmail/markup/reference/schema-org-proposals)."]]