ประเภทส่วนเสริม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้จะให้ภาพรวมทั่วไปของส่วนเสริม 2 ประเภทที่คุณสร้างได้ ได้แก่ ส่วนเสริมของ Google Workspace และส่วนเสริมของเครื่องมือแก้ไข ส่วนเสริมเหล่านี้
มีประเภทที่แตกต่างกันในแง่ของแอปพลิเคชันที่ขยาย
วิธีสร้าง และข้อจำกัดที่มี
ส่วนเสริมของ Google Workspace
ส่วนเสริมของ Google Workspace เป็นส่วนเสริมรุ่นล่าสุดและมีฟีเจอร์มากมาย เช่น
สร้างส่วนเสริมเพียงรายการเดียวสำหรับแอป Google Workspace หลายแอป: คุณสามารถสร้างและจัดการส่วนเสริม Google Workspace รายการเดียวที่ใช้ได้ใน Google Workspace แทนที่จะสร้างส่วนเสริมแยกต่างหากสำหรับแอปพลิเคชัน Google Workspace แต่ละแอป
ส่วนเสริมของ Google Workspace สามารถขยายแอปพลิเคชันโฮสต์ต่อไปนี้ได้
- Gmail
- Google ปฏิทิน
- Google Chat (เวอร์ชันตัวอย่างสำหรับนักพัฒนาซอฟต์แวร์)
- Google เอกสาร
- Google ไดรฟ์
- Google Meet
- Google ชีต
- Google สไลด์
เพิ่มการรับรู้ถึงแบรนด์: ไอคอนส่วนเสริมจะแสดงในแผงด้านขวาของแอปโฮสต์ของส่วนเสริมโดยค่าเริ่มต้น
สร้างประสบการณ์การใช้งานหน้าแรก: คุณสามารถสร้างหน้าแรก
สำหรับแต่ละแอป Google Workspace ที่ส่วนเสริม
ขยายการใช้งาน หรือใช้หน้าแรกเดียวกันสำหรับหลายแอปก็ได้
แสดงบริบทของผู้ใช้ในส่วนเสริม: คุณ
ออกแบบส่วนเสริม Google Workspace ให้แสดงอินเทอร์เฟซที่เจาะจงกับ
แอปโฮสต์ของส่วนเสริมได้ ตัวอย่างเช่น ส่วนเสริม
สามารถแสดงข้อมูลจากอีเมลหรือกิจกรรมในปฏิทิน
หรือแนะนำการดำเนินการตามหน้าแอป Google Workspace ปัจจุบันได้
ใช้อินเทอร์เฟซที่ได้มาตรฐาน: สร้างอินเทอร์เฟซผู้ใช้จากองค์ประกอบวิดเจ็ตในตัวที่ให้บริการโดยบริการ Card
ของ Apps Script
คุณไม่จำเป็นต้องมีความเชี่ยวชาญด้าน HTML หรือ CSS เพื่อกำหนดอินเทอร์เฟซเหล่านี้
ขยายไคลเอ็นต์บนเดสก์ท็อปและอุปกรณ์เคลื่อนที่สำหรับ Gmail: หากส่วนเสริมของ Google Workspace ขยาย Gmail คุณจะใช้ส่วนเสริมดังกล่าวได้ทั้งใน Gmail เวอร์ชันเดสก์ท็อปและอุปกรณ์เคลื่อนที่ หากสร้างส่วนเสริม Google Workspace ที่ขยาย Gmail คุณไม่จำเป็นต้องออกแบบส่วนเสริมเวอร์ชันอุปกรณ์เคลื่อนที่แยกต่างหาก
ใช้อินเทอร์เฟซเดียวกันได้ทุกที่
ใช้รันไทม์ที่ต้องการ คุณสามารถพัฒนาส่วนเสริมของ Google Workspace ด้วย
โครงสร้างพื้นฐานการโฮสต์ เครื่องมือพัฒนา ซอร์สคอนโทรล
ระบบ ภาษาการเขียนโค้ด และไลบรารีโค้ดที่คุณต้องการ
ส่วนเสริมของเอดิเตอร์
ส่วนเสริมของเครื่องมือแก้ไขจะขยายแอปพลิเคชันเครื่องมือแก้ไขของ Google อย่างใดอย่างหนึ่ง
เช่น เอกสาร ชีต สไลด์ หรือ
ฟอร์ม ส่วนเสริมของเอดิเตอร์แต่ละประเภท (เช่น ส่วนเสริมของชีต) อาจมีชุดความสามารถ ข้อจำกัด และข้อควรพิจารณาพิเศษเฉพาะประเภทของตัวเอง เมื่อ
สร้างส่วนเสริมของเอดิเตอร์ คุณควรทราบรายละเอียดเฉพาะของเอดิเตอร์เหล่านี้
ดูรายละเอียดเพิ่มเติมเกี่ยวกับส่วนเสริมสำหรับโปรแกรมแก้ไข
ที่เฉพาะเจาะจงได้ในส่วนที่เกี่ยวข้อง
ส่วนเสริมของเอดิเตอร์สามารถช่วยปรับงานทั่วไปของเอดิเตอร์ให้เป็นแบบอัตโนมัติได้ เช่น การสร้างไฟล์
การแก้ไข การจัดรูปแบบ และการย้ายข้อมูลระหว่างแอปพลิเคชัน
อินเทอร์เฟซส่วนเสริมของตัวแก้ไขปรับแต่งได้สูงสำหรับ
งานที่กำลังทำอยู่
ส่วนเสริมของเอดิเตอร์เหมาะอย่างยิ่งสำหรับการทำงานอัตโนมัติภายใน Google เอกสาร, ชีต, สไลด์ หรือฟอร์มสำหรับการใช้งานส่วนตัวหรือภายใน สำหรับส่วนเสริม
ที่ต้องใช้ความสามารถขนาดใหญ่ซึ่งต้องรองรับผู้ใช้จำนวนมาก ต้องมีเวลาในการตอบสนองต่ำ
หรือต้องการควบคุมโครงสร้างพื้นฐานอย่างเต็มรูปแบบ ให้พิจารณาสร้าง
ส่วนเสริม Google Workspace ในสภาพแวดล้อมรันไทม์อื่น
เพื่อควบคุมโครงสร้างพื้นฐาน การติดตั้งใช้งาน และกระบวนการเผยแพร่ได้ดียิ่งขึ้น
ส่วนเสริมของเครื่องมือแก้ไขจะทำงานแตกต่างจากส่วนเสริมของ Google Workspace ในลักษณะต่อไปนี้
- ส่วนเสริมเครื่องมือแก้ไขสามารถสร้างอินเทอร์เฟซที่ประกอบด้วยรายการเมนู
กล่องโต้ตอบ และแถบด้านข้าง กล่องโต้ตอบและแถบด้านข้างของส่วนเสริม
กำหนดโดยใช้ HTML และ
CSS มาตรฐาน
- ส่วนเสริมของเอดิเตอร์มีกฎการให้สิทธิ์พิเศษเนื่องจากส่วนเสริมเหล่านี้
สร้าง แก้ไข หรือโต้ตอบกับไฟล์ใน Google ไดรฟ์ คุณต้องทำความเข้าใจการให้สิทธิ์ส่วนเสริมของเอดิเตอร์ขณะพัฒนาส่วนเสริมของเอดิเตอร์
- ไฟล์ที่สร้างและอัปเดตในโปรแกรมแก้ไขแต่ละโปรแกรมจะมีโครงสร้างเฉพาะ ตัวอย่างเช่น งานนำเสนอ Google สไลด์ประกอบด้วยหน้าต่างๆ ซึ่งอาจเป็น
สไลด์ สไลด์ต้นแบบ หรือเลย์เอาต์ คุณควรทำความเข้าใจโครงสร้างไฟล์เหล่านี้ เนื่องจาก
ส่วนเสริมมักจะโต้ตอบกับโครงสร้างไฟล์เมื่ออ่านหรือแก้ไข
ไฟล์
- ส่วนเสริมของเครื่องมือแก้ไขจะทำงานในไคลเอ็นต์บนเดสก์ท็อปเท่านั้น ไม่ใช่ Android
หรือ iOS
- ส่วนเสริมของตัวแก้ไขต้องติดตั้งใช้งานใน
Apps Script
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-26 UTC
[null,null,["อัปเดตล่าสุด 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."]]