---
title: "Tutorial: Respond to incidents with Google Chat, Vertex AI, and Apps Script"
author: "Martin Hawksey"
date: 2023-11-14T15:06:54+00:00
modified: 2023-11-16T04:58:33+00:00
canonical_url: https://pulse.appsscript.info/p/2023/11/tutorial-respond-to-incidents-with-google-chat-vertex-ai-and-apps-script/
markdown_url: https://pulse.appsscript.info/p/2023/11/tutorial-respond-to-incidents-with-google-chat-vertex-ai-and-apps-script.md
categories:
  - "Advanced"
  - "AI"
  - "Chat"
  - "Docs"
  - "Solutions"
tags:
  - "developers.google.com"
featured_image: https://pulse.appsscript.info/files/2023/11/image-5.jpg
description: "Paraphrasing noted Google Workspace Developer Expert, Romain Vialard, GenAI has made Google Chat apps a tangible prospect. This tutorial from the  Google Developers site is a great example of how you can use Google's Vertex AI with Google Chat. The tutorial will help you create a Google Apps Script powered Chat app that is able to summaries the messages in a Google Chat space. There is a lot to take away from this example, but here are some of the headlines: * Setting a Google Cloud Project to use the new Google Chat Advanced Service for Apps Script * Setup and code for making calls to Google's Vertex AI PaLM API (LLM) from Google Apps Script * Using the responses from Vertex AI to generate new assets. There is a lot more you can do from this starting point, but hopefully it gives you a great starting point."
---

# Tutorial: Respond to incidents with Google Chat, Vertex AI, and Apps Script

![Tutorial: Respond to incidents with Google Chat, Vertex AI, and Apps Script](https://pulse.appsscript.info/files/2023/11/image-5.jpg)

> Imagen: photo looking over the shoulder of a robot looking at a screen with chat messages and hand writing notes
> This tutorial shows how to make a Google Chat app that responds to incidents in real time. When responding to an incident, the app creates and populates a Chat space, facilitates incident resolution with messages, slash commands, and dialogs, and uses AI to summarize the incident response in a Google Docs document.

Paraphrasing noted Google Workspace Developer Expert, Romain Vialard, GenAI has made Google Chat apps a tangible prospect. This tutorial from the  Google Developers site is a great example of how you can use Google’s Vertex AI with Google Chat. The tutorial will help you create a Google Apps Script powered Chat app that is able to summaries the messages in a Google Chat space.

There is a lot to take away from this example, but here are some of the headlines:

- Setting a Google Cloud Project to use the new Google Chat Advanced Service for Apps Script
- Setup and code for making calls to Google’s Vertex AI PaLM API (LLM) from Google Apps Script
- Using the responses from Vertex AI to generate new assets.

There is a lot more you can do from this starting point, but hopefully it gives you a great starting point.

[![](https://pulse.appsscript.info/files/2023/11/incident-response-7.png)](https://developers.google.com/chat/tutorial-incident-response)

Source: *[Respond to incidents with Google Chat, Vertex AI, and Apps Script  |  Google for Developers*](http://goo.gle/summit-guided)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2023/11/tutorial-respond-to-incidents-with-google-chat-vertex-ai-and-apps-script/](https://pulse.appsscript.info/p/2023/11/tutorial-respond-to-incidents-with-google-chat-vertex-ai-and-apps-script/)*
