

The Chat bot is ready to respond to messages. Under Permissions, select Specific people and groups in your Under Connection settings, select Apps Script project and Under Functionality, select Bot can be messaged directly. In the Description field, enter Quickstart bot. In the Bot name field, enter Quickstart bot. Search for "Google Chat API" and click Google Chat API.Ĭlick Configuration and set up the Google Chat bot: Publish the Chat bot from Google Cloud Console. See theĪpps Script bot how-to for more information.

You need the Deployment ID for this Apps Script project, so that you can use it The current account can sometimes be switched to your default

GMAIL SPAM BOT CODE
You now have working bot code that you can try out (as described in the stepsīelow) and then customize to meet your requirements.īe sure you're signed in to the correct Google account when you open the Apps Click File > Save, name the project "Quickstart bot", and click OK.To switch to the legacy editor, open an Apps Script project and click Use legacy editor. Note: If you last worked with Apps Script using the new editor, switch to the legacy editor before opening the Chat bot template. Open the Google Apps Script Editor using the Chat bot template.In GCP project number, paste the Google Cloud project number.Under Google Cloud Platform (GCP) Project, click Change project.At the left, click Project Settings settings.Return to the Chat bot Apps Script project.Set the Apps Script project's Google Cloud project.In the upper-right corner, click Settings and Utilities more_vert > Project settings.A dialog listing current projects appears. Next to "Google Cloud Platform," click the Down arrow arrow_drop_down.If necessary, open the Google Cloud project you intend to use for this quickstart:.Click Untitled project at the top left, type Quickstart bot, and.Go to the Apps Script Getting Started page.Create the script from the Chat bot template.
