AI-generated Key Takeaways
-
DialogAction is a builder for DialogAction objects and is only available for Google Chat apps, not Google Workspace add-ons.
-
The
setActionStatus()method sets the action status of a DialogAction. -
The
setDialog()method sets the dialog of a DialogAction.
A builder for Dialog
objects.
Only available for Google Chat apps. Not available for Google Workspace add-ons.
const card = CardService . newCardBuilder () . setHeader ( CardService . newCardHeader (). setTitle ( 'Card title' )) . build (); const dialog = CardService . newDialog (). setBody ( card ); const dialogAction = CardService . newDialogAction (). setDialog ( dialog );
Methods
| Method | Return type | Brief description |
|---|---|---|
Dialog
|
Sets the action status of Dialog
. |
|
Dialog
|
Sets the dialog of the Dialog
. |
Detailed documentation
set
Action
Status(actionStatus)
Sets the action status of Dialog
.
const actionStatus = CardService . newActionStatus (). setStatusCode ( CardService . Status . OK , ); const dialogAction = CardService . newDialogAction (). setActionStatus ( actionStatus );
Parameters
| Name | Type | Description |
|---|---|---|
action
|
Action
|
The Action
to use. |
Return
Dialog
— This object, for chaining.
set
Dialog(dialog)
Sets the dialog of the Dialog
.
const card = CardService . newCardBuilder () . setHeader ( CardService . newCardHeader (). setTitle ( 'card title' )) . build (); // Sets the card of the dialog. const dialog = CardService . newDialog (). setBody ( card ); const dialogAction = CardService . newDialogAction (). setDialog ( dialog );
Parameters
| Name | Type | Description |
|---|---|---|
dialog
|
Dialog
|
The Dialog
to use. |
Return
Dialog
— This object, for chaining.

