Class Message (2.5.0)

Message(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A rich response message. Corresponds to the intent Response field in the Dialogflow console. For more information, see Rich response messages <https://cloud.google.com/dialogflow/docs/intents-rich-messages>__.

Attributes

NameDescription
text google.cloud.dialogflow_v2.types.Intent.Message.Text
The text response.
image google.cloud.dialogflow_v2.types.Intent.Message.Image
The image response.
quick_replies google.cloud.dialogflow_v2.types.Intent.Message.QuickReplies
The quick replies response.
card google.cloud.dialogflow_v2.types.Intent.Message.Card
The card response.
payload google.protobuf.struct_pb2.Struct
A custom platform-specific response.
simple_responses google.cloud.dialogflow_v2.types.Intent.Message.SimpleResponses
The voice and text-only responses for Actions on Google.
basic_card google.cloud.dialogflow_v2.types.Intent.Message.BasicCard
The basic card response for Actions on Google.
suggestions google.cloud.dialogflow_v2.types.Intent.Message.Suggestions
The suggestion chips for Actions on Google.
link_out_suggestion google.cloud.dialogflow_v2.types.Intent.Message.LinkOutSuggestion
The link out suggestion chip for Actions on Google.
list_select google.cloud.dialogflow_v2.types.Intent.Message.ListSelect
The list card response for Actions on Google.
carousel_select google.cloud.dialogflow_v2.types.Intent.Message.CarouselSelect
The carousel card response for Actions on Google.
browse_carousel_card google.cloud.dialogflow_v2.types.Intent.Message.BrowseCarouselCard
Browse carousel card for Actions on Google.
table_card google.cloud.dialogflow_v2.types.Intent.Message.TableCard
Table card for Actions on Google.
media_content google.cloud.dialogflow_v2.types.Intent.Message.MediaContent
The media content card for Actions on Google.
platform google.cloud.dialogflow_v2.types.Intent.Message.Platform
Optional. The platform that this message is intended for.

Classes

BasicCard

BasicCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The basic card message. Useful for displaying information. .. attribute:: title

Optional. The title of the card.

:type: str

BrowseCarouselCard

BrowseCarouselCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Card

Card(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The card response message. .. attribute:: title

Optional. The title of the card.

:type: str

CarouselSelect

CarouselSelect(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The card for presenting a carousel of options to select from. .. attribute:: items

Required. Carousel items.

:type: Sequence[google.cloud.dialogflow_v2.types.Intent.Message.CarouselSelect.Item]

ColumnProperties

ColumnProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Column properties for TableCard.

Image

Image(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The image response message. .. attribute:: image_uri

Optional. The public URI to an image file.

:type: str

LinkOutSuggestion

LinkOutSuggestion(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The suggestion chip message that allows the user to jump out to the app or website associated with this agent.

ListSelect

ListSelect(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The card for presenting a list of options to select from. .. attribute:: title

Optional. The overall title of the list.

:type: str

MediaContent

MediaContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The media content card for Actions on Google. .. attribute:: media_type

Optional. What type of media is the content (ie "audio").

:type: google.cloud.dialogflow_v2.types.Intent.Message.MediaContent.ResponseMediaType

Platform

Platform(value)

The rich response message integration platform. See Integrations <https://cloud.google.com/dialogflow/docs/integrations>__.

QuickReplies

QuickReplies(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The quick replies response message. .. attribute:: title

Optional. The title of the collection of quick replies.

:type: str

SelectItemInfo

SelectItemInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Additional info about the select item for when it is triggered in a dialog.

SimpleResponse

SimpleResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The simple response message containing speech or text. .. attribute:: text_to_speech

One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.

:type: str

SimpleResponses

SimpleResponses(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The collection of simple response candidates. This message in QueryResult.fulfillment_messages and WebhookResponse.fulfillment_messages should contain only one SimpleResponse.

Suggestion

Suggestion(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The suggestion chip message that the user can tap to quickly post a reply to the conversation.

Suggestions

Suggestions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The collection of suggestions. .. attribute:: suggestions

Required. The list of suggested replies.

:type: Sequence[google.cloud.dialogflow_v2.types.Intent.Message.Suggestion]

TableCard

TableCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Table card for Actions on Google. .. attribute:: title

Required. Title of the card.

:type: str

TableCardCell

TableCardCell(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Cell of TableCardRow.

TableCardRow

TableCardRow(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Row of TableCard.

Text

Text(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The text response message. .. attribute:: text

Optional. The collection of the agent's responses.

:type: Sequence[str]