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 | 
|---|---|---|
| set | Dialog | Sets the action status of Dialog. | 
| set | Dialog | Sets the dialog of the Dialog. | 
Detailed documentation
setActionStatus(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 Actionto use. | 
Return
Dialog — This object, for chaining.
setDialog(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 Dialogto use. | 
Return
Dialog — This object, for chaining.