Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.agent.html">agent</a> . <a href="dialogflow_v2beta1.projects.agent.intents.html">intents</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 79 | <p class="firstline">Deletes intents in the specified agent. Operation </p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 82 | <p class="firstline">Updates/Creates multiple intents in the specified agent. Operation </p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#close">close()</a></code></p> |
| 85 | <p class="firstline">Close httplib2 connections.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 87 | <code><a href="#create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 88 | <p class="firstline">Creates an intent in the specified agent.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p> |
| 92 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 93 | <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <p class="firstline">Retrieves the specified intent.</p> |
| 95 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 96 | <code><a href="#list">list(parent, pageSize=None, languageCode=None, intentView=None, pageToken=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 97 | <p class="firstline">Returns the list of all intents in the specified agent.</p> |
| 98 | <p class="toc_element"> |
| 99 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 100 | <p class="firstline">Retrieves the next page of results.</p> |
| 101 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 102 | <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 103 | <p class="firstline">Updates the specified intent.</p> |
| 104 | <h3>Method Details</h3> |
| 105 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 106 | <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 107 | <pre>Deletes intents in the specified agent. Operation |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 108 | |
| 109 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 110 | parent: string, Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent` (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 112 | The object takes the form of: |
| 113 | |
| 114 | { # The request message for Intents.BatchDeleteIntents. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 115 | "intents": [ # Required. The collection of intents to delete. Only intent `name` must be filled in. |
| 116 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 117 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 118 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 119 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 120 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 121 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 122 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 123 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 124 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 125 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 126 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 127 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 128 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 129 | "userDefined": True or False, # 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. |
| 130 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 131 | "text": "A String", # Required. The text for this part. |
| 132 | }, |
| 133 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 134 | "type": "A String", # Required. The type of the training phrase. |
| 135 | "timesAddedCount": 42, # 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. |
| 136 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 137 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 138 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 139 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 140 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 141 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 142 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 143 | "a_key": "", # Properties of the object. |
| 144 | }, |
| 145 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 146 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 147 | }, |
| 148 | ], |
| 149 | "endInteraction": True or False, # 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. |
| 150 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 151 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 152 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 153 | { # Represents intent parameters. |
| 154 | "name": "A String", # The unique identifier of this parameter. |
| 155 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 156 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 157 | "displayName": "A String", # Required. The name of the parameter. |
| 158 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 159 | "entityTypeDisplayName": "A 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. |
| 160 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 161 | "A String", |
| 162 | ], |
| 163 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 164 | }, |
| 165 | ], |
| 166 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 167 | "A String", |
| 168 | ], |
| 169 | "displayName": "A String", # Required. The name of this intent. |
| 170 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 171 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 172 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 173 | "items": [ # Required. Carousel items. |
| 174 | { # An item in the carousel. |
| 175 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 176 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 177 | "A String", |
| 178 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 179 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 180 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 181 | "description": "A String", # Optional. The body text of the card. |
| 182 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 183 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 184 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 185 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 186 | }, |
| 187 | }, |
| 188 | ], |
| 189 | }, |
| 190 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 191 | "title": "A String", # Optional. The title of the card. |
| 192 | "image": { # The image response message. # Optional. The image for the card. |
| 193 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 194 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 195 | }, |
| 196 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 197 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 198 | "buttons": [ # Optional. The collection of card buttons. |
| 199 | { # The button object that appears at the bottom of a card. |
| 200 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 201 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 202 | }, |
| 203 | "title": "A String", # Required. The title of the button. |
| 204 | }, |
| 205 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 206 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 207 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 208 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 209 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 210 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 211 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 212 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 213 | "quickReplies": [ # Optional. The collection of quick replies. |
| 214 | "A String", |
| 215 | ], |
| 216 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 217 | }, |
| 218 | "text": { # The text response message. # Returns a text response. |
| 219 | "text": [ # Optional. The collection of the agent's responses. |
| 220 | "A String", |
| 221 | ], |
| 222 | }, |
| 223 | "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. # Synthesizes speech in Telephony Gateway. |
| 224 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 225 | "text": "A String", # The raw text to be synthesized. |
| 226 | }, |
| 227 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 228 | "text": "A String", # Required. Text sent and displayed to the user. |
| 229 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 230 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 231 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 232 | "postbackData": "A 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. |
| 233 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 234 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 235 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 236 | "postbackData": "A 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. |
| 237 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 238 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 239 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 240 | "uri": "A String", # Required. The uri to open on the user device |
| 241 | }, |
| 242 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 243 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 244 | }, |
| 245 | "text": "A String", # Text to display alongside the action. |
| 246 | }, |
| 247 | }, |
| 248 | ], |
| 249 | }, |
| 250 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 251 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 252 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 253 | }, |
| 254 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 255 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 256 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 257 | { # Browsing carousel tile |
| 258 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 259 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 260 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 261 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 262 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 263 | }, |
| 264 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 265 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 266 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 267 | "url": "A String", # Required. URL |
| 268 | }, |
| 269 | }, |
| 270 | ], |
| 271 | }, |
| 272 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 273 | "suggestions": [ # Required. The list of suggested replies. |
| 274 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 275 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 276 | }, |
| 277 | ], |
| 278 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 279 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 280 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 281 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 282 | { # The button object that appears at the bottom of a card. |
| 283 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 284 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 285 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 286 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 287 | }, |
| 288 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 289 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 290 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 291 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 292 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 293 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 294 | { # Column properties for TableCard. |
| 295 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 296 | "header": "A String", # Required. Column heading. |
| 297 | }, |
| 298 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 299 | "rows": [ # Optional. Rows in this table of data. |
| 300 | { # Row of TableCard. |
| 301 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 302 | "cells": [ # Optional. List of cells that make up this row. |
| 303 | { # Cell of TableCardRow. |
| 304 | "text": "A String", # Required. Text in this cell. |
| 305 | }, |
| 306 | ], |
| 307 | }, |
| 308 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 309 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 310 | }, |
| 311 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 312 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 313 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 314 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 315 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 316 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 317 | "postbackData": "A 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. |
| 318 | "text": "A String", # Suggested reply text. |
| 319 | }, |
| 320 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 321 | "postbackData": "A 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. |
| 322 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 323 | }, |
| 324 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 325 | "uri": "A String", # Required. The uri to open on the user device |
| 326 | }, |
| 327 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 328 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 329 | }, |
| 330 | "text": "A String", # Text to display alongside the action. |
| 331 | }, |
| 332 | }, |
| 333 | ], |
| 334 | "media": { # 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 # 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. |
| 335 | "fileUri": "A 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. |
| 336 | "height": "A String", # 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. |
| 337 | "thumbnailUri": "A 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. |
| 338 | }, |
| 339 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 340 | }, |
| 341 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 342 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 343 | }, |
| 344 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 345 | "mediaObjects": [ # Required. List of media objects. |
| 346 | { # Response media object for media content card. |
| 347 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 348 | "description": "A String", # Optional. Description of media card. |
| 349 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 350 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 351 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 352 | }, |
| 353 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 354 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 355 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 356 | }, |
| 357 | "name": "A String", # Required. Name of media card. |
| 358 | }, |
| 359 | ], |
| 360 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 361 | }, |
| 362 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 363 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 364 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 365 | { # Rich Business Messaging (RBM) Card content |
| 366 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 367 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 368 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 369 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 370 | "postbackData": "A 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. |
| 371 | "text": "A String", # Suggested reply text. |
| 372 | }, |
| 373 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 374 | "postbackData": "A 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. |
| 375 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 376 | }, |
| 377 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 378 | "uri": "A String", # Required. The uri to open on the user device |
| 379 | }, |
| 380 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 381 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 382 | }, |
| 383 | "text": "A String", # Text to display alongside the action. |
| 384 | }, |
| 385 | }, |
| 386 | ], |
| 387 | "media": { # 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 # 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. |
| 388 | "fileUri": "A 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. |
| 389 | "height": "A String", # 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. |
| 390 | "thumbnailUri": "A 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. |
| 391 | }, |
| 392 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 393 | }, |
| 394 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 395 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 396 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 397 | "audioUri": "A 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-@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. |
| 398 | }, |
| 399 | "card": { # The card response message. # Displays a card. |
| 400 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 401 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 402 | "buttons": [ # Optional. The collection of card buttons. |
| 403 | { # Optional. Contains information about a button. |
| 404 | "text": "A String", # Optional. The text to show on the button. |
| 405 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 406 | }, |
| 407 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 408 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 409 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 410 | "payload": { # A custom platform-specific response. |
| 411 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 412 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 413 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 414 | "simpleResponses": [ # Required. The list of simple responses. |
| 415 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 416 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 417 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 418 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 419 | }, |
| 420 | ], |
| 421 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 422 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 423 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 424 | }, |
| 425 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 426 | "items": [ # Required. List items. |
| 427 | { # An item in the list. |
| 428 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 429 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 430 | "A String", |
| 431 | ], |
| 432 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 433 | }, |
| 434 | "title": "A String", # Required. The title of the list item. |
| 435 | "description": "A String", # Optional. The main text describing the item. |
| 436 | "image": { # The image response message. # Optional. The image to display. |
| 437 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 438 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 439 | }, |
| 440 | }, |
| 441 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 442 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 443 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 444 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 445 | }, |
| 446 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 447 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 448 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 449 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 450 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 451 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 452 | }, |
| 453 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 454 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 455 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 456 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 457 | "A String", |
| 458 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 459 | }, |
| 460 | ], |
| 461 | } |
| 462 | |
| 463 | x__xgafv: string, V1 error format. |
| 464 | Allowed values |
| 465 | 1 - v1 error format |
| 466 | 2 - v2 error format |
| 467 | |
| 468 | Returns: |
| 469 | An object of the form: |
| 470 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 471 | { # This resource represents a long-running operation that is the result of a network API call. |
| 472 | "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 473 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 474 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 475 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 476 | { |
| 477 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 478 | }, |
| 479 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 480 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 481 | "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 482 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 483 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 484 | "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 485 | "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 486 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 487 | }, |
| 488 | "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 489 | }</pre> |
| 490 | </div> |
| 491 | |
| 492 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 493 | <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 494 | <pre>Updates/Creates multiple intents in the specified agent. Operation |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 495 | |
| 496 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 497 | parent: string, Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent` (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 498 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 499 | The object takes the form of: |
| 500 | |
| 501 | { # The request message for Intents.BatchUpdateIntents. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 502 | "languageCode": "A String", # Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). |
| 503 | "intentBatchUri": "A String", # The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 504 | "updateMask": "A String", # Optional. The mask to control which fields get updated. |
| 505 | "intentView": "A String", # Optional. The resource view to apply to the returned intent. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 506 | "intentBatchInline": { # This message is a wrapper around a collection of intents. # The collection of intents to update or create. |
| 507 | "intents": [ # A collection of intents. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 508 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 509 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 510 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 511 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 512 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 513 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 514 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 515 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 516 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 517 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 518 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 519 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 520 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 521 | "userDefined": True or False, # 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. |
| 522 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 523 | "text": "A String", # Required. The text for this part. |
| 524 | }, |
| 525 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 526 | "type": "A String", # Required. The type of the training phrase. |
| 527 | "timesAddedCount": 42, # 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. |
| 528 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 529 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 530 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 531 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 532 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 533 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 534 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 535 | "a_key": "", # Properties of the object. |
| 536 | }, |
| 537 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 538 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 539 | }, |
| 540 | ], |
| 541 | "endInteraction": True or False, # 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. |
| 542 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 543 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 544 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 545 | { # Represents intent parameters. |
| 546 | "name": "A String", # The unique identifier of this parameter. |
| 547 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 548 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 549 | "displayName": "A String", # Required. The name of the parameter. |
| 550 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 551 | "entityTypeDisplayName": "A 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. |
| 552 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 553 | "A String", |
| 554 | ], |
| 555 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 556 | }, |
| 557 | ], |
| 558 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 559 | "A String", |
| 560 | ], |
| 561 | "displayName": "A String", # Required. The name of this intent. |
| 562 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 563 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 564 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 565 | "items": [ # Required. Carousel items. |
| 566 | { # An item in the carousel. |
| 567 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 568 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 569 | "A String", |
| 570 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 571 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 572 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 573 | "description": "A String", # Optional. The body text of the card. |
| 574 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 575 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 576 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 577 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 578 | }, |
| 579 | }, |
| 580 | ], |
| 581 | }, |
| 582 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 583 | "title": "A String", # Optional. The title of the card. |
| 584 | "image": { # The image response message. # Optional. The image for the card. |
| 585 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 586 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 587 | }, |
| 588 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 589 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 590 | "buttons": [ # Optional. The collection of card buttons. |
| 591 | { # The button object that appears at the bottom of a card. |
| 592 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 593 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 594 | }, |
| 595 | "title": "A String", # Required. The title of the button. |
| 596 | }, |
| 597 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 598 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 599 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 600 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 601 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 602 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 603 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 604 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 605 | "quickReplies": [ # Optional. The collection of quick replies. |
| 606 | "A String", |
| 607 | ], |
| 608 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 609 | }, |
| 610 | "text": { # The text response message. # Returns a text response. |
| 611 | "text": [ # Optional. The collection of the agent's responses. |
| 612 | "A String", |
| 613 | ], |
| 614 | }, |
| 615 | "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. # Synthesizes speech in Telephony Gateway. |
| 616 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 617 | "text": "A String", # The raw text to be synthesized. |
| 618 | }, |
| 619 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 620 | "text": "A String", # Required. Text sent and displayed to the user. |
| 621 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 622 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 623 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 624 | "postbackData": "A 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. |
| 625 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 626 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 627 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 628 | "postbackData": "A 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. |
| 629 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 630 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 631 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 632 | "uri": "A String", # Required. The uri to open on the user device |
| 633 | }, |
| 634 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 635 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 636 | }, |
| 637 | "text": "A String", # Text to display alongside the action. |
| 638 | }, |
| 639 | }, |
| 640 | ], |
| 641 | }, |
| 642 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 643 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 644 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 645 | }, |
| 646 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 647 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 648 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 649 | { # Browsing carousel tile |
| 650 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 651 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 652 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 653 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 654 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 655 | }, |
| 656 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 657 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 658 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 659 | "url": "A String", # Required. URL |
| 660 | }, |
| 661 | }, |
| 662 | ], |
| 663 | }, |
| 664 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 665 | "suggestions": [ # Required. The list of suggested replies. |
| 666 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 667 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 668 | }, |
| 669 | ], |
| 670 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 671 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 672 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 673 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 674 | { # The button object that appears at the bottom of a card. |
| 675 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 676 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 677 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 678 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 679 | }, |
| 680 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 681 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 682 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 683 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 684 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 685 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 686 | { # Column properties for TableCard. |
| 687 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 688 | "header": "A String", # Required. Column heading. |
| 689 | }, |
| 690 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 691 | "rows": [ # Optional. Rows in this table of data. |
| 692 | { # Row of TableCard. |
| 693 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 694 | "cells": [ # Optional. List of cells that make up this row. |
| 695 | { # Cell of TableCardRow. |
| 696 | "text": "A String", # Required. Text in this cell. |
| 697 | }, |
| 698 | ], |
| 699 | }, |
| 700 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 701 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 702 | }, |
| 703 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 704 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 705 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 706 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 707 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 708 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 709 | "postbackData": "A 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. |
| 710 | "text": "A String", # Suggested reply text. |
| 711 | }, |
| 712 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 713 | "postbackData": "A 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. |
| 714 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 715 | }, |
| 716 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 717 | "uri": "A String", # Required. The uri to open on the user device |
| 718 | }, |
| 719 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 720 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 721 | }, |
| 722 | "text": "A String", # Text to display alongside the action. |
| 723 | }, |
| 724 | }, |
| 725 | ], |
| 726 | "media": { # 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 # 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. |
| 727 | "fileUri": "A 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. |
| 728 | "height": "A String", # 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. |
| 729 | "thumbnailUri": "A 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. |
| 730 | }, |
| 731 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 732 | }, |
| 733 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 734 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 735 | }, |
| 736 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 737 | "mediaObjects": [ # Required. List of media objects. |
| 738 | { # Response media object for media content card. |
| 739 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 740 | "description": "A String", # Optional. Description of media card. |
| 741 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 742 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 743 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 744 | }, |
| 745 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 746 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 747 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 748 | }, |
| 749 | "name": "A String", # Required. Name of media card. |
| 750 | }, |
| 751 | ], |
| 752 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 753 | }, |
| 754 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 755 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 756 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 757 | { # Rich Business Messaging (RBM) Card content |
| 758 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 759 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 760 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 761 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 762 | "postbackData": "A 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. |
| 763 | "text": "A String", # Suggested reply text. |
| 764 | }, |
| 765 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 766 | "postbackData": "A 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. |
| 767 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 768 | }, |
| 769 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 770 | "uri": "A String", # Required. The uri to open on the user device |
| 771 | }, |
| 772 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 773 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 774 | }, |
| 775 | "text": "A String", # Text to display alongside the action. |
| 776 | }, |
| 777 | }, |
| 778 | ], |
| 779 | "media": { # 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 # 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. |
| 780 | "fileUri": "A 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. |
| 781 | "height": "A String", # 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. |
| 782 | "thumbnailUri": "A 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. |
| 783 | }, |
| 784 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 785 | }, |
| 786 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 787 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 788 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 789 | "audioUri": "A 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-@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. |
| 790 | }, |
| 791 | "card": { # The card response message. # Displays a card. |
| 792 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 793 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 794 | "buttons": [ # Optional. The collection of card buttons. |
| 795 | { # Optional. Contains information about a button. |
| 796 | "text": "A String", # Optional. The text to show on the button. |
| 797 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 798 | }, |
| 799 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 800 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 801 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 802 | "payload": { # A custom platform-specific response. |
| 803 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 804 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 805 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 806 | "simpleResponses": [ # Required. The list of simple responses. |
| 807 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 808 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 809 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 810 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 811 | }, |
| 812 | ], |
| 813 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 814 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 815 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 816 | }, |
| 817 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 818 | "items": [ # Required. List items. |
| 819 | { # An item in the list. |
| 820 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 821 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 822 | "A String", |
| 823 | ], |
| 824 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 825 | }, |
| 826 | "title": "A String", # Required. The title of the list item. |
| 827 | "description": "A String", # Optional. The main text describing the item. |
| 828 | "image": { # The image response message. # Optional. The image to display. |
| 829 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 830 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 831 | }, |
| 832 | }, |
| 833 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 834 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 835 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 836 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 837 | }, |
| 838 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 839 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 840 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 841 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 842 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 843 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 844 | }, |
| 845 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 846 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 847 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 848 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 849 | "A String", |
| 850 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 851 | }, |
| 852 | ], |
| 853 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 854 | } |
| 855 | |
| 856 | x__xgafv: string, V1 error format. |
| 857 | Allowed values |
| 858 | 1 - v1 error format |
| 859 | 2 - v2 error format |
| 860 | |
| 861 | Returns: |
| 862 | An object of the form: |
| 863 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 864 | { # This resource represents a long-running operation that is the result of a network API call. |
| 865 | "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 866 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 867 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 868 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 869 | { |
| 870 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 871 | }, |
| 872 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 873 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 874 | "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 875 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 876 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 877 | "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 878 | "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 879 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 880 | }, |
| 881 | "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 882 | }</pre> |
| 883 | </div> |
| 884 | |
| 885 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 886 | <code class="details" id="close">close()</code> |
| 887 | <pre>Close httplib2 connections.</pre> |
| 888 | </div> |
| 889 | |
| 890 | <div class="method"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 891 | <code class="details" id="create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 892 | <pre>Creates an intent in the specified agent. |
| 893 | |
| 894 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 895 | parent: string, Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent` (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 896 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 897 | The object takes the form of: |
| 898 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 899 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 900 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 901 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 902 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 903 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 904 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 905 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 906 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 907 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 908 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 909 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 910 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 911 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 912 | "userDefined": True or False, # 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. |
| 913 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 914 | "text": "A String", # Required. The text for this part. |
| 915 | }, |
| 916 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 917 | "type": "A String", # Required. The type of the training phrase. |
| 918 | "timesAddedCount": 42, # 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. |
| 919 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 920 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 921 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 922 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 923 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 924 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 925 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 926 | "a_key": "", # Properties of the object. |
| 927 | }, |
| 928 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 929 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 930 | }, |
| 931 | ], |
| 932 | "endInteraction": True or False, # 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. |
| 933 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 934 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 935 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 936 | { # Represents intent parameters. |
| 937 | "name": "A String", # The unique identifier of this parameter. |
| 938 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 939 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 940 | "displayName": "A String", # Required. The name of the parameter. |
| 941 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 942 | "entityTypeDisplayName": "A 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. |
| 943 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 944 | "A String", |
| 945 | ], |
| 946 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 947 | }, |
| 948 | ], |
| 949 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 950 | "A String", |
| 951 | ], |
| 952 | "displayName": "A String", # Required. The name of this intent. |
| 953 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 954 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 955 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 956 | "items": [ # Required. Carousel items. |
| 957 | { # An item in the carousel. |
| 958 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 959 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 960 | "A String", |
| 961 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 962 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 963 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 964 | "description": "A String", # Optional. The body text of the card. |
| 965 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 966 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 967 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 968 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 969 | }, |
| 970 | }, |
| 971 | ], |
| 972 | }, |
| 973 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 974 | "title": "A String", # Optional. The title of the card. |
| 975 | "image": { # The image response message. # Optional. The image for the card. |
| 976 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 977 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 978 | }, |
| 979 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 980 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 981 | "buttons": [ # Optional. The collection of card buttons. |
| 982 | { # The button object that appears at the bottom of a card. |
| 983 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 984 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 985 | }, |
| 986 | "title": "A String", # Required. The title of the button. |
| 987 | }, |
| 988 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 989 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 990 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 991 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 992 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 993 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 994 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 995 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 996 | "quickReplies": [ # Optional. The collection of quick replies. |
| 997 | "A String", |
| 998 | ], |
| 999 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 1000 | }, |
| 1001 | "text": { # The text response message. # Returns a text response. |
| 1002 | "text": [ # Optional. The collection of the agent's responses. |
| 1003 | "A String", |
| 1004 | ], |
| 1005 | }, |
| 1006 | "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. # Synthesizes speech in Telephony Gateway. |
| 1007 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 1008 | "text": "A String", # The raw text to be synthesized. |
| 1009 | }, |
| 1010 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 1011 | "text": "A String", # Required. Text sent and displayed to the user. |
| 1012 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 1013 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1014 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1015 | "postbackData": "A 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. |
| 1016 | "text": "A String", # Suggested reply text. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1017 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1018 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1019 | "postbackData": "A 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. |
| 1020 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1021 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1022 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1023 | "uri": "A String", # Required. The uri to open on the user device |
| 1024 | }, |
| 1025 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1026 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1027 | }, |
| 1028 | "text": "A String", # Text to display alongside the action. |
| 1029 | }, |
| 1030 | }, |
| 1031 | ], |
| 1032 | }, |
| 1033 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 1034 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 1035 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 1036 | }, |
| 1037 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 1038 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 1039 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 1040 | { # Browsing carousel tile |
| 1041 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 1042 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 1043 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 1044 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1045 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1046 | }, |
| 1047 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 1048 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 1049 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 1050 | "url": "A String", # Required. URL |
| 1051 | }, |
| 1052 | }, |
| 1053 | ], |
| 1054 | }, |
| 1055 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 1056 | "suggestions": [ # Required. The list of suggested replies. |
| 1057 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 1058 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1059 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1060 | ], |
| 1061 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1062 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1063 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1064 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1065 | { # The button object that appears at the bottom of a card. |
| 1066 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 1067 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1068 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1069 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1070 | }, |
| 1071 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1072 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1073 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1074 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1075 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1076 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 1077 | { # Column properties for TableCard. |
| 1078 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 1079 | "header": "A String", # Required. Column heading. |
| 1080 | }, |
| 1081 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1082 | "rows": [ # Optional. Rows in this table of data. |
| 1083 | { # Row of TableCard. |
| 1084 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 1085 | "cells": [ # Optional. List of cells that make up this row. |
| 1086 | { # Cell of TableCardRow. |
| 1087 | "text": "A String", # Required. Text in this cell. |
| 1088 | }, |
| 1089 | ], |
| 1090 | }, |
| 1091 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1092 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 1093 | }, |
| 1094 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 1095 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 1096 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 1097 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 1098 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1099 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1100 | "postbackData": "A 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. |
| 1101 | "text": "A String", # Suggested reply text. |
| 1102 | }, |
| 1103 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1104 | "postbackData": "A 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. |
| 1105 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 1106 | }, |
| 1107 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1108 | "uri": "A String", # Required. The uri to open on the user device |
| 1109 | }, |
| 1110 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1111 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1112 | }, |
| 1113 | "text": "A String", # Text to display alongside the action. |
| 1114 | }, |
| 1115 | }, |
| 1116 | ], |
| 1117 | "media": { # 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 # 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. |
| 1118 | "fileUri": "A 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. |
| 1119 | "height": "A String", # 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. |
| 1120 | "thumbnailUri": "A 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. |
| 1121 | }, |
| 1122 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 1123 | }, |
| 1124 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 1125 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 1126 | }, |
| 1127 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 1128 | "mediaObjects": [ # Required. List of media objects. |
| 1129 | { # Response media object for media content card. |
| 1130 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 1131 | "description": "A String", # Optional. Description of media card. |
| 1132 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 1133 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1134 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1135 | }, |
| 1136 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 1137 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1138 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1139 | }, |
| 1140 | "name": "A String", # Required. Name of media card. |
| 1141 | }, |
| 1142 | ], |
| 1143 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 1144 | }, |
| 1145 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 1146 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 1147 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 1148 | { # Rich Business Messaging (RBM) Card content |
| 1149 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 1150 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 1151 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1152 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1153 | "postbackData": "A 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. |
| 1154 | "text": "A String", # Suggested reply text. |
| 1155 | }, |
| 1156 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1157 | "postbackData": "A 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. |
| 1158 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 1159 | }, |
| 1160 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1161 | "uri": "A String", # Required. The uri to open on the user device |
| 1162 | }, |
| 1163 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1164 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1165 | }, |
| 1166 | "text": "A String", # Text to display alongside the action. |
| 1167 | }, |
| 1168 | }, |
| 1169 | ], |
| 1170 | "media": { # 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 # 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. |
| 1171 | "fileUri": "A 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. |
| 1172 | "height": "A String", # 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. |
| 1173 | "thumbnailUri": "A 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. |
| 1174 | }, |
| 1175 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1176 | }, |
| 1177 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1178 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1179 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 1180 | "audioUri": "A 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-@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. |
| 1181 | }, |
| 1182 | "card": { # The card response message. # Displays a card. |
| 1183 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 1184 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 1185 | "buttons": [ # Optional. The collection of card buttons. |
| 1186 | { # Optional. Contains information about a button. |
| 1187 | "text": "A String", # Optional. The text to show on the button. |
| 1188 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1189 | }, |
| 1190 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1191 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1192 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1193 | "payload": { # A custom platform-specific response. |
| 1194 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1195 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1196 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1197 | "simpleResponses": [ # Required. The list of simple responses. |
| 1198 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1199 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1200 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1201 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1202 | }, |
| 1203 | ], |
| 1204 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1205 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 1206 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 1207 | }, |
| 1208 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 1209 | "items": [ # Required. List items. |
| 1210 | { # An item in the list. |
| 1211 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 1212 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 1213 | "A String", |
| 1214 | ], |
| 1215 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 1216 | }, |
| 1217 | "title": "A String", # Required. The title of the list item. |
| 1218 | "description": "A String", # Optional. The main text describing the item. |
| 1219 | "image": { # The image response message. # Optional. The image to display. |
| 1220 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1221 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1222 | }, |
| 1223 | }, |
| 1224 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1225 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 1226 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1227 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1228 | }, |
| 1229 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1230 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 1231 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1232 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1233 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 1234 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1235 | }, |
| 1236 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1237 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 1238 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 1239 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1240 | "A String", |
| 1241 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1242 | } |
| 1243 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1244 | languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1245 | intentView: string, Optional. The resource view to apply to the returned intent. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1246 | Allowed values |
| 1247 | INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response. |
| 1248 | INTENT_VIEW_FULL - All fields are populated. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1249 | x__xgafv: string, V1 error format. |
| 1250 | Allowed values |
| 1251 | 1 - v1 error format |
| 1252 | 2 - v2 error format |
| 1253 | |
| 1254 | Returns: |
| 1255 | An object of the form: |
| 1256 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1257 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 1258 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 1259 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 1260 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 1261 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 1262 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 1263 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1264 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1265 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1266 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1267 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1268 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1269 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 1270 | "userDefined": True or False, # 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. |
| 1271 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1272 | "text": "A String", # Required. The text for this part. |
| 1273 | }, |
| 1274 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1275 | "type": "A String", # Required. The type of the training phrase. |
| 1276 | "timesAddedCount": 42, # 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. |
| 1277 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1278 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1279 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1280 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 1281 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 1282 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 1283 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 1284 | "a_key": "", # Properties of the object. |
| 1285 | }, |
| 1286 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 1287 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 1288 | }, |
| 1289 | ], |
| 1290 | "endInteraction": True or False, # 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. |
| 1291 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 1292 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 1293 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 1294 | { # Represents intent parameters. |
| 1295 | "name": "A String", # The unique identifier of this parameter. |
| 1296 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 1297 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 1298 | "displayName": "A String", # Required. The name of the parameter. |
| 1299 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 1300 | "entityTypeDisplayName": "A 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. |
| 1301 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 1302 | "A String", |
| 1303 | ], |
| 1304 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 1305 | }, |
| 1306 | ], |
| 1307 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 1308 | "A String", |
| 1309 | ], |
| 1310 | "displayName": "A String", # Required. The name of this intent. |
| 1311 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1312 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1313 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 1314 | "items": [ # Required. Carousel items. |
| 1315 | { # An item in the carousel. |
| 1316 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 1317 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1318 | "A String", |
| 1319 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1320 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1321 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1322 | "description": "A String", # Optional. The body text of the card. |
| 1323 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1324 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1325 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1326 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1327 | }, |
| 1328 | }, |
| 1329 | ], |
| 1330 | }, |
| 1331 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1332 | "title": "A String", # Optional. The title of the card. |
| 1333 | "image": { # The image response message. # Optional. The image for the card. |
| 1334 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1335 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1336 | }, |
| 1337 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 1338 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1339 | "buttons": [ # Optional. The collection of card buttons. |
| 1340 | { # The button object that appears at the bottom of a card. |
| 1341 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 1342 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 1343 | }, |
| 1344 | "title": "A String", # Required. The title of the button. |
| 1345 | }, |
| 1346 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1347 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1348 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1349 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1350 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1351 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1352 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1353 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 1354 | "quickReplies": [ # Optional. The collection of quick replies. |
| 1355 | "A String", |
| 1356 | ], |
| 1357 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 1358 | }, |
| 1359 | "text": { # The text response message. # Returns a text response. |
| 1360 | "text": [ # Optional. The collection of the agent's responses. |
| 1361 | "A String", |
| 1362 | ], |
| 1363 | }, |
| 1364 | "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. # Synthesizes speech in Telephony Gateway. |
| 1365 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 1366 | "text": "A String", # The raw text to be synthesized. |
| 1367 | }, |
| 1368 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 1369 | "text": "A String", # Required. Text sent and displayed to the user. |
| 1370 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 1371 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1372 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1373 | "postbackData": "A 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. |
| 1374 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1375 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1376 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1377 | "postbackData": "A 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. |
| 1378 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1379 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1380 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1381 | "uri": "A String", # Required. The uri to open on the user device |
| 1382 | }, |
| 1383 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1384 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1385 | }, |
| 1386 | "text": "A String", # Text to display alongside the action. |
| 1387 | }, |
| 1388 | }, |
| 1389 | ], |
| 1390 | }, |
| 1391 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 1392 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 1393 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 1394 | }, |
| 1395 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 1396 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 1397 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 1398 | { # Browsing carousel tile |
| 1399 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 1400 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 1401 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 1402 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1403 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1404 | }, |
| 1405 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 1406 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 1407 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 1408 | "url": "A String", # Required. URL |
| 1409 | }, |
| 1410 | }, |
| 1411 | ], |
| 1412 | }, |
| 1413 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 1414 | "suggestions": [ # Required. The list of suggested replies. |
| 1415 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 1416 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1417 | }, |
| 1418 | ], |
| 1419 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1420 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1421 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1422 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1423 | { # The button object that appears at the bottom of a card. |
| 1424 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 1425 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 1426 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1427 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1428 | }, |
| 1429 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1430 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1431 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1432 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1433 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1434 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 1435 | { # Column properties for TableCard. |
| 1436 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 1437 | "header": "A String", # Required. Column heading. |
| 1438 | }, |
| 1439 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1440 | "rows": [ # Optional. Rows in this table of data. |
| 1441 | { # Row of TableCard. |
| 1442 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 1443 | "cells": [ # Optional. List of cells that make up this row. |
| 1444 | { # Cell of TableCardRow. |
| 1445 | "text": "A String", # Required. Text in this cell. |
| 1446 | }, |
| 1447 | ], |
| 1448 | }, |
| 1449 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1450 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 1451 | }, |
| 1452 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 1453 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 1454 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 1455 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 1456 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1457 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1458 | "postbackData": "A 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. |
| 1459 | "text": "A String", # Suggested reply text. |
| 1460 | }, |
| 1461 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1462 | "postbackData": "A 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. |
| 1463 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 1464 | }, |
| 1465 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1466 | "uri": "A String", # Required. The uri to open on the user device |
| 1467 | }, |
| 1468 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1469 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1470 | }, |
| 1471 | "text": "A String", # Text to display alongside the action. |
| 1472 | }, |
| 1473 | }, |
| 1474 | ], |
| 1475 | "media": { # 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 # 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. |
| 1476 | "fileUri": "A 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. |
| 1477 | "height": "A String", # 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. |
| 1478 | "thumbnailUri": "A 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. |
| 1479 | }, |
| 1480 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 1481 | }, |
| 1482 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 1483 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 1484 | }, |
| 1485 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 1486 | "mediaObjects": [ # Required. List of media objects. |
| 1487 | { # Response media object for media content card. |
| 1488 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 1489 | "description": "A String", # Optional. Description of media card. |
| 1490 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 1491 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1492 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1493 | }, |
| 1494 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 1495 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1496 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1497 | }, |
| 1498 | "name": "A String", # Required. Name of media card. |
| 1499 | }, |
| 1500 | ], |
| 1501 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 1502 | }, |
| 1503 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 1504 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 1505 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 1506 | { # Rich Business Messaging (RBM) Card content |
| 1507 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 1508 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 1509 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1510 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1511 | "postbackData": "A 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. |
| 1512 | "text": "A String", # Suggested reply text. |
| 1513 | }, |
| 1514 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1515 | "postbackData": "A 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. |
| 1516 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 1517 | }, |
| 1518 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1519 | "uri": "A String", # Required. The uri to open on the user device |
| 1520 | }, |
| 1521 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1522 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1523 | }, |
| 1524 | "text": "A String", # Text to display alongside the action. |
| 1525 | }, |
| 1526 | }, |
| 1527 | ], |
| 1528 | "media": { # 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 # 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. |
| 1529 | "fileUri": "A 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. |
| 1530 | "height": "A String", # 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. |
| 1531 | "thumbnailUri": "A 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. |
| 1532 | }, |
| 1533 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1534 | }, |
| 1535 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1536 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1537 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 1538 | "audioUri": "A 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-@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. |
| 1539 | }, |
| 1540 | "card": { # The card response message. # Displays a card. |
| 1541 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 1542 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 1543 | "buttons": [ # Optional. The collection of card buttons. |
| 1544 | { # Optional. Contains information about a button. |
| 1545 | "text": "A String", # Optional. The text to show on the button. |
| 1546 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1547 | }, |
| 1548 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1549 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1550 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1551 | "payload": { # A custom platform-specific response. |
| 1552 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1553 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1554 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1555 | "simpleResponses": [ # Required. The list of simple responses. |
| 1556 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1557 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1558 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1559 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1560 | }, |
| 1561 | ], |
| 1562 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1563 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 1564 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 1565 | }, |
| 1566 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 1567 | "items": [ # Required. List items. |
| 1568 | { # An item in the list. |
| 1569 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 1570 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 1571 | "A String", |
| 1572 | ], |
| 1573 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 1574 | }, |
| 1575 | "title": "A String", # Required. The title of the list item. |
| 1576 | "description": "A String", # Optional. The main text describing the item. |
| 1577 | "image": { # The image response message. # Optional. The image to display. |
| 1578 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1579 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1580 | }, |
| 1581 | }, |
| 1582 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1583 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 1584 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1585 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1586 | }, |
| 1587 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1588 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 1589 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1590 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1591 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 1592 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1593 | }, |
| 1594 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1595 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 1596 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 1597 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1598 | "A String", |
| 1599 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1600 | }</pre> |
| 1601 | </div> |
| 1602 | |
| 1603 | <div class="method"> |
| 1604 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 1605 | <pre>Deletes the specified intent and its direct or indirect followup intents. |
| 1606 | |
| 1607 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1608 | name: string, Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1609 | x__xgafv: string, V1 error format. |
| 1610 | Allowed values |
| 1611 | 1 - v1 error format |
| 1612 | 2 - v2 error format |
| 1613 | |
| 1614 | Returns: |
| 1615 | An object of the form: |
| 1616 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1617 | { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1618 | }</pre> |
| 1619 | </div> |
| 1620 | |
| 1621 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1622 | <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1623 | <pre>Retrieves the specified intent. |
| 1624 | |
| 1625 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1626 | name: string, Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1627 | intentView: string, Optional. The resource view to apply to the returned intent. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1628 | Allowed values |
| 1629 | INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response. |
| 1630 | INTENT_VIEW_FULL - All fields are populated. |
| 1631 | languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1632 | x__xgafv: string, V1 error format. |
| 1633 | Allowed values |
| 1634 | 1 - v1 error format |
| 1635 | 2 - v2 error format |
| 1636 | |
| 1637 | Returns: |
| 1638 | An object of the form: |
| 1639 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1640 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 1641 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 1642 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 1643 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 1644 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 1645 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 1646 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1647 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1648 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1649 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1650 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1651 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1652 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 1653 | "userDefined": True or False, # 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. |
| 1654 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1655 | "text": "A String", # Required. The text for this part. |
| 1656 | }, |
| 1657 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1658 | "type": "A String", # Required. The type of the training phrase. |
| 1659 | "timesAddedCount": 42, # 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. |
| 1660 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1661 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1662 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1663 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 1664 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 1665 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 1666 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 1667 | "a_key": "", # Properties of the object. |
| 1668 | }, |
| 1669 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 1670 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 1671 | }, |
| 1672 | ], |
| 1673 | "endInteraction": True or False, # 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. |
| 1674 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 1675 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 1676 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 1677 | { # Represents intent parameters. |
| 1678 | "name": "A String", # The unique identifier of this parameter. |
| 1679 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 1680 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 1681 | "displayName": "A String", # Required. The name of the parameter. |
| 1682 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 1683 | "entityTypeDisplayName": "A 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. |
| 1684 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 1685 | "A String", |
| 1686 | ], |
| 1687 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 1688 | }, |
| 1689 | ], |
| 1690 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 1691 | "A String", |
| 1692 | ], |
| 1693 | "displayName": "A String", # Required. The name of this intent. |
| 1694 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1695 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1696 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 1697 | "items": [ # Required. Carousel items. |
| 1698 | { # An item in the carousel. |
| 1699 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 1700 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1701 | "A String", |
| 1702 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1703 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1704 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1705 | "description": "A String", # Optional. The body text of the card. |
| 1706 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1707 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1708 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1709 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1710 | }, |
| 1711 | }, |
| 1712 | ], |
| 1713 | }, |
| 1714 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1715 | "title": "A String", # Optional. The title of the card. |
| 1716 | "image": { # The image response message. # Optional. The image for the card. |
| 1717 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1718 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1719 | }, |
| 1720 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 1721 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1722 | "buttons": [ # Optional. The collection of card buttons. |
| 1723 | { # The button object that appears at the bottom of a card. |
| 1724 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 1725 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 1726 | }, |
| 1727 | "title": "A String", # Required. The title of the button. |
| 1728 | }, |
| 1729 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1730 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1731 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1732 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1733 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1734 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1735 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1736 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 1737 | "quickReplies": [ # Optional. The collection of quick replies. |
| 1738 | "A String", |
| 1739 | ], |
| 1740 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 1741 | }, |
| 1742 | "text": { # The text response message. # Returns a text response. |
| 1743 | "text": [ # Optional. The collection of the agent's responses. |
| 1744 | "A String", |
| 1745 | ], |
| 1746 | }, |
| 1747 | "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. # Synthesizes speech in Telephony Gateway. |
| 1748 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 1749 | "text": "A String", # The raw text to be synthesized. |
| 1750 | }, |
| 1751 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 1752 | "text": "A String", # Required. Text sent and displayed to the user. |
| 1753 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 1754 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1755 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1756 | "postbackData": "A 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. |
| 1757 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1758 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1759 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1760 | "postbackData": "A 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. |
| 1761 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1762 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1763 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1764 | "uri": "A String", # Required. The uri to open on the user device |
| 1765 | }, |
| 1766 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1767 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1768 | }, |
| 1769 | "text": "A String", # Text to display alongside the action. |
| 1770 | }, |
| 1771 | }, |
| 1772 | ], |
| 1773 | }, |
| 1774 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 1775 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 1776 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 1777 | }, |
| 1778 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 1779 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 1780 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 1781 | { # Browsing carousel tile |
| 1782 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 1783 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 1784 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 1785 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1786 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1787 | }, |
| 1788 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 1789 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 1790 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 1791 | "url": "A String", # Required. URL |
| 1792 | }, |
| 1793 | }, |
| 1794 | ], |
| 1795 | }, |
| 1796 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 1797 | "suggestions": [ # Required. The list of suggested replies. |
| 1798 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 1799 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1800 | }, |
| 1801 | ], |
| 1802 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1803 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1804 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1805 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1806 | { # The button object that appears at the bottom of a card. |
| 1807 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 1808 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 1809 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1810 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1811 | }, |
| 1812 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1813 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1814 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1815 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1816 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1817 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 1818 | { # Column properties for TableCard. |
| 1819 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 1820 | "header": "A String", # Required. Column heading. |
| 1821 | }, |
| 1822 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1823 | "rows": [ # Optional. Rows in this table of data. |
| 1824 | { # Row of TableCard. |
| 1825 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 1826 | "cells": [ # Optional. List of cells that make up this row. |
| 1827 | { # Cell of TableCardRow. |
| 1828 | "text": "A String", # Required. Text in this cell. |
| 1829 | }, |
| 1830 | ], |
| 1831 | }, |
| 1832 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1833 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 1834 | }, |
| 1835 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 1836 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 1837 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 1838 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 1839 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1840 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1841 | "postbackData": "A 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. |
| 1842 | "text": "A String", # Suggested reply text. |
| 1843 | }, |
| 1844 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1845 | "postbackData": "A 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. |
| 1846 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 1847 | }, |
| 1848 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1849 | "uri": "A String", # Required. The uri to open on the user device |
| 1850 | }, |
| 1851 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1852 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1853 | }, |
| 1854 | "text": "A String", # Text to display alongside the action. |
| 1855 | }, |
| 1856 | }, |
| 1857 | ], |
| 1858 | "media": { # 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 # 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. |
| 1859 | "fileUri": "A 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. |
| 1860 | "height": "A String", # 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. |
| 1861 | "thumbnailUri": "A 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. |
| 1862 | }, |
| 1863 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 1864 | }, |
| 1865 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 1866 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 1867 | }, |
| 1868 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 1869 | "mediaObjects": [ # Required. List of media objects. |
| 1870 | { # Response media object for media content card. |
| 1871 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 1872 | "description": "A String", # Optional. Description of media card. |
| 1873 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 1874 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1875 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1876 | }, |
| 1877 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 1878 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 1879 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 1880 | }, |
| 1881 | "name": "A String", # Required. Name of media card. |
| 1882 | }, |
| 1883 | ], |
| 1884 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 1885 | }, |
| 1886 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 1887 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 1888 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 1889 | { # Rich Business Messaging (RBM) Card content |
| 1890 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 1891 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 1892 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 1893 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 1894 | "postbackData": "A 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. |
| 1895 | "text": "A String", # Suggested reply text. |
| 1896 | }, |
| 1897 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 1898 | "postbackData": "A 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. |
| 1899 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 1900 | }, |
| 1901 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 1902 | "uri": "A String", # Required. The uri to open on the user device |
| 1903 | }, |
| 1904 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 1905 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 1906 | }, |
| 1907 | "text": "A String", # Text to display alongside the action. |
| 1908 | }, |
| 1909 | }, |
| 1910 | ], |
| 1911 | "media": { # 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 # 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. |
| 1912 | "fileUri": "A 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. |
| 1913 | "height": "A String", # 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. |
| 1914 | "thumbnailUri": "A 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. |
| 1915 | }, |
| 1916 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1917 | }, |
| 1918 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1919 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1920 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 1921 | "audioUri": "A 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-@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. |
| 1922 | }, |
| 1923 | "card": { # The card response message. # Displays a card. |
| 1924 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 1925 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 1926 | "buttons": [ # Optional. The collection of card buttons. |
| 1927 | { # Optional. Contains information about a button. |
| 1928 | "text": "A String", # Optional. The text to show on the button. |
| 1929 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1930 | }, |
| 1931 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1932 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1933 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1934 | "payload": { # A custom platform-specific response. |
| 1935 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1936 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1937 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1938 | "simpleResponses": [ # Required. The list of simple responses. |
| 1939 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1940 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1941 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1942 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1943 | }, |
| 1944 | ], |
| 1945 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1946 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 1947 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 1948 | }, |
| 1949 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 1950 | "items": [ # Required. List items. |
| 1951 | { # An item in the list. |
| 1952 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 1953 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 1954 | "A String", |
| 1955 | ], |
| 1956 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 1957 | }, |
| 1958 | "title": "A String", # Required. The title of the list item. |
| 1959 | "description": "A String", # Optional. The main text describing the item. |
| 1960 | "image": { # The image response message. # Optional. The image to display. |
| 1961 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1962 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1963 | }, |
| 1964 | }, |
| 1965 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1966 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 1967 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1968 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1969 | }, |
| 1970 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1971 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 1972 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1973 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1974 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 1975 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1976 | }, |
| 1977 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1978 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 1979 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 1980 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1981 | "A String", |
| 1982 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1983 | }</pre> |
| 1984 | </div> |
| 1985 | |
| 1986 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1987 | <code class="details" id="list">list(parent, pageSize=None, languageCode=None, intentView=None, pageToken=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1988 | <pre>Returns the list of all intents in the specified agent. |
| 1989 | |
| 1990 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1991 | parent: string, Required. The agent to list all intents from. Format: `projects//agent`. (required) |
| 1992 | pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000. |
| 1993 | languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1994 | intentView: string, Optional. The resource view to apply to the returned intent. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 1995 | Allowed values |
| 1996 | INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response. |
| 1997 | INTENT_VIEW_FULL - All fields are populated. |
| 1998 | pageToken: string, Optional. The next_page_token value returned from a previous list request. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1999 | x__xgafv: string, V1 error format. |
| 2000 | Allowed values |
| 2001 | 1 - v1 error format |
| 2002 | 2 - v2 error format |
| 2003 | |
| 2004 | Returns: |
| 2005 | An object of the form: |
| 2006 | |
| 2007 | { # The response message for Intents.ListIntents. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2008 | "intents": [ # The list of agent intents. There will be a maximum number of items returned based on the page_size field in the request. |
| 2009 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 2010 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 2011 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 2012 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 2013 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 2014 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 2015 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2016 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2017 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2018 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2019 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2020 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2021 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 2022 | "userDefined": True or False, # 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. |
| 2023 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2024 | "text": "A String", # Required. The text for this part. |
| 2025 | }, |
| 2026 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2027 | "type": "A String", # Required. The type of the training phrase. |
| 2028 | "timesAddedCount": 42, # 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. |
| 2029 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2030 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2031 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2032 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 2033 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 2034 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 2035 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 2036 | "a_key": "", # Properties of the object. |
| 2037 | }, |
| 2038 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 2039 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 2040 | }, |
| 2041 | ], |
| 2042 | "endInteraction": True or False, # 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. |
| 2043 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 2044 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 2045 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 2046 | { # Represents intent parameters. |
| 2047 | "name": "A String", # The unique identifier of this parameter. |
| 2048 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 2049 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 2050 | "displayName": "A String", # Required. The name of the parameter. |
| 2051 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 2052 | "entityTypeDisplayName": "A 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. |
| 2053 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 2054 | "A String", |
| 2055 | ], |
| 2056 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 2057 | }, |
| 2058 | ], |
| 2059 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 2060 | "A String", |
| 2061 | ], |
| 2062 | "displayName": "A String", # Required. The name of this intent. |
| 2063 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2064 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2065 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 2066 | "items": [ # Required. Carousel items. |
| 2067 | { # An item in the carousel. |
| 2068 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 2069 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2070 | "A String", |
| 2071 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2072 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2073 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2074 | "description": "A String", # Optional. The body text of the card. |
| 2075 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2076 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2077 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2078 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2079 | }, |
| 2080 | }, |
| 2081 | ], |
| 2082 | }, |
| 2083 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2084 | "title": "A String", # Optional. The title of the card. |
| 2085 | "image": { # The image response message. # Optional. The image for the card. |
| 2086 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2087 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2088 | }, |
| 2089 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 2090 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2091 | "buttons": [ # Optional. The collection of card buttons. |
| 2092 | { # The button object that appears at the bottom of a card. |
| 2093 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 2094 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 2095 | }, |
| 2096 | "title": "A String", # Required. The title of the button. |
| 2097 | }, |
| 2098 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2099 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2100 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2101 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2102 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2103 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2104 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2105 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 2106 | "quickReplies": [ # Optional. The collection of quick replies. |
| 2107 | "A String", |
| 2108 | ], |
| 2109 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 2110 | }, |
| 2111 | "text": { # The text response message. # Returns a text response. |
| 2112 | "text": [ # Optional. The collection of the agent's responses. |
| 2113 | "A String", |
| 2114 | ], |
| 2115 | }, |
| 2116 | "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. # Synthesizes speech in Telephony Gateway. |
| 2117 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 2118 | "text": "A String", # The raw text to be synthesized. |
| 2119 | }, |
| 2120 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 2121 | "text": "A String", # Required. Text sent and displayed to the user. |
| 2122 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 2123 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2124 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2125 | "postbackData": "A 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. |
| 2126 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2127 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2128 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2129 | "postbackData": "A 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. |
| 2130 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2131 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2132 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2133 | "uri": "A String", # Required. The uri to open on the user device |
| 2134 | }, |
| 2135 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2136 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2137 | }, |
| 2138 | "text": "A String", # Text to display alongside the action. |
| 2139 | }, |
| 2140 | }, |
| 2141 | ], |
| 2142 | }, |
| 2143 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 2144 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 2145 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 2146 | }, |
| 2147 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 2148 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 2149 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 2150 | { # Browsing carousel tile |
| 2151 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 2152 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 2153 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 2154 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2155 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2156 | }, |
| 2157 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 2158 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 2159 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 2160 | "url": "A String", # Required. URL |
| 2161 | }, |
| 2162 | }, |
| 2163 | ], |
| 2164 | }, |
| 2165 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 2166 | "suggestions": [ # Required. The list of suggested replies. |
| 2167 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 2168 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2169 | }, |
| 2170 | ], |
| 2171 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2172 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2173 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2174 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2175 | { # The button object that appears at the bottom of a card. |
| 2176 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 2177 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 2178 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2179 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2180 | }, |
| 2181 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2182 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2183 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2184 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2185 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2186 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 2187 | { # Column properties for TableCard. |
| 2188 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 2189 | "header": "A String", # Required. Column heading. |
| 2190 | }, |
| 2191 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2192 | "rows": [ # Optional. Rows in this table of data. |
| 2193 | { # Row of TableCard. |
| 2194 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 2195 | "cells": [ # Optional. List of cells that make up this row. |
| 2196 | { # Cell of TableCardRow. |
| 2197 | "text": "A String", # Required. Text in this cell. |
| 2198 | }, |
| 2199 | ], |
| 2200 | }, |
| 2201 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2202 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 2203 | }, |
| 2204 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 2205 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 2206 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 2207 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 2208 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2209 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2210 | "postbackData": "A 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. |
| 2211 | "text": "A String", # Suggested reply text. |
| 2212 | }, |
| 2213 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2214 | "postbackData": "A 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. |
| 2215 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 2216 | }, |
| 2217 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2218 | "uri": "A String", # Required. The uri to open on the user device |
| 2219 | }, |
| 2220 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2221 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2222 | }, |
| 2223 | "text": "A String", # Text to display alongside the action. |
| 2224 | }, |
| 2225 | }, |
| 2226 | ], |
| 2227 | "media": { # 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 # 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. |
| 2228 | "fileUri": "A 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. |
| 2229 | "height": "A String", # 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. |
| 2230 | "thumbnailUri": "A 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. |
| 2231 | }, |
| 2232 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 2233 | }, |
| 2234 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 2235 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 2236 | }, |
| 2237 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 2238 | "mediaObjects": [ # Required. List of media objects. |
| 2239 | { # Response media object for media content card. |
| 2240 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 2241 | "description": "A String", # Optional. Description of media card. |
| 2242 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 2243 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2244 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2245 | }, |
| 2246 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 2247 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2248 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2249 | }, |
| 2250 | "name": "A String", # Required. Name of media card. |
| 2251 | }, |
| 2252 | ], |
| 2253 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 2254 | }, |
| 2255 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 2256 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 2257 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 2258 | { # Rich Business Messaging (RBM) Card content |
| 2259 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 2260 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 2261 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2262 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2263 | "postbackData": "A 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. |
| 2264 | "text": "A String", # Suggested reply text. |
| 2265 | }, |
| 2266 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2267 | "postbackData": "A 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. |
| 2268 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 2269 | }, |
| 2270 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2271 | "uri": "A String", # Required. The uri to open on the user device |
| 2272 | }, |
| 2273 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2274 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2275 | }, |
| 2276 | "text": "A String", # Text to display alongside the action. |
| 2277 | }, |
| 2278 | }, |
| 2279 | ], |
| 2280 | "media": { # 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 # 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. |
| 2281 | "fileUri": "A 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. |
| 2282 | "height": "A String", # 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. |
| 2283 | "thumbnailUri": "A 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. |
| 2284 | }, |
| 2285 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2286 | }, |
| 2287 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2288 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2289 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 2290 | "audioUri": "A 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-@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. |
| 2291 | }, |
| 2292 | "card": { # The card response message. # Displays a card. |
| 2293 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 2294 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 2295 | "buttons": [ # Optional. The collection of card buttons. |
| 2296 | { # Optional. Contains information about a button. |
| 2297 | "text": "A String", # Optional. The text to show on the button. |
| 2298 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2299 | }, |
| 2300 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2301 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2302 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2303 | "payload": { # A custom platform-specific response. |
| 2304 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2305 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2306 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2307 | "simpleResponses": [ # Required. The list of simple responses. |
| 2308 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2309 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2310 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2311 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2312 | }, |
| 2313 | ], |
| 2314 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2315 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 2316 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 2317 | }, |
| 2318 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 2319 | "items": [ # Required. List items. |
| 2320 | { # An item in the list. |
| 2321 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 2322 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 2323 | "A String", |
| 2324 | ], |
| 2325 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 2326 | }, |
| 2327 | "title": "A String", # Required. The title of the list item. |
| 2328 | "description": "A String", # Optional. The main text describing the item. |
| 2329 | "image": { # The image response message. # Optional. The image to display. |
| 2330 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2331 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2332 | }, |
| 2333 | }, |
| 2334 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2335 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 2336 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2337 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2338 | }, |
| 2339 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2340 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 2341 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2342 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2343 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 2344 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2345 | }, |
| 2346 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2347 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 2348 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 2349 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2350 | "A String", |
| 2351 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2352 | }, |
| 2353 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2354 | "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2355 | }</pre> |
| 2356 | </div> |
| 2357 | |
| 2358 | <div class="method"> |
| 2359 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 2360 | <pre>Retrieves the next page of results. |
| 2361 | |
| 2362 | Args: |
| 2363 | previous_request: The request for the previous page. (required) |
| 2364 | previous_response: The response from the request for the previous page. (required) |
| 2365 | |
| 2366 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2367 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2368 | page. Returns None if there are no more items in the collection. |
| 2369 | </pre> |
| 2370 | </div> |
| 2371 | |
| 2372 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2373 | <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2374 | <pre>Updates the specified intent. |
| 2375 | |
| 2376 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2377 | name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2378 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2379 | The object takes the form of: |
| 2380 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2381 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 2382 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 2383 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 2384 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 2385 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 2386 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 2387 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2388 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2389 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2390 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2391 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2392 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2393 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 2394 | "userDefined": True or False, # 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. |
| 2395 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2396 | "text": "A String", # Required. The text for this part. |
| 2397 | }, |
| 2398 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2399 | "type": "A String", # Required. The type of the training phrase. |
| 2400 | "timesAddedCount": 42, # 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. |
| 2401 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2402 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2403 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2404 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 2405 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 2406 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 2407 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 2408 | "a_key": "", # Properties of the object. |
| 2409 | }, |
| 2410 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 2411 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 2412 | }, |
| 2413 | ], |
| 2414 | "endInteraction": True or False, # 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. |
| 2415 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 2416 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 2417 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 2418 | { # Represents intent parameters. |
| 2419 | "name": "A String", # The unique identifier of this parameter. |
| 2420 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 2421 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 2422 | "displayName": "A String", # Required. The name of the parameter. |
| 2423 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 2424 | "entityTypeDisplayName": "A 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. |
| 2425 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 2426 | "A String", |
| 2427 | ], |
| 2428 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 2429 | }, |
| 2430 | ], |
| 2431 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 2432 | "A String", |
| 2433 | ], |
| 2434 | "displayName": "A String", # Required. The name of this intent. |
| 2435 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2436 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2437 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 2438 | "items": [ # Required. Carousel items. |
| 2439 | { # An item in the carousel. |
| 2440 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 2441 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2442 | "A String", |
| 2443 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2444 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2445 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2446 | "description": "A String", # Optional. The body text of the card. |
| 2447 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2448 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2449 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2450 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2451 | }, |
| 2452 | }, |
| 2453 | ], |
| 2454 | }, |
| 2455 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2456 | "title": "A String", # Optional. The title of the card. |
| 2457 | "image": { # The image response message. # Optional. The image for the card. |
| 2458 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2459 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2460 | }, |
| 2461 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 2462 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2463 | "buttons": [ # Optional. The collection of card buttons. |
| 2464 | { # The button object that appears at the bottom of a card. |
| 2465 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 2466 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 2467 | }, |
| 2468 | "title": "A String", # Required. The title of the button. |
| 2469 | }, |
| 2470 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2471 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2472 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2473 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2474 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2475 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2476 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2477 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 2478 | "quickReplies": [ # Optional. The collection of quick replies. |
| 2479 | "A String", |
| 2480 | ], |
| 2481 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 2482 | }, |
| 2483 | "text": { # The text response message. # Returns a text response. |
| 2484 | "text": [ # Optional. The collection of the agent's responses. |
| 2485 | "A String", |
| 2486 | ], |
| 2487 | }, |
| 2488 | "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. # Synthesizes speech in Telephony Gateway. |
| 2489 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 2490 | "text": "A String", # The raw text to be synthesized. |
| 2491 | }, |
| 2492 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 2493 | "text": "A String", # Required. Text sent and displayed to the user. |
| 2494 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 2495 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2496 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2497 | "postbackData": "A 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. |
| 2498 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2499 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2500 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2501 | "postbackData": "A 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. |
| 2502 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2503 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2504 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2505 | "uri": "A String", # Required. The uri to open on the user device |
| 2506 | }, |
| 2507 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2508 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2509 | }, |
| 2510 | "text": "A String", # Text to display alongside the action. |
| 2511 | }, |
| 2512 | }, |
| 2513 | ], |
| 2514 | }, |
| 2515 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 2516 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 2517 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 2518 | }, |
| 2519 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 2520 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 2521 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 2522 | { # Browsing carousel tile |
| 2523 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 2524 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 2525 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 2526 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2527 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2528 | }, |
| 2529 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 2530 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 2531 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 2532 | "url": "A String", # Required. URL |
| 2533 | }, |
| 2534 | }, |
| 2535 | ], |
| 2536 | }, |
| 2537 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 2538 | "suggestions": [ # Required. The list of suggested replies. |
| 2539 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 2540 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2541 | }, |
| 2542 | ], |
| 2543 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2544 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2545 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2546 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2547 | { # The button object that appears at the bottom of a card. |
| 2548 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 2549 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 2550 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2551 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2552 | }, |
| 2553 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2554 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2555 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2556 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2557 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2558 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 2559 | { # Column properties for TableCard. |
| 2560 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 2561 | "header": "A String", # Required. Column heading. |
| 2562 | }, |
| 2563 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2564 | "rows": [ # Optional. Rows in this table of data. |
| 2565 | { # Row of TableCard. |
| 2566 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 2567 | "cells": [ # Optional. List of cells that make up this row. |
| 2568 | { # Cell of TableCardRow. |
| 2569 | "text": "A String", # Required. Text in this cell. |
| 2570 | }, |
| 2571 | ], |
| 2572 | }, |
| 2573 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2574 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 2575 | }, |
| 2576 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 2577 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 2578 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 2579 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 2580 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2581 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2582 | "postbackData": "A 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. |
| 2583 | "text": "A String", # Suggested reply text. |
| 2584 | }, |
| 2585 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2586 | "postbackData": "A 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. |
| 2587 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 2588 | }, |
| 2589 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2590 | "uri": "A String", # Required. The uri to open on the user device |
| 2591 | }, |
| 2592 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2593 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2594 | }, |
| 2595 | "text": "A String", # Text to display alongside the action. |
| 2596 | }, |
| 2597 | }, |
| 2598 | ], |
| 2599 | "media": { # 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 # 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. |
| 2600 | "fileUri": "A 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. |
| 2601 | "height": "A String", # 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. |
| 2602 | "thumbnailUri": "A 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. |
| 2603 | }, |
| 2604 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 2605 | }, |
| 2606 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 2607 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 2608 | }, |
| 2609 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 2610 | "mediaObjects": [ # Required. List of media objects. |
| 2611 | { # Response media object for media content card. |
| 2612 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 2613 | "description": "A String", # Optional. Description of media card. |
| 2614 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 2615 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2616 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2617 | }, |
| 2618 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 2619 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2620 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2621 | }, |
| 2622 | "name": "A String", # Required. Name of media card. |
| 2623 | }, |
| 2624 | ], |
| 2625 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 2626 | }, |
| 2627 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 2628 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 2629 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 2630 | { # Rich Business Messaging (RBM) Card content |
| 2631 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 2632 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 2633 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2634 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2635 | "postbackData": "A 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. |
| 2636 | "text": "A String", # Suggested reply text. |
| 2637 | }, |
| 2638 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2639 | "postbackData": "A 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. |
| 2640 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 2641 | }, |
| 2642 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2643 | "uri": "A String", # Required. The uri to open on the user device |
| 2644 | }, |
| 2645 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2646 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2647 | }, |
| 2648 | "text": "A String", # Text to display alongside the action. |
| 2649 | }, |
| 2650 | }, |
| 2651 | ], |
| 2652 | "media": { # 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 # 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. |
| 2653 | "fileUri": "A 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. |
| 2654 | "height": "A String", # 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. |
| 2655 | "thumbnailUri": "A 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. |
| 2656 | }, |
| 2657 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2658 | }, |
| 2659 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2660 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2661 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 2662 | "audioUri": "A 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-@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. |
| 2663 | }, |
| 2664 | "card": { # The card response message. # Displays a card. |
| 2665 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 2666 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 2667 | "buttons": [ # Optional. The collection of card buttons. |
| 2668 | { # Optional. Contains information about a button. |
| 2669 | "text": "A String", # Optional. The text to show on the button. |
| 2670 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2671 | }, |
| 2672 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2673 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2674 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2675 | "payload": { # A custom platform-specific response. |
| 2676 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2677 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2678 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2679 | "simpleResponses": [ # Required. The list of simple responses. |
| 2680 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2681 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2682 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2683 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2684 | }, |
| 2685 | ], |
| 2686 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2687 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 2688 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 2689 | }, |
| 2690 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 2691 | "items": [ # Required. List items. |
| 2692 | { # An item in the list. |
| 2693 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 2694 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 2695 | "A String", |
| 2696 | ], |
| 2697 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 2698 | }, |
| 2699 | "title": "A String", # Required. The title of the list item. |
| 2700 | "description": "A String", # Optional. The main text describing the item. |
| 2701 | "image": { # The image response message. # Optional. The image to display. |
| 2702 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2703 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2704 | }, |
| 2705 | }, |
| 2706 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2707 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 2708 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2709 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2710 | }, |
| 2711 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2712 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 2713 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2714 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2715 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 2716 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2717 | }, |
| 2718 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2719 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 2720 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 2721 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2722 | "A String", |
| 2723 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2724 | } |
| 2725 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2726 | intentView: string, Optional. The resource view to apply to the returned intent. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2727 | Allowed values |
| 2728 | INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response. |
| 2729 | INTENT_VIEW_FULL - All fields are populated. |
| 2730 | languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2731 | updateMask: string, Optional. The mask to control which fields get updated. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2732 | x__xgafv: string, V1 error format. |
| 2733 | Allowed values |
| 2734 | 1 - v1 error format |
| 2735 | 2 - v2 error format |
| 2736 | |
| 2737 | Returns: |
| 2738 | An object of the form: |
| 2739 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2740 | { # An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview). |
| 2741 | "priority": 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. |
| 2742 | "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent. |
| 2743 | "mlEnabled": True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` 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 `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false. |
| 2744 | "name": "A String", # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` |
| 2745 | "defaultResponsePlatforms": [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
| 2746 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2747 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2748 | "trainingPhrases": [ # Optional. The collection of examples that the agent is trained on. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2749 | { # Represents an example that the agent is trained on. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2750 | "parts": [ # 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 `entity_type`, `alias`, and `user_defined` fields are all set. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2751 | { # Represents a part of a training phrase. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2752 | "entityType": "A String", # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. |
| 2753 | "userDefined": True or False, # 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. |
| 2754 | "alias": "A 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2755 | "text": "A String", # Required. The text for this part. |
| 2756 | }, |
| 2757 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2758 | "type": "A String", # Required. The type of the training phrase. |
| 2759 | "timesAddedCount": 42, # 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. |
| 2760 | "name": "A String", # Output only. The unique identifier of this training phrase. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2761 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2762 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2763 | "action": "A String", # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
| 2764 | "outputContexts": [ # 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 `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`. |
| 2765 | { # Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview). |
| 2766 | "parameters": { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value |
| 2767 | "a_key": "", # Properties of the object. |
| 2768 | }, |
| 2769 | "lifespanCount": 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries. |
| 2770 | "name": "A String", # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size` |
| 2771 | }, |
| 2772 | ], |
| 2773 | "endInteraction": True or False, # 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. |
| 2774 | "rootFollowupIntentName": "A String", # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`. |
| 2775 | "parentFollowupIntentName": "A String", # Optional. 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 CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`. |
| 2776 | "parameters": [ # Optional. The collection of parameters associated with the intent. |
| 2777 | { # Represents intent parameters. |
| 2778 | "name": "A String", # The unique identifier of this parameter. |
| 2779 | "value": "A String", # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`. |
| 2780 | "defaultValue": "A 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: `#context_name.parameter_name`. |
| 2781 | "displayName": "A String", # Required. The name of the parameter. |
| 2782 | "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
| 2783 | "entityTypeDisplayName": "A 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. |
| 2784 | "prompts": [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter. |
| 2785 | "A String", |
| 2786 | ], |
| 2787 | "isList": True or False, # Optional. Indicates whether the parameter represents a list of values. |
| 2788 | }, |
| 2789 | ], |
| 2790 | "inputContextNames": [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/` |
| 2791 | "A String", |
| 2792 | ], |
| 2793 | "displayName": "A String", # Required. The name of this intent. |
| 2794 | "messages": [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2795 | { # Corresponds to the `Response` field in the Dialogflow console. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2796 | "carouselSelect": { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google. |
| 2797 | "items": [ # Required. Carousel items. |
| 2798 | { # An item in the carousel. |
| 2799 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item. |
| 2800 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2801 | "A String", |
| 2802 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2803 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2804 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2805 | "description": "A String", # Optional. The body text of the card. |
| 2806 | "title": "A String", # Required. Title of the carousel item. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2807 | "image": { # The image response message. # Optional. The image to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2808 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2809 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2810 | }, |
| 2811 | }, |
| 2812 | ], |
| 2813 | }, |
| 2814 | "basicCard": { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2815 | "title": "A String", # Optional. The title of the card. |
| 2816 | "image": { # The image response message. # Optional. The image for the card. |
| 2817 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2818 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2819 | }, |
| 2820 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 2821 | "formattedText": "A String", # Required, unless image is present. The body text of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2822 | "buttons": [ # Optional. The collection of card buttons. |
| 2823 | { # The button object that appears at the bottom of a card. |
| 2824 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 2825 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 2826 | }, |
| 2827 | "title": "A String", # Required. The title of the button. |
| 2828 | }, |
| 2829 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2830 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2831 | "platform": "A String", # Optional. The platform that this message is intended for. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2832 | "image": { # The image response message. # Displays an image. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2833 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2834 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2835 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2836 | "quickReplies": { # The quick replies response message. # Displays quick replies. |
| 2837 | "quickReplies": [ # Optional. The collection of quick replies. |
| 2838 | "A String", |
| 2839 | ], |
| 2840 | "title": "A String", # Optional. The title of the collection of quick replies. |
| 2841 | }, |
| 2842 | "text": { # The text response message. # Returns a text response. |
| 2843 | "text": [ # Optional. The collection of the agent's responses. |
| 2844 | "A String", |
| 2845 | ], |
| 2846 | }, |
| 2847 | "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. # Synthesizes speech in Telephony Gateway. |
| 2848 | "ssml": "A String", # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml). |
| 2849 | "text": "A String", # The raw text to be synthesized. |
| 2850 | }, |
| 2851 | "rbmText": { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging. |
| 2852 | "text": "A String", # Required. Text sent and displayed to the user. |
| 2853 | "rbmSuggestion": [ # Optional. One or more suggestions to show to the user. |
| 2854 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2855 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2856 | "postbackData": "A 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. |
| 2857 | "text": "A String", # Suggested reply text. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2858 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2859 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2860 | "postbackData": "A 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. |
| 2861 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2862 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2863 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2864 | "uri": "A String", # Required. The uri to open on the user device |
| 2865 | }, |
| 2866 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2867 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2868 | }, |
| 2869 | "text": "A String", # Text to display alongside the action. |
| 2870 | }, |
| 2871 | }, |
| 2872 | ], |
| 2873 | }, |
| 2874 | "linkOutSuggestion": { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google. |
| 2875 | "destinationName": "A String", # Required. The name of the app or site this chip is linking to. |
| 2876 | "uri": "A String", # Required. The URI of the app or site to open when the user taps the suggestion chip. |
| 2877 | }, |
| 2878 | "browseCarouselCard": { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google. |
| 2879 | "imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in items. |
| 2880 | "items": [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
| 2881 | { # Browsing carousel tile |
| 2882 | "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of text. |
| 2883 | "footer": "A String", # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
| 2884 | "image": { # The image response message. # Optional. Hero image for the carousel item. |
| 2885 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2886 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2887 | }, |
| 2888 | "title": "A String", # Required. Title of the carousel item. Maximum of two lines of text. |
| 2889 | "openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user. |
| 2890 | "urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
| 2891 | "url": "A String", # Required. URL |
| 2892 | }, |
| 2893 | }, |
| 2894 | ], |
| 2895 | }, |
| 2896 | "suggestions": { # The collection of suggestions. # Displays suggestion chips for Actions on Google. |
| 2897 | "suggestions": [ # Required. The list of suggested replies. |
| 2898 | { # The suggestion chip message that the user can tap to quickly post a reply to the conversation. |
| 2899 | "title": "A String", # Required. The text shown the in the suggestion chip. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2900 | }, |
| 2901 | ], |
| 2902 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2903 | "tableCard": { # Table card for Actions on Google. # Table card for Actions on Google. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2904 | "title": "A String", # Required. Title of the card. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2905 | "buttons": [ # Optional. List of buttons for the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2906 | { # The button object that appears at the bottom of a card. |
| 2907 | "openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button. |
| 2908 | "uri": "A String", # Required. The HTTP or HTTPS scheme URI. |
| 2909 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2910 | "title": "A String", # Required. The title of the button. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2911 | }, |
| 2912 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2913 | "image": { # The image response message. # Optional. Image which should be displayed on the card. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2914 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2915 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2916 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2917 | "columnProperties": [ # Optional. Display properties for the columns in this table. |
| 2918 | { # Column properties for TableCard. |
| 2919 | "horizontalAlignment": "A String", # Optional. Defines text alignment for all cells in this column. |
| 2920 | "header": "A String", # Required. Column heading. |
| 2921 | }, |
| 2922 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2923 | "rows": [ # Optional. Rows in this table of data. |
| 2924 | { # Row of TableCard. |
| 2925 | "dividerAfter": True or False, # Optional. Whether to add a visual divider after this row. |
| 2926 | "cells": [ # Optional. List of cells that make up this row. |
| 2927 | { # Cell of TableCardRow. |
| 2928 | "text": "A String", # Required. Text in this cell. |
| 2929 | }, |
| 2930 | ], |
| 2931 | }, |
| 2932 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 2933 | "subtitle": "A String", # Optional. Subtitle to the title. |
| 2934 | }, |
| 2935 | "rbmStandaloneRichCard": { # 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. # Standalone Rich Business Messaging (RBM) rich card response. |
| 2936 | "cardContent": { # Rich Business Messaging (RBM) Card content # Required. Card content. |
| 2937 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 2938 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 2939 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2940 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2941 | "postbackData": "A 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. |
| 2942 | "text": "A String", # Suggested reply text. |
| 2943 | }, |
| 2944 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2945 | "postbackData": "A 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. |
| 2946 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 2947 | }, |
| 2948 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 2949 | "uri": "A String", # Required. The uri to open on the user device |
| 2950 | }, |
| 2951 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 2952 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 2953 | }, |
| 2954 | "text": "A String", # Text to display alongside the action. |
| 2955 | }, |
| 2956 | }, |
| 2957 | ], |
| 2958 | "media": { # 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 # 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. |
| 2959 | "fileUri": "A 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. |
| 2960 | "height": "A String", # 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. |
| 2961 | "thumbnailUri": "A 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. |
| 2962 | }, |
| 2963 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
| 2964 | }, |
| 2965 | "cardOrientation": "A String", # Required. Orientation of the card. |
| 2966 | "thumbnailImageAlignment": "A String", # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout. |
| 2967 | }, |
| 2968 | "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google. |
| 2969 | "mediaObjects": [ # Required. List of media objects. |
| 2970 | { # Response media object for media content card. |
| 2971 | "contentUrl": "A String", # Required. Url where the media is stored. |
| 2972 | "description": "A String", # Optional. Description of media card. |
| 2973 | "icon": { # The image response message. # Optional. Icon to display above media content. |
| 2974 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2975 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2976 | }, |
| 2977 | "largeImage": { # The image response message. # Optional. Image to display above media content. |
| 2978 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
| 2979 | "imageUri": "A String", # Optional. The public URI to an image file. |
| 2980 | }, |
| 2981 | "name": "A String", # Required. Name of media card. |
| 2982 | }, |
| 2983 | ], |
| 2984 | "mediaType": "A String", # Optional. What type of media is the content (ie "audio"). |
| 2985 | }, |
| 2986 | "rbmCarouselRichCard": { # 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. # Rich Business Messaging (RBM) carousel rich card response. |
| 2987 | "cardWidth": "A String", # Required. The width of the cards in the carousel. |
| 2988 | "cardContents": [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10. |
| 2989 | { # Rich Business Messaging (RBM) Card content |
| 2990 | "description": "A String", # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. |
| 2991 | "suggestions": [ # Optional. List of suggestions to include in the card. |
| 2992 | { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri). |
| 2993 | "reply": { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing |
| 2994 | "postbackData": "A 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. |
| 2995 | "text": "A String", # Suggested reply text. |
| 2996 | }, |
| 2997 | "action": { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose |
| 2998 | "postbackData": "A 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. |
| 2999 | "shareLocation": { # Opens the device's location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location |
| 3000 | }, |
| 3001 | "openUrl": { # 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. # Suggested client side action: Open a URI on device |
| 3002 | "uri": "A String", # Required. The uri to open on the user device |
| 3003 | }, |
| 3004 | "dial": { # Opens the user's default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number |
| 3005 | "phoneNumber": "A String", # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888. |
| 3006 | }, |
| 3007 | "text": "A String", # Text to display alongside the action. |
| 3008 | }, |
| 3009 | }, |
| 3010 | ], |
| 3011 | "media": { # 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 # 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. |
| 3012 | "fileUri": "A 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. |
| 3013 | "height": "A String", # 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. |
| 3014 | "thumbnailUri": "A 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. |
| 3015 | }, |
| 3016 | "title": "A String", # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 3017 | }, |
| 3018 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3019 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3020 | "telephonyPlayAudio": { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway. |
| 3021 | "audioUri": "A 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-@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. |
| 3022 | }, |
| 3023 | "card": { # The card response message. # Displays a card. |
| 3024 | "subtitle": "A String", # Optional. The subtitle of the card. |
| 3025 | "imageUri": "A String", # Optional. The public URI to an image file for the card. |
| 3026 | "buttons": [ # Optional. The collection of card buttons. |
| 3027 | { # Optional. Contains information about a button. |
| 3028 | "text": "A String", # Optional. The text to show on the button. |
| 3029 | "postback": "A String", # Optional. The text to send back to the Dialogflow API or a URI to open. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3030 | }, |
| 3031 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3032 | "title": "A String", # Optional. The title of the card. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3033 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3034 | "payload": { # A custom platform-specific response. |
| 3035 | "a_key": "", # Properties of the object. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3036 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3037 | "simpleResponses": { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3038 | "simpleResponses": [ # Required. The list of simple responses. |
| 3039 | { # The simple response message containing speech or text. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3040 | "textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3041 | "displayText": "A String", # Optional. The text to display. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3042 | "ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3043 | }, |
| 3044 | ], |
| 3045 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3046 | "telephonyTransferCall": { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway. |
| 3047 | "phoneNumber": "A String", # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz). |
| 3048 | }, |
| 3049 | "listSelect": { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google. |
| 3050 | "items": [ # Required. List items. |
| 3051 | { # An item in the list. |
| 3052 | "info": { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option. |
| 3053 | "synonyms": [ # Optional. A list of synonyms that can also be used to trigger this item in dialog. |
| 3054 | "A String", |
| 3055 | ], |
| 3056 | "key": "A String", # Required. A unique key that will be sent back to the agent if this response is given. |
| 3057 | }, |
| 3058 | "title": "A String", # Required. The title of the list item. |
| 3059 | "description": "A String", # Optional. The main text describing the item. |
| 3060 | "image": { # The image response message. # Optional. The image to display. |
| 3061 | "accessibilityText": "A String", # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3062 | "imageUri": "A String", # Optional. The public URI to an image file. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3063 | }, |
| 3064 | }, |
| 3065 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3066 | "subtitle": "A String", # Optional. Subtitle of the list. |
| 3067 | "title": "A String", # Optional. The overall title of the list. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 3068 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3069 | }, |
| 3070 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3071 | "isFallback": True or False, # Optional. Indicates whether this is a fallback intent. |
| 3072 | "followupIntentInfo": [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3073 | { # Represents a single followup intent in the chain. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3074 | "parentFollowupIntentName": "A String", # The unique identifier of the followup intent's parent. Format: `projects//agent/intents/`. |
| 3075 | "followupIntentName": "A String", # The unique identifier of the followup intent. Format: `projects//agent/intents/`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3076 | }, |
| 3077 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 3078 | "resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
| 3079 | "mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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. |
| 3080 | "events": [ # 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. Event names are limited to 150 characters. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 3081 | "A String", |
| 3082 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 3083 | }</pre> |
| 3084 | </div> |
| 3085 | |
| 3086 | </body></html> |