Apps Script có một dịch vụ tích hợp sẵn cho phép bạn tạo, đọc và chỉnh sửa Google Trang trình bày theo cách lập trình. Apps Script có thể tương tác với Google Trang trình bày theo hai cách:
Mọi tập lệnh đều có thể tạo một bản trình bày mới hoặc truy cập vào một bản trình bày hiện có nếu người dùng có quyền truy cập thích hợp cho bản trình bày đó.
Bạn có thể liên kết một tập lệnh với một bản trình bày. Việc này giúp tập lệnh có quyền truy cập trực tiếp hơn vào giao diện người dùng của Trang trình bày. Để tạo một tập lệnh liên kết, hãy chọn Tiện ích>Apps Script trong Google Trang trình bày.
Trình đơn và giao diện người dùng tuỳ chỉnh
Bạn có thể tuỳ chỉnh Google Trang trình bày bằng cách thêm trình đơn, hộp thoại và thanh bên tuỳ chỉnh. Để tìm hiểu kiến thức cơ bản về cách tạo trình đơn, hãy xem hướng dẫn về trình đơn. Để tìm hiểu về cách tuỳ chỉnh nội dung của hộp thoại, hãy xem hướng dẫn về dịch vụ HTML.
Nếu bạn dự định xuất bản giao diện tuỳ chỉnh dưới dạng một tiện ích bổ sung, hãy làm theo hướng dẫn về kiểu chữ để đảm bảo tính nhất quán với kiểu chữ và bố cục của trình chỉnh sửa Google Trang trình bày.
Tiện ích bổ sung cho Google Trang trình bày
Tiện ích bổ sung là các dự án Apps Script được đóng gói đặc biệt, chạy trong Google Trang trình bày và có thể được cài đặt từ cửa hàng tiện ích bổ sung của Google Trang trình bày. Nếu đã phát triển một tập lệnh cho Google Trang trình bày và muốn chia sẻ tập lệnh đó với mọi người, thì Apps Script cho phép bạn xuất bản tập lệnh dưới dạng một tiện ích bổ sung để những người dùng khác có thể cài đặt tập lệnh đó từ cửa hàng tiện ích bổ sung.
[[["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-04 UTC."],[[["\u003cp\u003eGoogle Apps Script enables programmatic creation and modification of Google Slides presentations.\u003c/p\u003e\n"],["\u003cp\u003eApps Script allows customization of Google Slides through custom menus, dialogs, and sidebars, and integration with other Google services.\u003c/p\u003e\n"],["\u003cp\u003eScripts can be bound to a presentation for direct access to the Slides user interface or used independently with appropriate permissions.\u003c/p\u003e\n"],["\u003cp\u003eApps Script projects can be packaged and published as add-ons, extending Google Slides functionality for other users.\u003c/p\u003e\n"]]],[],null,["# Extending Google Slides\n\nGoogle Apps Script lets you programmatically create and modify Google Slides\npresentations using the\n[Slides service](/apps-script/reference/slides/slides-app).\nYou can use Apps Script to add [custom menus](/apps-script/guides/menus),\n[dialogs, and sidebars](/apps-script/guides/dialogs) to Slides. You\ncan also integrate Slides with other\n[Google services](/apps-script/guides/services) like Calendar, Drive, and\nGmail.\n| **Note:** The [Slides service](/apps-script/reference/slides/slides-app) is the recommended way of working with Google Slides in Apps Script. You can also enable the [Slides advanced service](/apps-script/advanced/slides) if you need to invoke the [Slides API](/slides) directly.\n\nGet started\n-----------\n\nApps Script includes a\n[built-in service](/apps-script/reference/slides/slides-app)\nthat lets you programmatically create, read, and edit Google Slides.\nApps Script can interact with Google Slides in two ways:\n\n1. Any script can create a new presentation or access an existing presentation if the user has the appropriate access permissions for that presentation.\n2. A script can be [bound](/apps-script/guides/bound) to a presentation, which provides the script more direct access to the Slides user interface for that script. To create a bound script, select **Extensions** \\\u003e **Apps Script** from within Google Slides.\n\nCustom menus and user interfaces\n--------------------------------\n\nYou can customize Google Slides by adding custom menus, dialog boxes, and\nsidebars. To learn the basics of creating menus, see the\n[guide to menus](/apps-script/guides/menus). To learn about customizing the\ncontent of a dialog box, see the\n[guide to HTML service](/apps-script/guides/html#serve_html_as_a_google_docs_sheets_or_forms_user_interface).\n\nIf you're planning to publish your custom interface as part of an\n[add-on](#add-ons), follow the\n[style guide](/workspace/add-ons/guides/editor-style) for consistency with the\nstyle and layout of the Google Slides editor.\n\nadd-ons for Google Slides\n-------------------------\n\n[add-ons](/workspace/add-ons/overview) are specially packaged Apps Script\nprojects that run inside Google Slides and can be installed\nfrom the Google Slides add-on store. If you've developed a script for Google Slides and want to share it with the world, Apps Script lets you\n[publish](/workspace/add-ons/how-tos/editor-publish-overview) your script as an\nadd-on so other users can install it from the add-on store.\n\nSee the\n[sample translate add-on](/workspace/add-ons/editors/slides/quickstart/translate)\nor\n[sample progress bar add-on](/workspace/add-ons/editors/slides/quickstart/progress-bar)\nfor examples of Slides add-ons."]]