Loại tiện ích bổ sung
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.
Trang này cung cấp thông tin tổng quan về hai loại tiện ích bổ sung mà bạn có thể tạo: Tiện ích bổ sung của Google Workspace và Tiện ích bổ sung của Trình chỉnh sửa. Các loại tiện ích bổ sung này khác nhau về ứng dụng mà chúng mở rộng, cách chúng được tạo và những hạn chế mà chúng có.
Tiện ích bổ sung cho Google Workspace
Tiện ích bổ sung của Google Workspace là thế hệ tiện ích bổ sung mới nhất và cung cấp nhiều chức năng, bao gồm:
Chỉ cần tạo một tiện ích bổ sung cho nhiều ứng dụng Google Workspace: Thay vì tạo các tiện ích bổ sung riêng biệt cho từng ứng dụng Google Workspace, bạn có thể tạo và quản lý một tiện ích bổ sung duy nhất của Google Workspace hoạt động trên toàn bộ Google Workspace.
Tiện ích bổ sung của Google Workspace có thể mở rộng các ứng dụng lưu trữ sau:
- Gmail
- Lịch Google
- Google Chat (Bản dùng thử cho nhà phát triển)
- Google Tài liệu
- Google Drive
- Google Meet
- Google Trang tính
- Google Trang trình bày
Tăng mức độ nhận biết thương hiệu: Theo mặc định, biểu tượng của tiện ích bổ sung sẽ xuất hiện trong bảng điều khiển bên phải của các ứng dụng lưu trữ tiện ích bổ sung.
Tạo trải nghiệm trên trang chủ: Bạn có thể tạo trang chủ riêng cho từng ứng dụng Google Workspace mà tiện ích bổ sung của bạn mở rộng hoặc sử dụng cùng một trang chủ cho nhiều ứng dụng.
Phản ánh bối cảnh của người dùng trong tiện ích bổ sung: Bạn có thể thiết kế tiện ích bổ sung Google Workspace để hiển thị các giao diện dành riêng cho ứng dụng lưu trữ của tiện ích bổ sung. Ví dụ: tiện ích bổ sung có thể hiển thị thông tin từ một email hoặc sự kiện trên lịch, hoặc đề xuất một hành động dựa trên trang ứng dụng Google Workspace hiện tại.
Sử dụng giao diện chuẩn hoá: Tạo giao diện người dùng từ các phần tử tiện ích tích hợp do dịch vụ Card
Apps Script cung cấp. Bạn không cần có bất kỳ kiến thức chuyên môn nào về HTML hoặc CSS để xác định các giao diện này.
Mở rộng ứng dụng Gmail dành cho máy tính và thiết bị di động: Nếu một tiện ích bổ sung của Google Workspace mở rộng Gmail, bạn có thể sử dụng tiện ích đó trong cả phiên bản Gmail dành cho máy tính và thiết bị di động. Nếu tạo một tiện ích bổ sung Google Workspace mở rộng Gmail, bạn không cần thiết kế một phiên bản di động riêng cho tiện ích bổ sung đó. Mọi nơi đều sử dụng cùng một giao diện.
Sử dụng thời gian chạy mà bạn muốn. Bạn có thể phát triển tiện ích bổ sung Google Workspace bằng cơ sở hạ tầng lưu trữ, chuỗi công cụ phát triển, hệ thống kiểm soát nguồn, ngôn ngữ lập trình và thư viện mã mà bạn muốn.
Tiện ích bổ sung dành cho trình chỉnh sửa
Tiện ích bổ sung của trình chỉnh sửa mở rộng một trong các ứng dụng Google Tài liệu, chẳng hạn như Tài liệu, Trang tính, Trang trình bày hoặc Biểu mẫu. Mỗi loại tiện ích bổ sung của Trình chỉnh sửa (ví dụ: tiện ích bổ sung của Trang tính) có thể có một bộ chức năng, hạn chế và điểm cần lưu ý đặc biệt theo từng loại. Khi tạo tiện ích bổ sung cho Trình chỉnh sửa, bạn cần hiểu rõ những thông tin cụ thể về Trình chỉnh sửa này. Để biết thêm thông tin chi tiết về các tiện ích bổ sung cho một số Trình chỉnh sửa cụ thể, hãy xem các phần tương ứng:
Tiện ích bổ sung cho trình chỉnh sửa có thể tự động hoá các tác vụ thường dùng của trình chỉnh sửa, chẳng hạn như tạo tệp, chỉnh sửa, định dạng và di chuyển dữ liệu giữa các ứng dụng.
Giao diện tiện ích bổ sung dành cho trình chỉnh sửa có thể tuỳ chỉnh cao cho các tác vụ đang thực hiện.
Tiện ích bổ sung của trình chỉnh sửa là lựa chọn lý tưởng để tự động hoá các tác vụ trong Google Tài liệu, Trang tính, Trang trình bày hoặc Biểu mẫu cho mục đích sử dụng cá nhân hoặc nội bộ. Đối với các tiện ích bổ sung yêu cầu khả năng quy mô lớn cần xử lý nhiều người dùng, yêu cầu độ trễ thấp hoặc yêu cầu kiểm soát hoàn toàn cơ sở hạ tầng của bạn, hãy cân nhắc việc tạo tiện ích bổ sung Google Workspace trên một môi trường thời gian chạy khác để kiểm soát tốt hơn cơ sở hạ tầng, quy trình triển khai và phát hành.
Tiện ích bổ sung cho trình chỉnh sửa có hành vi khác với tiện ích bổ sung cho Google Workspace theo những cách sau:
- Các tiện ích bổ sung cho trình chỉnh sửa có thể tạo giao diện bao gồm các mục trong trình đơn, hộp thoại và thanh bên. Hộp thoại và thanh bên của tiện ích bổ sung được xác định bằng HTML và CSS tiêu chuẩn.
- Tiện ích bổ sung của trình chỉnh sửa có các quy tắc uỷ quyền đặc biệt vì chúng tạo, sửa đổi hoặc tương tác với các tệp trong Google Drive. Bạn cần hiểu rõ về quy trình uỷ quyền tiện ích bổ sung của Trình chỉnh sửa khi phát triển một tiện ích bổ sung của Trình chỉnh sửa.
- Các tệp được tạo và cập nhật trong mỗi trình chỉnh sửa đều có cấu trúc cụ thể. Ví dụ: bản trình bày trên Google Trang trình bày bao gồm các trang có thể là trang trình bày, trang mẫu hoặc bố cục. Bạn nên hiểu rõ các cấu trúc tệp này, vì các tiện ích bổ sung thường tương tác với chúng khi đọc hoặc chỉnh sửa tệp.
- Các tiện ích bổ sung của Editor chỉ hoạt động trong ứng dụng máy tính chứ không hoạt động trên Android hoặc iOS.
- Bạn phải triển khai tiện ích bổ sung cho trình chỉnh sửa trong Apps Script.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-26 UTC."],[[["\u003cp\u003eGoogle Workspace add-ons offer a unified solution, extending functionalities across multiple Google Workspace applications like Gmail, Calendar, and Docs with a single add-on.\u003c/p\u003e\n"],["\u003cp\u003eEditor add-ons focus on enhancing specific Google Editors (Docs, Sheets, Slides, Forms) with custom interfaces and automation capabilities but are limited to desktop use.\u003c/p\u003e\n"],["\u003cp\u003eWhile Workspace add-ons utilize standardized interfaces and work seamlessly across platforms, Editor add-ons require HTML/CSS knowledge and adhere to specific authorization rules.\u003c/p\u003e\n"],["\u003cp\u003eBoth add-on types provide distinct advantages; Workspace add-ons enhance cross-application workflows, while Editor add-ons offer deep, editor-specific customization and task automation.\u003c/p\u003e\n"]]],["There are two add-on types: Google Workspace and Editor add-ons. Google Workspace add-ons offer a single build for multiple apps (Gmail, Calendar, Chat, Docs, Drive, Sheets, Slides), and they feature standardized interfaces, mobile and desktop compatibility, and customizable homepages. Editor add-ons extend Docs, Sheets, Slides, and Forms, allowing for highly customizable interfaces using HTML and CSS, but require specific authorization and only function on desktop. They are built to automate common editor tasks.\n"],null,["This page provides a general overview of the two types of add-ons\nyou can build:\n*Google Workspace add-ons* and *Editor add-ons*. These\nadd-on types differ in what applications they extend,\nhow they are created, and what restrictions they have.\n\nGoogle Workspace add-ons\n\n*Google Workspace add-ons* are the latest generation of add-ons, and\nprovide many capabilities, including:\n\n- **Build just one add-on for multiple\n Google Workspace apps**: Instead of creating separate\n add-ons for\n each Google Workspace application, you can build and manage a single\n Google Workspace add-on that works across Google Workspace.\n A Google Workspace add-on can extend the following host applications:\n\n - Gmail\n - Google Calendar\n - Google Chat (Developer Preview)\n - Google Docs\n - Google Drive\n - Google Meet\n - Google Sheets\n - Google Slides\n- **Increase your brand awareness**: Add-ons icons are by\n default visible in the right-side panel of the\n add-on's host apps.\n\n- **Build homepage experiences** : You can create individual [homepages](/workspace/add-ons/concepts/homepages)\n for each Google Workspace app your add-on\n extends, or use the same homepage for multiple apps.\n\n- **Reflect the user's context in your add-on**: You\n can design your Google Workspace add-on to show interfaces specific to the\n add-on's host app. For example, your\n add-on can display info from an email or calendar\n event, or suggest an action based on the current Google Workspace app\n page.\n\n- **Use standardized interfaces** : Construct user interfaces from built-in\n widget elements provided by the Apps Script\n [`Card`](/apps-script/reference/card-service/card) service. You don't need\n any expertise with HTML or CSS to define these interfaces.\n\n- **Extend desktop and mobile clients for Gmail**: If a\n Google Workspace add-on extends Gmail, you can use it in both the\n desktop and mobile versions of Gmail. If you build a\n Google Workspace add-on that extends Gmail, you don't need to\n design a separate mobile version of the add-on. The\n same interface is used everywhere.\n\n- **Use your preferred runtime.** You can develop Google Workspace add-ons with your\n preferred hosting infrastructure, development tool chain, source control\n system, coding language, and code libraries.\n\nEditor add-ons\n\n*Editor add-ons* extend one of the Google Editor applications,\nsuch as Docs, Sheets, Slides, or\nForms. Each Editor add-on type (for\nexample, Sheets add-ons) can have its own set of\ntype-specific capabilities, restrictions, and special considerations. When\nbuilding Editor add-ons, it's important to understand these\nEditor-specific details. For more details on add-ons for specific\nEditors, see the corresponding sections:\n\n- [Google Docs](/workspace/add-ons/editors/docs)\n- [Google Forms](/workspace/add-ons/editors/forms)\n- [Google Sheets](/workspace/add-ons/editors/sheets)\n- [Google Slides](/workspace/add-ons/editors/slides)\n\nEditor add-ons can automate common editor tasks such as file\ncreation, editing, formatting, and moving data between applications.\nEditor add-on interfaces are highly-customizable for\nthe tasks at hand.\n\nEditor add-ons are ideal for automating tasks within Google\nDocs, Sheets, Slides, or\nForms for individual or internal use. For add-ons\nrequiring large-scale capabilities that need to handle many users, require low\nlatency, or demands full control over your infrastructure, consider building a\nGoogle Workspace add-ons on a [different runtime](/workspace/add-ons/guides/alternate-runtimes)\nenvironment for better control over infrastructure, deployment and release\nprocesses.\n\nEditor add-ons behave differently from Google Workspace add-ons in the\nfollowing ways:\n\n- Editor add-ons can create interfaces consisting of menu items, dialogs, and sidebars. Add-ons dialogs and sidebars are defined using standard [HTML and\n CSS](/workspace/add-ons/concepts/html-interfaces).\n- Editor add-ons have special authorization rules because they create, modify, or otherwise interact with files within Google Drive. It is important to understand the [Editor add-on\n authorization](/workspace/add-ons/concepts/editor-auth-lifecycle) while developing an Editor add-on.\n- Files created and updated in each editor have specific structures. For example, Google Slides presentations are composed of pages which can be slides, masters, or layouts. You should understand these file structures, as add-ons often interact with them when reading or editing files.\n- Editor add-ons only function in desktop clients, not Android or iOS.\n- Editor add-ons must be implemented in Apps Script."]]