Notification

Displays a notification when users submit and close a dialog.

Available for Google Workspace add-ons that extend Google Chat.

```javascript
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/notification#setText(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/notification#` | Sets the text to show in the notification. |

## Detailed documentation

### `setText(text)`

Sets the text to show in the notification. Required.

```javascript
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");
```

#### Parameters

| Name | Type | Description |
|---|---|---|
| `text` | `String` | The notification text. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/notification#` --- This object, for chaining.