Creare un'app Google Chat interattiva
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina fornisce una panoramica dei framework che puoi utilizzare per creare un'app Google Chat interattiva.
Le app di chat interattive consentono agli utenti di:
- Aggiungi app di Chat a spazi di Chat o
messaggi diretti.
- Inviare o ricevere messaggi dalle app di chat.
- Chiedi alle app di chat di eseguire un comando.
- Visualizza l'anteprima dei link di un servizio o sistema esterno.
- Invia informazioni alle app di chat, ad esempio inserendo testo in un messaggio di dialogo o di scheda.
Come gli utenti scoprono e utilizzano le app di chat interattive
Gli utenti possono scoprire e utilizzare le app di chat pubblicate su
Marketplace in molti modi, tra cui:
- Cerca e installa app di chat da Google Chat o dal
Marketplace.
- Interagire con un'app di Chat aggiunta a uno spazio di Chat.
- Scoprire l'app di chat nel riquadro dei messaggi diretti
dopo che un amministratore di Google Workspace l'ha installata
per suo conto.
Per iniziare a utilizzare un'app Chat, gli utenti di Google Chat possono
avviare un messaggio diretto con l'app Chat o aggiungerla a uno
spazio. Gli utenti possono anche aggiungere l'app Chat menzionandola con @. Per saperne di più, vedi Utilizzare le app di chat.
L'esempio seguente mostra come un utente menziona un'app di chat per aggiungerla a uno spazio:

Scegliere un framework per l'app Chat interattiva
Per creare un'app di chat che interagisca con gli utenti, puoi scegliere tra i seguenti framework:
- Componente aggiuntivo di Google Workspace: ti consente di estendere altre applicazioni Google Workspace ed elencare la tua app di chat con altri tipi di app su Google Workspace Marketplace.
Per saperne di più, vedi Estendere Google Chat nella
documentazione del componente aggiuntivo di Google Workspace.
- Evento di interazione dell'API Chat: ti consente di creare funzionalità aggiuntive
come una home page dell'app di chat
e utilizzare altre architetture come Pub/Sub e Dialogflow CX. Per saperne di più,
consulta
Ricevere e rispondere agli eventi di interazione.
Per ogni framework, la tabella seguente mostra la documentazione per la configurazione
e la creazione di un'app Google Chat interattiva di base per ogni
architettura dell'app Google Chat:
Creare funzionalità interattive
Per ogni framework, la tabella seguente mostra la documentazione per
la creazione di funzionalità interattive:
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-08 UTC.
[null,null,["Ultimo aggiornamento 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)"]]