Tạo ứng dụng Google Chat có tính tương tác
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ề các khung mà bạn có thể dùng để tạo một ứng dụng Google Chat có tính tương tác.
Các ứng dụng Chat tương tác cho phép người dùng thực hiện bất kỳ thao tác nào sau đây:
- Thêm ứng dụng Chat vào phòng Chat hoặc tin nhắn trực tiếp.
- Gửi hoặc nhận tin nhắn từ các ứng dụng Chat.
- Đưa ra lệnh cho các ứng dụng trong Chat.
- Xem trước đường liên kết từ một dịch vụ hoặc hệ thống bên ngoài.
- Gửi thông tin đến các ứng dụng Chat, chẳng hạn như nhập văn bản vào một hộp thoại hoặc thông báo dạng thẻ.
Cách người dùng tìm thấy và sử dụng các ứng dụng Chat có thể tương tác
Người dùng có thể khám phá và sử dụng các ứng dụng Chat được xuất bản trên Marketplace theo nhiều cách, bao gồm:
- Tìm và cài đặt các ứng dụng trong Chat từ Google Chat hoặc Marketplace.
- Tương tác với một ứng dụng Chat đã được thêm vào một phòng Chat.
- Khám phá ứng dụng Chat trong bảng điều khiển tin nhắn trực tiếp sau khi quản trị viên Google Workspace cài đặt ứng dụng Chat thay cho họ.
Để bắt đầu sử dụng một ứng dụng Chat, người dùng Google Chat có thể bắt đầu một tin nhắn trực tiếp với ứng dụng Chat hoặc thêm ứng dụng đó vào một không gian. Người dùng cũng có thể thêm ứng dụng Chat bằng cách đề cập đến ứng dụng này bằng ký tự @. Để biết thêm thông tin, hãy xem bài viết Sử dụng các ứng dụng trong Chat.
Ví dụ sau đây cho thấy cách người dùng @đề cập đến một ứng dụng Chat để thêm ứng dụng đó vào một không gian:

Chọn một khung cho ứng dụng Chat tương tác
Để tạo một ứng dụng Chat tương tác với người dùng, bạn có thể chọn một trong các khung sau:
- Tiện ích bổ sung Google Workspace: Cho phép bạn mở rộng các ứng dụng Google Workspace khác và liệt kê ứng dụng Chat của bạn cùng với các loại ứng dụng khác trên Google Workspace Marketplace.
Để tìm hiểu thêm, hãy xem phần Mở rộng Google Chat trong tài liệu về tiện ích bổ sung của Google Workspace.
- Sự kiện tương tác Chat API: Cho phép bạn tạo các tính năng bổ sung, chẳng hạn như trang chủ của ứng dụng Chat và sử dụng các cấu trúc khác như Pub/Sub và Dialogflow CX. Để tìm hiểu thêm, hãy xem phần Nhận và phản hồi các sự kiện tương tác.
Đối với mỗi khung, bảng sau đây cho thấy tài liệu về cách định cấu hình và tạo một ứng dụng Chat tương tác cơ bản cho từng cấu trúc ứng dụng Google Chat:
Tạo các tính năng tương tác
Đối với mỗi khung, bảng sau đây cho thấy tài liệu để tạo các tính năng tương tác:
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-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-08 UTC."],[],[],null,["# Build an interactive Google Chat app\n\nThis page provides an overview of the frameworks that you can use to build an\ninteractive Google Chat app. \n\nInteractive Chat apps let users do any of the following:\n\n- Add Chat apps to Chat spaces or direct messages.\n- Send messages to or receive messages from Chat apps.\n- Prompt Chat apps with a command.\n- Preview links from an external service or system.\n- Submit information to Chat apps, such as entering text into a dialog or card message.\n\nHow users discover and use interactive Chat apps\n------------------------------------------------\n\nUsers can discover and use Chat apps published to the\nMarketplace in many ways, including the following:\n\n- Search and install Chat apps from Google Chat or the Marketplace.\n- Interact with a Chat app that's been added to a Chat space.\n- Discover the Chat app in their direct messages panel after a Google Workspace administrator installed the Chat app on their behalf.\n\nTo start using a Chat app, Google Chat users can\nstart a direct message with the Chat app or add it to a\nspace. Users can also add the Chat app by @mentioning\nit. For more information, see\n[Use Chat apps](https://support.google.com/chat/answer/7655820).\n\nThe following example shows how a user @mentions a\nChat app to add it to a space:\n\nChoose a framework for your interactive Chat app\n------------------------------------------------\n\nTo build a Chat app that interacts with users, you\ncan choose between the following frameworks:\n\n- **Google Workspace add-on** : Lets you extend other Google Workspace applications and list your Chat app with other types of apps on the Google Workspace Marketplace. To learn more, see [Extend Google Chat](/workspace/add-ons/chat) in the Google Workspace add-on documentation.\n- **Chat API interaction event** : Lets you build additional features such as a [Chat app homepage](/workspace/chat/send-app-home-card-message) and use other architectures such as Pub/Sub and Dialogflow CX. To learn more, see [Receive and respond to interaction events](/workspace/chat/receive-respond-interactions).\n\n### Configure an interactive Chat app\n\nFor each framework, the following table shows the documentation for configuring\nand creating a basic interactive Chat app for each\n[Google Chat app architecture](/workspace/chat/structure):\n\n| Configuration | Add-on | Chat API interaction events |\n|------------------------|-----------------------------------------------------------------|-----------------------------------------------------------------------------|---|\n| Configure the Chat API | [Documentation](/workspace/add-ons/chat/configure) | [Documentation](/workspace/chat/configure-chat-api) |\n| **Quickstarts** | |||\n| Apps Script | [Documentation](/workspace/add-ons/chat/quickstart-apps-script) | [Documentation](/workspace/chat/quickstart/apps-script-app) |\n| HTTP service | [Documentation](/workspace/add-ons/chat/quickstart-http) | [Documentation](/workspace/chat/quickstart/gcf-app) |\n| Dialogflow CX | Unavailable for add-ons. | [Documentation](/workspace/chat/build-dialogflow-chat-app-natural-language) |\n| Pub/Sub | Unavailable for add-ons. | [Documentation](/workspace/chat/quickstart/pub-sub) |\n\n### Build interactive features\n\nFor each framework, the following table shows the documentation for\nbuilding interactive features:\n\n| Feature | Add-on | Chat API interaction events |\n|---------------------------------------|------------------------------------------------------------------------|-------------------------------------------------------------|\n| Send messages | [Documentation](/workspace/add-ons/chat/send-messages) | |\n| Respond to commands | [Documentation](/workspace/add-ons/chat/commands) | [Documentation](/workspace/chat/commands) |\n| Build interactive dialogs | [Documentation](/workspace/add-ons/chat/dialogs) | [Documentation](/workspace/chat/dialogs) |\n| Collect and process information | [Documentation](/workspace/add-ons/chat/collect-information) | [Documentation](/workspace/chat/read-form-data) |\n| Preview links in Chat messages | [Documentation](/workspace/add-ons/chat/preview-links) | [Documentation](/workspace/chat/preview-links) |\n| Build a homepage for your Chat app | Unavailable for add-ons. | [Documentation](/workspace/chat/send-app-home-card-message) |\n| Connect to external systems and tools | [Documentation](/workspace/add-ons/guides/connect-third-party-service) | [Documentation](/workspace/chat/connect-web-services-tools) |\n\nRelated topics\n--------------\n\n- [Build a Google Chat app as a Google Workspace add-on](/workspace/add-ons/chat)\n- [Receive and respond to interaction events](/workspace/chat/receive-respond-interactions)\n- [Choose a Google Chat app architecture](/workspace/chat/structure)"]]