- JSON representation
- SimpleSelect
- Item
- ListSelect
- ListItem
- CarouselSelect
- CarouselItem
- CollectionSelect
- CollectionItem
Ask the user to select one of the options.
JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field select . The type of selector presented to the user select can be only one of the following: |
||
simpleSelect |
A simple select with no associated GUI |
|
listSelect |
A select with a list card GUI |
|
carouselSelect |
A select with a card carousel GUI, use collectionSelect instead. |
|
collectionSelect |
A select with a card collection GUI |
SimpleSelect
A simple select with no associated GUI. Please update assistant.logs.actions.SimpleSelect to reflect any changes made.
JSON representation | |
---|---|
{
"items": [
{
object ( |
Fields | |
---|---|
items[] |
List of items users should select from. |
Item
Item for selection.
JSON representation | |
---|---|
{
"optionInfo": {
object ( |
Fields | |
---|---|
optionInfo |
Item key and synonyms. |
title |
title of the item. It will act as synonym if it's provided. Optional |
ListSelect
A card for presenting a list of options to select from.
JSON representation | |
---|---|
{
"title": string,
"subtitle": string,
"items": [
{
object ( |
Fields | |
---|---|
title |
Overall title of the list. Optional. |
subtitle |
Subtitle of the list. Optional. |
items[] |
min: 2 max: 30 |
ListItem
An item in the list.
JSON representation | |
---|---|
{ "optionInfo": { object ( |
Fields | |
---|---|
optionInfo |
Information about this option. See |
title |
title of the list item. When tapped, this text will be posted back to the conversation verbatim as if the user had typed it. Each title must be unique among the set of list items. Required. |
description |
Main text describing the item. Optional. |
image |
Square image. Optional. |
CarouselSelect
A card for presenting a carousel of options to select from.
JSON representation | |
---|---|
{ "title": string, "subtitle": string, "items": [ { object ( |
Fields | |
---|---|
title |
title of the carousel. Optional. |
subtitle |
Subtitle of the carousel. Optional. |
items[] |
min: 2 max: 10 |
imageDisplayOptions |
type of image display option. Optional. |
CarouselItem
An item in the carousel
JSON representation | |
---|---|
{ "optionInfo": { object ( |
Fields | |
---|---|
optionInfo |
See |
title |
title of the carousel item. When tapped, this text will be posted back to the conversation verbatim as if the user had typed it. Each title must be unique among the set of carousel items. Required. |
description |
Body text of the card. |
image |
Optional. |
CollectionSelect
A card for presenting a collection of options to select from.
JSON representation | |
---|---|
{ "title": string, "subtitle": string, "items": [ { object ( |
Fields | |
---|---|
title |
title of the collection. Optional. |
subtitle |
Subtitle of the collection. Optional. |
items[] |
min: 2 max: 10 |
imageDisplayOptions |
type of image display option. Optional. |
CollectionItem
An item in the collection
JSON representation | |
---|---|
{ "optionInfo": { object ( |
Fields | |
---|---|
optionInfo |
See |
title |
title of the collection item. When tapped, this text will be posted back to the conversation verbatim as if the user had typed it. Each title must be unique among the set of collection items. Required. |
description |
Body text of the card. |
image |
Optional. |