This code sample creates a simple Google Chat app that can responds to events and messages from a room. This sample is built using NodeJS ( ExpressJS Framework ) on Standard Environment.
- Install libraries using
npm
.
npm install express body-parser --save
or
npm install
(if package.json is available) - Run the sample.
node index.js
-
To configure the app to respond to @ mentions in Google Chat, follow the steps to enable the API in Publishing apps.
-
When configuring the app on the Configuration tab on the Google Chat API page, enter the URL for the deployed version of the app into the app URL text box.