- JSON representation
- Text
- Image
- QuickReplies
- Card
- Button
- SimpleResponses
- SimpleResponse
- BasicCard
- Button
- OpenUriAction
- Suggestions
- Suggestion
- LinkOutSuggestion
- ListSelect
- Item
- SelectItemInfo
- CarouselSelect
- Item
- TelephonyPlayAudio
- TelephonySynthesizeSpeech
- TelephonyTransferCall
- RbmText
- RbmSuggestion
- RbmSuggestedReply
- RbmSuggestedAction
- RbmSuggestedActionDial
- RbmSuggestedActionOpenUri
- RbmSuggestedActionShareLocation
- RbmStandaloneCard
- CardOrientation
- ThumbnailImageAlignment
- RbmCardContent
- RbmMedia
- Height
- RbmCarouselCard
- CardWidth
- BrowseCarouselCard
- BrowseCarouselCardItem
- OpenUrlAction
- UrlTypeHint
- ImageDisplayOptions
- TableCard
- ColumnProperties
- HorizontalAlignment
- TableCardRow
- TableCardCell
- MediaContent
- ResponseMediaType
- ResponseMediaObject
Corresponds to the Response
field in the Dialogflow console.
JSON representation |
---|
{ "platform": enum ( |
Fields | |
---|---|
platform |
Optional. The platform that this message is intended for. |
Union field message . Required. The rich response message. message can be only one of the following: |
|
text |
Returns a text response. |
image |
Displays an image. |
quick |
Displays quick replies. |
card |
Displays a card. |
payload |
A custom platform-specific response. |
simple |
Returns a voice or text-only response for Actions on Google. |
basic |
Displays a basic card for Actions on Google. |
suggestions |
Displays suggestion chips for Actions on Google. |
link |
Displays a link out suggestion chip for Actions on Google. |
list |
Displays a list card for Actions on Google. |
carousel |
Displays a carousel card for Actions on Google. |
telephony |
Plays audio from a file in Telephony Gateway. |
telephony |
Synthesizes speech in Telephony Gateway. |
telephony |
Transfers the call in Telephony Gateway. |
rbm |
Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
rbm |
Standalone Rich Business Messaging (RBM) rich card response. |
rbm |
Rich Business Messaging (RBM) carousel rich card response. |
browse |
Browse carousel card for Actions on Google. |
table |
Table card for Actions on Google. |
media |
The media content card for Actions on Google. |
Text
The text response message.
JSON representation |
---|
{ "text": [ string ] } |
Fields | |
---|---|
text[] |
Optional. The collection of the agent's responses. |
Image
The image response message.
JSON representation |
---|
{ "imageUri": string, "accessibilityText": string } |
Fields | |
---|---|
image |
Optional. The public URI to an image file. |
accessibility |
A text description of the image to be used for accessibility, e.g., screen readers. Required if imageUri is set for CarouselSelect. |
QuickReplies
The quick replies response message.
JSON representation |
---|
{ "title": string, "quickReplies": [ string ] } |
Fields | |
---|---|
title |
Optional. The title of the collection of quick replies. |
quick |
Optional. The collection of quick replies. |
Card
The card response message.
JSON representation |
---|
{
"title": string,
"subtitle": string,
"imageUri": string,
"buttons": [
{
object ( |
Fields | |
---|---|
title |
Optional. The title of the card. |
subtitle |
Optional. The subtitle of the card. |
image |
Optional. The public URI to an image file for the card. |
buttons[] |
Optional. The collection of card buttons. |
Button
Optional. Contains information about a button.
JSON representation |
---|
{ "text": string, "postback": string } |
Fields | |
---|---|
text |
Optional. The text to show on the button. |
postback |
Optional. The text to send back to the Dialogflow API or a URI to open. |
SimpleResponses
The collection of simple response candidates. This message in QueryResult.fulfillment_messages
and WebhookResponse.fulfillment_messages
should contain only one SimpleResponse
.
JSON representation |
---|
{
"simpleResponses": [
{
object ( |
Fields | |
---|---|
simple |
Required. The list of simple responses. |
SimpleResponse
The simple response message containing speech or text.
JSON representation |
---|
{ "textToSpeech": string, "ssml": string, "displayText": string } |
Fields | |
---|---|
text |
One of textToSpeech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
ssml |
One of textToSpeech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with textToSpeech. |
display |
Optional. The text to display. |
BasicCard
The basic card message. Useful for displaying information.
JSON representation |
---|
{ "title": string, "subtitle": string, "formattedText": string, "image": { object ( |
Fields | |
---|---|
title |
Optional. The title of the card. |
subtitle |
Optional. The subtitle of the card. |
formatted |
Required, unless image is present. The body text of the card. |
image |
Optional. The image for the card. |
buttons[] |
Optional. The collection of card buttons. |
Button
The button object that appears at the bottom of a card.
JSON representation |
---|
{
"title": string,
"openUriAction": {
object ( |
Fields | |
---|---|
title |
Required. The title of the button. |
open |
Required. Action to take when a user taps on the button. |
OpenUriAction
Opens the given URI.
JSON representation |
---|
{ "uri": string } |
Fields | |
---|---|
uri |
Required. The HTTP or HTTPS scheme URI. |
Suggestions
The collection of suggestions.
JSON representation |
---|
{
"suggestions": [
{
object ( |
Fields | |
---|---|
suggestions[] |
Required. The list of suggested replies. |
Suggestion
The suggestion chip message that the user can tap to quickly post a reply to the conversation.
JSON representation |
---|
{ "title": string } |
Fields | |
---|---|
title |
Required. The text shown the in the suggestion chip. |
LinkOutSuggestion
The suggestion chip message that allows the user to jump out to the app or website associated with this agent.
JSON representation |
---|
{ "destinationName": string, "uri": string } |
Fields | |
---|---|
destination |
Required. The name of the app or site this chip is linking to. |
uri |
Required. The URI of the app or site to open when the user taps the suggestion chip. |
ListSelect
The card for presenting a list of options to select from.
JSON representation |
---|
{
"title": string,
"items": [
{
object ( |
Fields | |
---|---|
title |
Optional. The overall title of the list. |
items[] |
Required. List items. |
subtitle |
Optional. Subtitle of the list. |
Item
An item in the list.
JSON representation |
---|
{ "info": { object ( |
Fields | |
---|---|
info |
Required. Additional information about this option. |
title |
Required. The title of the list item. |
description |
Optional. The main text describing the item. |
image |
Optional. The image to display. |
SelectItemInfo
Additional info about the select item for when it is triggered in a dialog.
JSON representation |
---|
{ "key": string, "synonyms": [ string ] } |
Fields | |
---|---|
key |
Required. A unique key that will be sent back to the agent if this response is given. |
synonyms[] |
Optional. A list of synonyms that can also be used to trigger this item in dialog. |
CarouselSelect
The card for presenting a carousel of options to select from.
JSON representation |
---|
{
"items": [
{
object ( |
Fields | |
---|---|
items[] |
Required. Carousel items. |
Item
An item in the carousel.
JSON representation |
---|
{ "info": { object ( |
Fields | |
---|---|
info |
Required. Additional info about the option item. |
title |
Required. Title of the carousel item. |
description |
Optional. The body text of the card. |
image |
Optional. The image to display. |
TelephonyPlayAudio
Plays audio from a file in Telephony Gateway.
JSON representation |
---|
{ "audioUri": string } |
Fields | |
---|---|
audio |
Required. URI to a Google Cloud Storage object containing the audio to play, e.g., "gs://bucket/object". The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the For audio from other sources, consider using the |
TelephonySynthesizeSpeech
Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway.
Telephony Gateway takes the synthesizer settings from DetectIntentResponse.output_audio_config
which can either be set at request-level or can come from the agent-level synthesizer config.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field source . Required. The source to be synthesized. source can be only one of the following: |
|
text |
The raw text to be synthesized. |
ssml |
The SSML to be synthesized. For more information, see SSML. |
TelephonyTransferCall
Transfers the call in Telephony Gateway.
JSON representation |
---|
{ "phoneNumber": string } |
Fields | |
---|---|
phone |
Required. The phone number to transfer the call to in E.164 format. We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
RbmText
Rich Business Messaging (RBM) text response with suggestions.
JSON representation |
---|
{
"text": string,
"rbmSuggestion": [
{
object ( |
Fields | |
---|---|
text |
Required. Text sent and displayed to the user. |
rbm |
Optional. One or more suggestions to show to the user. |
RbmSuggestion
Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field suggestion . Predefined suggested response or action for user to choose suggestion can be only one of the following: |
|
reply |
Predefined replies for user to select instead of typing |
action |
Predefined client side actions that user can choose |
RbmSuggestedReply
Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response.
JSON representation |
---|
{ "text": string, "postbackData": string } |
Fields | |
---|---|
text |
Suggested reply text. |
postback |
Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic. |
RbmSuggestedAction
Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card.
JSON representation |
---|
{ "text": string, "postbackData": string, // Union field |
Fields | |
---|---|
text |
Text to display alongside the action. |
postback |
Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic. |
Union field action . Action that needs to be triggered. action can be only one of the following: |
|
dial |
Suggested client side action: Dial a phone number |
open |
Suggested client side action: Open a URI on device |
share |
Suggested client side action: Share user location |
RbmSuggestedActionDial
Opens the user's default dialer app with the specified phone number but does not dial automatically.
JSON representation |
---|
{ "phoneNumber": string } |
Fields | |
---|---|
phone |
Required. The phone number to fill in the default dialer app. This field should be in E.164 format. An example of a correctly formatted phone number: +15556767888. |
RbmSuggestedActionOpenUri
Opens the user's default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI.
JSON representation |
---|
{ "uri": string } |
Fields | |
---|---|
uri |
Required. The uri to open on the user device |
RbmStandaloneCard
Standalone Rich Business Messaging (RBM) rich card.
Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions.
You can group multiple rich cards into one using RbmCarouselCard
but carousel cards will give you less control over the card layout.
JSON representation |
---|
{ "cardOrientation": enum ( |
Fields | |
---|---|
card |
Required. Orientation of the card. |
thumbnail |
Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
card |
Required. Card content. |
CardOrientation
Orientation of the card.
Enums | |
---|---|
CARD_ORIENTATION_UNSPECIFIED |
Not specified. |
HORIZONTAL |
Horizontal layout. |
VERTICAL |
Vertical layout. |
ThumbnailImageAlignment
Thumbnail preview alignment for standalone cards with horizontal layout.
Enums | |
---|---|
THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED |
Not specified. |
LEFT |
Thumbnail preview is left-aligned. |
RIGHT |
Thumbnail preview is right-aligned. |
RbmCardContent
Rich Business Messaging (RBM) Card content
JSON representation |
---|
{ "title": string, "description": string, "media": { object ( |
Fields | |
---|---|
title |
Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
description |
Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
media |
Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card. |
suggestions[] |
Optional. List of suggestions to include in the card. |
RbmMedia
Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported:
Image Types
- image/jpeg
- image/jpg'
- image/gif
- image/png
Video Types
- video/h263
- video/m4v
- video/mp4
- video/mpeg
- video/mpeg4
- video/webm
JSON representation |
---|
{
"fileUri": string,
"thumbnailUri": string,
"height": enum ( |
Fields | |
---|---|
file |
Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL. |
thumbnail |
Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button. |
height |
Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored. |
Height
Media height
Enums | |
---|---|
HEIGHT_UNSPECIFIED |
Not specified. |
SHORT |
112 DP. |
MEDIUM |
168 DP. |
TALL |
264 DP. Not available for rich card carousels when the card width is set to small. |
RbmCarouselCard
Carousel Rich Business Messaging (RBM) rich card.
Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions.
If you want to show a single card with more control over the layout, please use RbmStandaloneCard
instead.
JSON representation |
---|
{ "cardWidth": enum ( |
Fields | |
---|---|
card |
Required. The width of the cards in the carousel. |
card |
Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
CardWidth
The width of the cards in the carousel.
Enums | |
---|---|
CARD_WIDTH_UNSPECIFIED |
Not specified. |
SMALL |
120 DP. Note that tall media cannot be used. |
MEDIUM |
232 DP. |
BrowseCarouselCard
Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
JSON representation |
---|
{ "items": [ { object ( |
Fields | |
---|---|
items[] |
Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
image |
Optional. Settings for displaying the image. Applies to every image in |
BrowseCarouselCardItem
Browsing carousel tile
JSON representation |
---|
{ "openUriAction": { object ( |
Fields | |
---|---|
open |
Required. Action to present to the user. |
title |
Required. Title of the carousel item. Maximum of two lines of text. |
description |
Optional. Description of the carousel item. Maximum of four lines of text. |
image |
Optional. Hero image for the carousel item. |
footer |
Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
OpenUrlAction
Actions on Google action to open a given url.
JSON representation |
---|
{
"url": string,
"urlTypeHint": enum ( |
Fields | |
---|---|
url |
Required. URL |
url |
Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
UrlTypeHint
Type of the URI.
Enums | |
---|---|
URL_TYPE_HINT_UNSPECIFIED |
Unspecified |
AMP_ACTION |
Url would be an amp action |
AMP_CONTENT |
URL that points directly to AMP content, or to a canonical URL which refers to AMP content via . |
ImageDisplayOptions
Image display options for Actions on Google. This should be used for when the image's aspect ratio does not match the image container's aspect ratio.
Enums | |
---|---|
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED |
Fill the gaps between the image and the image container with gray bars. |
GRAY |
Fill the gaps between the image and the image container with gray bars. |
WHITE |
Fill the gaps between the image and the image container with white bars. |
CROPPED |
Image is scaled such that the image width and height match or exceed the container dimensions. This may crop the top and bottom of the image if the scaled image height is greater than the container height, or crop the left and right of the image if the scaled image width is greater than the container width. This is similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video. |
BLURRED_BACKGROUND |
Pad the gaps between image and image frame with a blurred copy of the same image. |
TableCard
Table card for Actions on Google.
JSON representation |
---|
{ "title": string, "subtitle": string, "image": { object ( |
Fields | |
---|---|
title |
Required. Title of the card. |
subtitle |
Optional. Subtitle to the title. |
image |
Optional. Image which should be displayed on the card. |
column |
Optional. Display properties for the columns in this table. |
rows[] |
Optional. Rows in this table of data. |
buttons[] |
Optional. List of buttons for the card. |
ColumnProperties
Column properties for TableCard
.
JSON representation |
---|
{
"header": string,
"horizontalAlignment": enum ( |
Fields | |
---|---|
header |
Required. Column heading. |
horizontal |
Optional. Defines text alignment for all cells in this column. |
HorizontalAlignment
Text alignments within a cell.
Enums | |
---|---|
HORIZONTAL_ALIGNMENT_UNSPECIFIED |
Text is aligned to the leading edge of the column. |
LEADING |
Text is aligned to the leading edge of the column. |
CENTER |
Text is centered in the column. |
TRAILING |
Text is aligned to the trailing edge of the column. |
TableCardRow
Row of TableCard
.
JSON representation |
---|
{
"cells": [
{
object ( |
Fields | |
---|---|
cells[] |
Optional. List of cells that make up this row. |
divider |
Optional. Whether to add a visual divider after this row. |
TableCardCell
Cell of TableCardRow
.
JSON representation |
---|
{ "text": string } |
Fields | |
---|---|
text |
Required. Text in this cell. |
MediaContent
The media content card for Actions on Google.
JSON representation |
---|
{ "mediaType": enum ( |
Fields | |
---|---|
media |
Optional. What type of media is the content (ie "audio"). |
media |
Required. List of media objects. |
ResponseMediaType
Format of response media type.
Enums | |
---|---|
RESPONSE_MEDIA_TYPE_UNSPECIFIED |
Unspecified. |
AUDIO |
Response media type is audio. |
ResponseMediaObject
Response media object for media content card.
JSON representation |
---|
{ "name": string, "description": string, "contentUrl": string, // Union field |
Fields | |
---|---|
name |
Required. Name of media card. |
description |
Optional. Description of media card. |
content |
Required. Url where the media is stored. |
Union field image . Image to show with the media card. image can be only one of the following: |
|
large |
Optional. Image to display above media content. |
icon |
Optional. Icon to display above media content. |