REST Resource: projects.agent.intents

Resource: Intent

Represents an intent. Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.

JSON representation
{
  "name": string,
  "displayName": string,
  "webhookState": enum (WebhookState),
  "priority": number,
  "isFallback": boolean,
  "mlEnabled": boolean,
  "mlDisabled": boolean,
  "endInteraction": boolean,
  "inputContextNames": [
    string
  ],
  "events": [
    string
  ],
  "trainingPhrases": [
    {
      object (TrainingPhrase)
    }
  ],
  "action": string,
  "outputContexts": [
    {
      object (Context)
    }
  ],
  "resetContexts": boolean,
  "parameters": [
    {
      object (Parameter)
    }
  ],
  "messages": [
    {
      object (Message)
    }
  ],
  "defaultResponsePlatforms": [
    enum (Platform)
  ],
  "rootFollowupIntentName": string,
  "parentFollowupIntentName": string,
  "followupIntentInfo": [
    {
      object (FollowupIntentInfo)
    }
  ]
}
Fields
name

string

The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects/<Project ID>/agent/intents/<Intent ID>.

displayName

string

Required. The name of this intent.

webhookState

enum (WebhookState)

Optional. Indicates whether webhooks are enabled for the intent.

priority

number

Optional. The priority of this intent. Higher numbers represent higher priorities. If this is zero or unspecified, we use the default priority 500000.

Negative numbers mean that the intent is disabled.

isFallback

boolean

Optional. Indicates whether this is a fallback intent.

mlEnabled
(deprecated)

boolean

Optional. Indicates whether Machine Learning is enabled for the intent. Note: If mlEnabled setting is set to false, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use mlDisabled field instead. NOTE: If both mlEnabled and mlDisabled are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: mlEnabled = false / mlDisabled = true. - After April 15th, 2018 the default is: mlEnabled = true / mlDisabled = false.

mlDisabled

boolean

Optional. Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

endInteraction

boolean

Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.

inputContextNames[]

string

Optional. The list of context names required for this intent to be triggered. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>.

events[]

string

Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.

trainingPhrases[]

object (TrainingPhrase)

Optional. The collection of examples that the agent is trained on.

action

string

Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.

outputContexts[]

object (Context)

Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the lifespanCount to 0 will reset the context when the intent is matched. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>.

resetContexts

boolean

Optional. Indicates whether to delete all contexts in the current session when this intent is matched.

parameters[]

object (Parameter)

Optional. The collection of parameters associated with the intent.

messages[]

object (Message)

Optional. The collection of rich messages corresponding to the Response field in the Dialogflow console.

defaultResponsePlatforms[]

enum (Platform)

Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).

rootFollowupIntentName

string

Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output.

Format: projects/<Project ID>/agent/intents/<Intent ID>.

parentFollowupIntentName

string

Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with [intents.create][] or [intents.batchUpdate][], in order to make this intent a followup intent.

It identifies the parent followup intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.

followupIntentInfo[]

object (FollowupIntentInfo)

Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

WebhookState

Represents the different states that webhooks can be in.

Enums
WEBHOOK_STATE_UNSPECIFIED Webhook is disabled in the agent and in the intent.
WEBHOOK_STATE_ENABLED Webhook is enabled in the agent and in the intent.
WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook.

TrainingPhrase

Represents an example that the agent is trained on.

JSON representation
{
  "name": string,
  "type": enum (Type),
  "parts": [
    {
      object (Part)
    }
  ],
  "timesAddedCount": number
}
Fields
name

string

Output only. The unique identifier of this training phrase.

type

enum (Type)

Required. The type of the training phrase.

parts[]

object (Part)

Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase.

Note: The API does not automatically annotate training phrases like the Dialogflow Console does.

Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated.

If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set.

If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways:

  • Part.text is set to a part of the phrase that has no parameters.
  • Part.text is set to a part of the phrase that you want to annotate, and the entityType, alias, and userDefined fields are all set.

timesAddedCount

number

Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.

Type

Represents different types of training phrases.

Enums
TYPE_UNSPECIFIED Not specified. This value should never be used.
EXAMPLE Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.
TEMPLATE

Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work.

Part

Represents a part of a training phrase.

JSON representation
{
  "text": string,
  "entityType": string,
  "alias": string,
  "userDefined": boolean
}
Fields
text

string

Required. The text for this part.

entityType

string

Optional. The entity type name prefixed with @. This field is required for annotated parts of the training phrase.

alias

string

Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.

userDefined

boolean

Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.

Parameter

Represents intent parameters.

JSON representation
{
  "name": string,
  "displayName": string,
  "value": string,
  "defaultValue": string,
  "entityTypeDisplayName": string,
  "mandatory": boolean,
  "prompts": [
    string
  ],
  "isList": boolean
}
Fields
name

string

The unique identifier of this parameter.

displayName

string

Required. The name of the parameter.

value

string

Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as $parameterName, - an original parameter value defined as $parameterName.original, - a parameter value from some context defined as #contextName.parameter_name.

defaultValue

string

Optional. The default value to use when the value yields an empty result. Default values can be extracted from contexts by using the following syntax: #contextName.parameter_name.

entityTypeDisplayName

string

Optional. The name of the entity type, prefixed with @, that describes values of the parameter. If the parameter is required, this must be provided.

mandatory

boolean

Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.

prompts[]

string

Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.

isList

boolean

Optional. Indicates whether the parameter represents a list of values.

Message

Corresponds to the Response field in the Dialogflow console.

JSON representation
{
  "platform": enum (Platform),

  // Union field message can be only one of the following:
  "text": {
    object (Text)
  },
  "image": {
    object (Image)
  },
  "quickReplies": {
    object (QuickReplies)
  },
  "card": {
    object (Card)
  },
  "payload": {
    object
  },
  "simpleResponses": {
    object (SimpleResponses)
  },
  "basicCard": {
    object (BasicCard)
  },
  "suggestions": {
    object (Suggestions)
  },
  "linkOutSuggestion": {
    object (LinkOutSuggestion)
  },
  "listSelect": {
    object (ListSelect)
  },
  "carouselSelect": {
    object (CarouselSelect)
  },
  "telephonyPlayAudio": {
    object (TelephonyPlayAudio)
  },
  "telephonySynthesizeSpeech": {
    object (TelephonySynthesizeSpeech)
  },
  "telephonyTransferCall": {
    object (TelephonyTransferCall)
  },
  "rbmText": {
    object (RbmText)
  },
  "rbmStandaloneRichCard": {
    object (RbmStandaloneCard)
  },
  "rbmCarouselRichCard": {
    object (RbmCarouselCard)
  }
  // End of list of possible types for union field message.
}
Fields
platform

enum (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

object (Text)

Returns a text response.

image

object (Image)

Displays an image.

quickReplies

object (QuickReplies)

Displays quick replies.

card

object (Card)

Displays a card.

payload

object (Struct format)

Returns a response containing a custom, platform-specific payload. See the Intent.Message.Platform type for a description of the structure that may be required for your platform.

simpleResponses

object (SimpleResponses)

Returns a voice or text-only response for Actions on Google.

basicCard

object (BasicCard)

Displays a basic card for Actions on Google.

suggestions

object (Suggestions)

Displays suggestion chips for Actions on Google.

listSelect

object (ListSelect)

Displays a list card for Actions on Google.

carouselSelect

object (CarouselSelect)

Displays a carousel card for Actions on Google.

telephonyPlayAudio

object (TelephonyPlayAudio)

Plays audio from a file in Telephony Gateway.

telephonySynthesizeSpeech

object (TelephonySynthesizeSpeech)

Synthesizes speech in Telephony Gateway.

telephonyTransferCall

object (TelephonyTransferCall)

Transfers the call in Telephony Gateway.

rbmText

object (RbmText)

Rich Business Messaging (RBM) text response.

RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.

rbmStandaloneRichCard

object (RbmStandaloneCard)

Standalone Rich Business Messaging (RBM) rich card response.

Text

The text response message.

JSON representation
{
  "text": [
    string
  ]
}
Fields
text[]

string

Optional. The collection of the agent's responses.

Image

The image response message.

JSON representation
{
  "imageUri": string,
  "accessibilityText": string
}
Fields
imageUri

string

Optional. The public URI to an image file.

accessibilityText

string

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

string

Optional. The title of the collection of quick replies.

quickReplies[]

string

Optional. The collection of quick replies.

Card

The card response message.

JSON representation
{
  "title": string,
  "subtitle": string,
  "imageUri": string,
  "buttons": [
    {
      object (Button)
    }
  ]
}
Fields
title

string

Optional. The title of the card.

subtitle

string

Optional. The subtitle of the card.

imageUri

string

Optional. The public URI to an image file for the card.

buttons[]

object (Button)

Optional. The collection of card buttons.

Button

Optional. Contains information about a button.

JSON representation
{
  "text": string,
  "postback": string
}
Fields
text

string

Optional. The text to show on the button.

postback

string

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 (SimpleResponse)
    }
  ]
}
Fields
simpleResponses[]

object (SimpleResponse)

Required. The list of simple responses.

SimpleResponse

The simple response message containing speech or text.

JSON representation
{
  "textToSpeech": string,
  "ssml": string,
  "displayText": string
}
Fields
textToSpeech

string

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

ssml

string

One of textToSpeech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with textToSpeech.

displayText

string

Optional. The text to display.

BasicCard

The basic card message. Useful for displaying information.

JSON representation
{
  "title": string,
  "subtitle": string,
  "formattedText": string,
  "image": {
    object (Image)
  },
  "buttons": [
    {
      object (Button)
    }
  ]
}
Fields
title

string

Optional. The title of the card.

subtitle

string

Optional. The subtitle of the card.

formattedText

string

Required, unless image is present. The body text of the card.

image

object (Image)

Optional. The image for the card.

buttons[]

object (Button)

Optional. The collection of card buttons.

Button

The button object that appears at the bottom of a card.

JSON representation
{
  "title": string,
  "openUriAction": {
    object (OpenUriAction)
  }
}
Fields
title

string

Required. The title of the button.

openUriAction

object (OpenUriAction)

Required. Action to take when a user taps on the button.

OpenUriAction

Opens the given URI.

JSON representation
{
  "uri": string
}
Fields
uri

string

Required. The HTTP or HTTPS scheme URI.

Suggestions

The collection of suggestions.

JSON representation
{
  "suggestions": [
    {
      object (Suggestion)
    }
  ]
}
Fields
suggestions[]

object (Suggestion)

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

string

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
destinationName

string

Required. The name of the app or site this chip is linking to.

uri

string

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 (Item)
    }
  ]
}
Fields
title

string

Optional. The overall title of the list.

items[]

object (Item)

Required. List items.

Item

An item in the list.

JSON representation
{
  "info": {
    object (SelectItemInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object (Image)
  }
}
Fields
info

object (SelectItemInfo)

Required. Additional information about this option.

title

string

Required. The title of the list item.

description

string

Optional. The main text describing the item.

image

object (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

string

Required. A unique key that will be sent back to the agent if this response is given.

synonyms[]

string

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 (Item)
    }
  ]
}
Fields
items[]

object (Item)

Required. Carousel items.

Item

An item in the carousel.

JSON representation
{
  "info": {
    object (SelectItemInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object (Image)
  }
}
Fields
info

object (SelectItemInfo)

Required. Additional info about the option item.

title

string

Required. Title of the carousel item.

description

string

Optional. The body text of the card.

image

object (Image)

Optional. The image to display.

TelephonyPlayAudio

Plays audio from a file in Telephony Gateway.

JSON representation
{
  "audioUri": string
}
Fields
audioUri

string

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 service-<Project Number>@gcp-sa-dialogflow.iam.gserviceaccount.com service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API.

For audio from other sources, consider using the TelephonySynthesizeSpeech message with SSML.

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 source can be only one of the following:
  "text": string,
  "ssml": string
  // End of list of possible types for union field source.
}
Fields
Union field source. Required. The source to be synthesized. source can be only one of the following:
text

string

The raw text to be synthesized.

ssml

string

The SSML to be synthesized. For more information, see SSML.

TelephonyTransferCall

Transfers the call in Telephony Gateway.

JSON representation
{
  "phoneNumber": string
}
Fields
phoneNumber

string

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 (RbmSuggestion)
    }
  ]
}
Fields
text

string

Required. Text sent and displayed to the user.

rbmSuggestion[]

object (RbmSuggestion)

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 suggestion can be only one of the following:
  "reply": {
    object (RbmSuggestedReply)
  },
  "action": {
    object (RbmSuggestedAction)
  }
  // End of list of possible types for union field suggestion.
}
Fields
Union field suggestion. Predefined suggested response or action for user to choose suggestion can be only one of the following:
reply

object (RbmSuggestedReply)

Predefined replies for user to select instead of typing

action

object (RbmSuggestedAction)

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

string

Suggested reply text.

postbackData

string

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 action can be only one of the following:
  "dial": {
    object (RbmSuggestedActionDial)
  },
  "openUrl": {
    object (RbmSuggestedActionOpenUri)
  },
  "shareLocation": {
    object (RbmSuggestedActionShareLocation)
  }
  // End of list of possible types for union field action.
}
Fields
text

string

Text to display alongside the action.

postbackData

string

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

object (RbmSuggestedActionDial)

Suggested client side action: Dial a phone number

openUrl

object (RbmSuggestedActionOpenUri)

Suggested client side action: Open a URI on device

shareLocation

object (RbmSuggestedActionShareLocation)

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 (https://goo.gl/ergbB2).

JSON representation
{
  "phoneNumber": string
}
Fields
phoneNumber

string

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 (https://goo.gl/6GLJD2). 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

string

Required. The uri to open on the user device

RbmSuggestedActionShareLocation

Opens the device's location chooser so the user can pick a location to send back to the agent (https://goo.gl/GXotJW).

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.

For more details about RBM rich cards, please see: https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards. 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 (CardOrientation),
  "thumbnailImageAlignment": enum (ThumbnailImageAlignment),
  "cardContent": {
    object (RbmCardContent)
  }
}
Fields
cardOrientation

enum (CardOrientation)

Required. Orientation of the card.

thumbnailImageAlignment

enum (ThumbnailImageAlignment)

Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.

cardContent

object (RbmCardContent)

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 (RbmMedia)
  },
  "suggestions": [
    {
      object (RbmSuggestion)
    }
  ]
}
Fields
title

string

Optional. Title of the card (at most 200 bytes).

At least one of the title, description or media must be set.

description

string

Optional. Description of the card (at most 2000 bytes).

At least one of the title, description or media must be set.

media

object (RbmMedia)

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[]

object (RbmSuggestion)

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 (Height)
}
Fields
fileUri

string

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.

thumbnailUri

string

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

enum (Height)

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. (https://goo.gl/NeFCjz). 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.

For more details about RBM rich cards, please see: https://developers.google.com/rcs-business-messaging/rbm/guides/build/send-messages#rich-cards. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead.

JSON representation
{
  "cardWidth": enum (CardWidth),
  "cardContents": [
    {
      object (RbmCardContent)
    }
  ]
}
Fields
cardWidth

enum (CardWidth)

Required. The width of the cards in the carousel.

cardContents[]

object (RbmCardContent)

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.

Platform

Represents different platforms that a rich message can be intended for.

Enums
PLATFORM_UNSPECIFIED Not specified.
FACEBOOK Facebook.
SLACK Slack.
TELEGRAM Telegram.
KIK Kik.
SKYPE Skype.
LINE Line.
VIBER Viber.
ACTIONS_ON_GOOGLE

Actions on Google. When using Actions on Google, you can choose one of the specific Intent.Message types that mention support for Actions on Google, or you can use the advanced Intent.Message.payload field. The payload field provides access to AoG features not available in the specific message types. If using the Intent.Message.payload field, it should have a structure similar to the JSON message shown here. For more information, see Actions on Google Webhook Format

{
  "expectUserResponse": true,
  "isSsml": false,
  "noInputPrompts": [],
  "richResponse": {
    "items": [
      {
        "simpleResponse": {
          "displayText": "hi",
          "textToSpeech": "hello"
        }
      }
    ],
    "suggestions": [
      {
        "title": "Say this"
      },
      {
        "title": "or this"
      }
    ]
  },
  "systemIntent": {
    "data": {
      "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec",
      "listSelect": {
        "items": [
          {
            "optionInfo": {
              "key": "key1",
              "synonyms": [
                "key one"
              ]
            },
            "title": "must not be empty, but unique"
          },
          {
            "optionInfo": {
              "key": "key2",
              "synonyms": [
                "key two"
              ]
            },
            "title": "must not be empty, but unique"
          }
        ]
      }
    },
    "intent": "actions.intent.OPTION"
  }
}
TELEPHONY Telephony Gateway.
GOOGLE_HANGOUTS Google Hangouts.

FollowupIntentInfo

Represents a single followup intent in the chain.

JSON representation
{
  "followupIntentName": string,
  "parentFollowupIntentName": string
}
Fields
followupIntentName

string

The unique identifier of the followup intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.

parentFollowupIntentName

string

The unique identifier of the followup intent's parent. Format: projects/<Project ID>/agent/intents/<Intent ID>.

Methods

batchDelete

Deletes intents in the specified agent.

batchUpdate

Updates/Creates multiple intents in the specified agent.

create

Creates an intent in the specified agent.

delete

Deletes the specified intent and its direct or indirect followup intents.

get

Retrieves the specified intent.

list

Returns the list of all intents in the specified agent.

patch

Updates the specified intent.
Was this page helpful? Let us know how we did:

Send feedback about...

Need help? Visit our support page.