สร้างแอป Google Chat แบบอินเทอร์แอกทีฟ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้จะแสดงภาพรวมของเฟรมเวิร์กที่คุณใช้สร้างแอป Google Chat แบบอินเทอร์แอกทีฟได้
แอป Chat แบบอินเทอร์แอกทีฟช่วยให้ผู้ใช้ทำสิ่งต่อไปนี้ได้
- เพิ่มแอป Chat ลงในพื้นที่ใน Chat หรือข้อความส่วนตัว
- ส่งหรือรับข้อความจากแอป Chat
- แจ้งแอปใน Chat ด้วยคำสั่ง
- ดูตัวอย่างลิงก์จากบริการหรือระบบภายนอก
- ส่งข้อมูลไปยังแอป Chat เช่น ป้อนข้อความลงใน
กล่องโต้ตอบหรือข้อความการ์ด
วิธีที่ผู้ใช้ค้นพบและใช้แอป Chat แบบอินเทอร์แอกทีฟ
ผู้ใช้สามารถค้นพบและใช้แอป Chat ที่เผยแพร่ใน Marketplace ได้หลายวิธี ซึ่งรวมถึงวิธีต่อไปนี้
- ค้นหาและติดตั้งแอปใน Chat จาก Google Chat หรือ
Marketplace
- โต้ตอบกับแอป Chat ที่เพิ่มลงในพื้นที่ใน Chat
- ค้นพบแอป Chat ในแผงข้อความส่วนตัว
หลังจากที่ผู้ดูแลระบบ Google Workspace ติดตั้ง
แอป Chat ในนามของตน
หากต้องการเริ่มใช้แอป Chat ผู้ใช้ Google Chat สามารถ
เริ่มข้อความส่วนตัวกับแอป Chat หรือเพิ่มแอปไปยัง
พื้นที่ทำงานได้ ผู้ใช้ยังเพิ่มแอป Chat ได้โดยการ @กล่าวถึง
แอป ดูข้อมูลเพิ่มเติมได้ที่
ใช้แอป Chat
ตัวอย่างต่อไปนี้แสดงวิธีที่ผู้ใช้ @กล่าวถึง
แอป Chat เพื่อเพิ่มแอปไปยังพื้นที่ทำงาน

เลือกเฟรมเวิร์กสำหรับแอป Chat แบบอินเทอร์แอกทีฟ
หากต้องการสร้างแอป Chat ที่โต้ตอบกับผู้ใช้ คุณ
สามารถเลือกใช้เฟรมเวิร์กต่อไปนี้
- ส่วนเสริมของ Google Workspace: ช่วยให้คุณขยายแอปพลิเคชันอื่นๆ ของ Google Workspace และแสดงแอป Chat ของคุณพร้อมกับแอปประเภทอื่นๆ ใน Google Workspace Marketplace
ดูข้อมูลเพิ่มเติมได้ที่ขยาย Google Chat ในเอกสารประกอบของส่วนเสริม Google Workspace
- เหตุการณ์การโต้ตอบของ Chat API: ช่วยให้คุณสร้างฟีเจอร์เพิ่มเติม
เช่น หน้าแรกของแอป Chat
และใช้สถาปัตยกรรมอื่นๆ เช่น Pub/Sub และ Dialogflow CX ดูข้อมูลเพิ่มเติมได้ที่
รับและตอบกลับเหตุการณ์การโต้ตอบ
สำหรับแต่ละเฟรมเวิร์ก ตารางต่อไปนี้จะแสดงเอกสารประกอบสำหรับการกำหนดค่า
และการสร้างแอป Chat แบบอินเทอร์แอกทีฟพื้นฐานสำหรับแต่ละสถาปัตยกรรมแอป Google Chat
สร้างฟีเจอร์แบบอินเทอร์แอกทีฟ
สำหรับแต่ละเฟรมเวิร์ก ตารางต่อไปนี้จะแสดงเอกสารประกอบสำหรับการ
สร้างฟีเจอร์แบบอินเทอร์แอกทีฟ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-08 UTC
[null,null,["อัปเดตล่าสุด 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)"]]