インタラクティブな Google Chat アプリを作成する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、インタラクティブな Google Chat 用アプリの構築に使用できるフレームワークの概要について説明します。
インタラクティブな Chat 用アプリを使用すると、ユーザーは次の操作を行うことができます。
- Chat スペースまたはダイレクト メッセージに Chat 用アプリを追加します。
- Chat 用アプリとの間でメッセージを送受信します。
- コマンドを使用して Chat 用アプリをプロンプトします。
- 外部サービスまたはシステムからのリンクをプレビューします。
- ダイアログやカード メッセージにテキストを入力するなど、Chat 用アプリに情報を送信します。
ユーザーが双方向の Chat 用アプリを見つけて使用する方法
ユーザーは、次のようなさまざまな方法で、Marketplace に公開されている Chat 用アプリを見つけて使用できます。
- Google Chat または Marketplace から Chat 用アプリを検索してインストールします。
- Chat スペースに追加された Chat 用アプリを操作します。
- Google Workspace 管理者がユーザーの代わりに Chat 用アプリをインストールした後、ダイレクト メッセージ パネルで Chat 用アプリを見つけることができます。
Chat 用アプリの使用を開始するには、Google Chat ユーザーが Chat 用アプリとのダイレクト メッセージを開始するか、スペースに Chat 用アプリを追加します。ユーザーは、Chat 用アプリを名前リンクで追加することもできます。詳しくは、Chat 用アプリを使用するをご覧ください。
次の例は、ユーザーが Chat 用アプリをメンションしてスペースに追加する方法を示しています。

インタラクティブな Chat 用アプリのフレームワークを選択する
ユーザーとやり取りする Chat 用アプリを構築するには、次のフレームワークから選択できます。
- Google Workspace アドオン: 他の Google Workspace アプリケーションを拡張し、Google Workspace Marketplace で他の種類のアプリとともに Chat 用アプリを掲載できます。詳しくは、Google Workspace アドオンのドキュメントの Google Chat を拡張するをご覧ください。
- Chat API 相互作用イベント: Chat 用アプリのホームページなどの追加機能を構築したり、Pub/Sub や Dialogflow CX などの他のアーキテクチャを使用したりできます。詳しくは、インタラクション イベントの受信と応答をご覧ください。
次の表に、各フレームワークについて、各 Google Chat アプリ アーキテクチャの基本的なインタラクティブ 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)"]]